json/Makefile.am

33 lines
1.5 KiB
Makefile
Raw Normal View History

.PHONY: header_only
2015-01-31 20:13:11 +01:00
noinst_PROGRAMS = json_unit
2014-12-28 09:11:01 +01:00
FLAGS = -Wall -Wextra -pedantic -Weffc++ -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch -Wundef -Wno-unused -Wnon-virtual-dtor -Wreorder
2013-07-04 10:49:03 +02:00
2015-02-05 22:45:21 +01:00
json_unit_SOURCES = src/json.hpp test/catch.hpp test/unit.cpp
2014-12-28 09:11:01 +01:00
json_unit_CXXFLAGS = $(FLAGS) -std=c++11
json_unit_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/test -Dprivate=public
2013-07-04 10:49:03 +02:00
2015-02-05 22:45:21 +01:00
# parameters:
# -b use bit vectors
# -s nested ifs
# -i do not create #line information
# --no-generation-date suppress generation date output
src/json.hpp: src/json.hpp.re2c
2015-02-10 21:03:32 +01:00
$(AM_V_GEN)$(RE2C) -b -s -i --no-generation-date $< | $(SED) '1d' > $@
2015-02-05 22:45:21 +01:00
2014-12-28 09:11:01 +01:00
cppcheck:
2015-02-05 22:45:21 +01:00
cppcheck --enable=all --inconclusive --std=c++11 src/json.hpp
2013-12-11 10:50:50 +01:00
2013-07-04 10:49:03 +02:00
svn-clean: maintainer-clean
2014-12-28 09:11:01 +01:00
rm -fr configure INSTALL aclocal.m4 build-aux depcomp install-sh missing test-driver
2013-07-04 10:49:03 +02:00
for DIR in $(DIST_SUBDIRS) .; do rm -f $$DIR/Makefile.in; done
2013-12-11 10:23:31 +01:00
2014-12-28 09:11:01 +01:00
pretty:
astyle --style=allman --indent=spaces=4 --indent-modifiers \
--indent-switches --indent-preproc-block --indent-preproc-define \
--indent-col1-comments --pad-oper --pad-header --align-pointer=type \
--align-reference=type --add-brackets --convert-tabs --close-templates \
--lineend=linux --preserve-date --suffix=none \
2015-02-05 22:45:21 +01:00
src/json.hpp src/json.hpp.re2c test/unit.cpp