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_read.cpp \
16 lib/univalue_write.cpp
18 libunivalue_la_LDFLAGS = \
19 -version-info $(LIBUNIVALUE_CURRENT):$(LIBUNIVALUE_REVISION):$(LIBUNIVALUE_AGE) \
21 libunivalue_la_CXXFLAGS = -I$(top_srcdir)/include
23 TESTS = test/unitester
25 GENBIN = gen/gen$(BUILD_EXEEXT)
26 GEN_SRCS = gen/gen.cpp
28 $(GENBIN): $(GEN_SRCS)
30 $(AM_V_at)c++ -I$(top_srcdir)/include -o $@ $<
32 gen: lib/univalue_escapes.h $(GENBIN)
34 $(AM_V_at)$(GENBIN) > lib/univalue_escapes.h
36 noinst_PROGRAMS = $(TESTS)
40 test_unitester_SOURCES = test/unitester.cpp
41 test_unitester_LDADD = libunivalue.la
42 test_unitester_CXXFLAGS = -I$(top_srcdir)/include -DJSON_TEST_SRC=\"$(srcdir)/$(TEST_DATA_DIR)\"
43 test_unitester_LDFLAGS = -static $(LIBTOOL_APP_LDFLAGS)
46 $(TEST_DATA_DIR)/fail10.json \
47 $(TEST_DATA_DIR)/fail11.json \
48 $(TEST_DATA_DIR)/fail12.json \
49 $(TEST_DATA_DIR)/fail13.json \
50 $(TEST_DATA_DIR)/fail14.json \
51 $(TEST_DATA_DIR)/fail15.json \
52 $(TEST_DATA_DIR)/fail16.json \
53 $(TEST_DATA_DIR)/fail17.json \
54 $(TEST_DATA_DIR)/fail18.json \
55 $(TEST_DATA_DIR)/fail19.json \
56 $(TEST_DATA_DIR)/fail1.json \
57 $(TEST_DATA_DIR)/fail20.json \
58 $(TEST_DATA_DIR)/fail21.json \
59 $(TEST_DATA_DIR)/fail22.json \
60 $(TEST_DATA_DIR)/fail23.json \
61 $(TEST_DATA_DIR)/fail24.json \
62 $(TEST_DATA_DIR)/fail25.json \
63 $(TEST_DATA_DIR)/fail26.json \
64 $(TEST_DATA_DIR)/fail27.json \
65 $(TEST_DATA_DIR)/fail28.json \
66 $(TEST_DATA_DIR)/fail29.json \
67 $(TEST_DATA_DIR)/fail2.json \
68 $(TEST_DATA_DIR)/fail30.json \
69 $(TEST_DATA_DIR)/fail31.json \
70 $(TEST_DATA_DIR)/fail32.json \
71 $(TEST_DATA_DIR)/fail33.json \
72 $(TEST_DATA_DIR)/fail34.json \
73 $(TEST_DATA_DIR)/fail35.json \
74 $(TEST_DATA_DIR)/fail36.json \
75 $(TEST_DATA_DIR)/fail37.json \
76 $(TEST_DATA_DIR)/fail38.json \
77 $(TEST_DATA_DIR)/fail39.json \
78 $(TEST_DATA_DIR)/fail40.json \
79 $(TEST_DATA_DIR)/fail41.json \
80 $(TEST_DATA_DIR)/fail3.json \
81 $(TEST_DATA_DIR)/fail4.json \
82 $(TEST_DATA_DIR)/fail5.json \
83 $(TEST_DATA_DIR)/fail6.json \
84 $(TEST_DATA_DIR)/fail7.json \
85 $(TEST_DATA_DIR)/fail8.json \
86 $(TEST_DATA_DIR)/fail9.json \
87 $(TEST_DATA_DIR)/pass1.json \
88 $(TEST_DATA_DIR)/pass2.json \
89 $(TEST_DATA_DIR)/pass3.json \
90 $(TEST_DATA_DIR)/round1.json \
91 $(TEST_DATA_DIR)/round2.json
93 EXTRA_DIST=$(TEST_FILES) $(GEN_SRCS)