-fix build issues
[oweals/gnunet.git] / src / json / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if USE_COVERAGE
5   AM_CFLAGS = --coverage -O0
6   XLIB = -lgcov
7 endif
8
9 lib_LTLIBRARIES = \
10   libgnunetjson.la
11
12 libgnunetjson_la_LDFLAGS = \
13   -version-info 0:0:0 \
14   -no-undefined
15 libgnunetjson_la_SOURCES = \
16   json.c \
17   json_generator.c \
18   json_helper.c
19 libgnunetjson_la_LIBADD = \
20   $(top_builddir)/src/util/libgnunetutil.la \
21   -ljansson \
22   $(XLIB)
23
24 check_PROGRAMS = \
25   test_json
26
27 TESTS = \
28   $(check_PROGRAMS)
29
30 test_json_SOURCES = \
31   test_json.c
32 test_json_LDADD = \
33   libgnunetjson.la \
34   -lgnunetutil \
35   -ljansson