1 ACLOCAL_AMFLAGS = -I build-aux/m4
3 .INTERMEDIATE: $(GENBIN)
5 include_HEADERS = include/univalue.h
6 noinst_HEADERS = lib/univalue_escapes.h lib/univalue_utffilter.h
8 lib_LTLIBRARIES = libunivalue.la
10 pkgconfigdir = $(libdir)/pkgconfig
11 pkgconfig_DATA = pc/libunivalue.pc
13 libunivalue_la_SOURCES = \
15 lib/univalue_get.cpp \
16 lib/univalue_read.cpp \
17 lib/univalue_write.cpp
19 libunivalue_la_LDFLAGS = \
20 -version-info $(LIBUNIVALUE_CURRENT):$(LIBUNIVALUE_REVISION):$(LIBUNIVALUE_AGE) \
22 libunivalue_la_CXXFLAGS = -I$(top_srcdir)/include
24 TESTS = test/object test/unitester test/no_nul
26 GENBIN = gen/gen$(BUILD_EXEEXT)
27 GEN_SRCS = gen/gen.cpp
29 $(GENBIN): $(GEN_SRCS)
31 $(AM_V_at)c++ -I$(top_srcdir)/include -o $@ $<
33 gen: lib/univalue_escapes.h $(GENBIN)
35 $(AM_V_at)$(GENBIN) > lib/univalue_escapes.h
37 noinst_PROGRAMS = $(TESTS) test/test_json
41 test_unitester_SOURCES = test/unitester.cpp
42 test_unitester_LDADD = libunivalue.la
43 test_unitester_CXXFLAGS = -I$(top_srcdir)/include -DJSON_TEST_SRC=\"$(srcdir)/$(TEST_DATA_DIR)\"
44 test_unitester_LDFLAGS = -static $(LIBTOOL_APP_LDFLAGS)
46 test_test_json_SOURCES = test/test_json.cpp
47 test_test_json_LDADD = libunivalue.la
48 test_test_json_CXXFLAGS = -I$(top_srcdir)/include
49 test_test_json_LDFLAGS = -static $(LIBTOOL_APP_LDFLAGS)
51 test_no_nul_SOURCES = test/no_nul.cpp
52 test_no_nul_LDADD = libunivalue.la
53 test_no_nul_CXXFLAGS = -I$(top_srcdir)/include
54 test_no_nul_LDFLAGS = -static $(LIBTOOL_APP_LDFLAGS)
56 test_object_SOURCES = test/object.cpp
57 test_object_LDADD = libunivalue.la
58 test_object_CXXFLAGS = -I$(top_srcdir)/include
59 test_object_LDFLAGS = -static $(LIBTOOL_APP_LDFLAGS)
62 $(TEST_DATA_DIR)/fail10.json \
63 $(TEST_DATA_DIR)/fail11.json \
64 $(TEST_DATA_DIR)/fail12.json \
65 $(TEST_DATA_DIR)/fail13.json \
66 $(TEST_DATA_DIR)/fail14.json \
67 $(TEST_DATA_DIR)/fail15.json \
68 $(TEST_DATA_DIR)/fail16.json \
69 $(TEST_DATA_DIR)/fail17.json \
70 $(TEST_DATA_DIR)/fail18.json \
71 $(TEST_DATA_DIR)/fail19.json \
72 $(TEST_DATA_DIR)/fail1.json \
73 $(TEST_DATA_DIR)/fail20.json \
74 $(TEST_DATA_DIR)/fail21.json \
75 $(TEST_DATA_DIR)/fail22.json \
76 $(TEST_DATA_DIR)/fail23.json \
77 $(TEST_DATA_DIR)/fail24.json \
78 $(TEST_DATA_DIR)/fail25.json \
79 $(TEST_DATA_DIR)/fail26.json \
80 $(TEST_DATA_DIR)/fail27.json \
81 $(TEST_DATA_DIR)/fail28.json \
82 $(TEST_DATA_DIR)/fail29.json \
83 $(TEST_DATA_DIR)/fail2.json \
84 $(TEST_DATA_DIR)/fail30.json \
85 $(TEST_DATA_DIR)/fail31.json \
86 $(TEST_DATA_DIR)/fail32.json \
87 $(TEST_DATA_DIR)/fail33.json \
88 $(TEST_DATA_DIR)/fail34.json \
89 $(TEST_DATA_DIR)/fail35.json \
90 $(TEST_DATA_DIR)/fail36.json \
91 $(TEST_DATA_DIR)/fail37.json \
92 $(TEST_DATA_DIR)/fail38.json \
93 $(TEST_DATA_DIR)/fail39.json \
94 $(TEST_DATA_DIR)/fail40.json \
95 $(TEST_DATA_DIR)/fail41.json \
96 $(TEST_DATA_DIR)/fail42.json \
97 $(TEST_DATA_DIR)/fail44.json \
98 $(TEST_DATA_DIR)/fail3.json \
99 $(TEST_DATA_DIR)/fail4.json \
100 $(TEST_DATA_DIR)/fail5.json \
101 $(TEST_DATA_DIR)/fail6.json \
102 $(TEST_DATA_DIR)/fail7.json \
103 $(TEST_DATA_DIR)/fail8.json \
104 $(TEST_DATA_DIR)/fail9.json \
105 $(TEST_DATA_DIR)/pass1.json \
106 $(TEST_DATA_DIR)/pass2.json \
107 $(TEST_DATA_DIR)/pass3.json \
108 $(TEST_DATA_DIR)/round1.json \
109 $(TEST_DATA_DIR)/round2.json \
110 $(TEST_DATA_DIR)/round3.json \
111 $(TEST_DATA_DIR)/round4.json \
112 $(TEST_DATA_DIR)/round5.json \
113 $(TEST_DATA_DIR)/round6.json \
114 $(TEST_DATA_DIR)/round7.json
116 EXTRA_DIST=$(TEST_FILES) $(GEN_SRCS)