-Merge branch 'master' of ssh://gnunet.org/gnunet into gsoc2018/rest_api
[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_mhd.c \
18   json_generator.c \
19   json_helper.c \
20   json_parser.c
21 libgnunetjson_la_LIBADD = \
22   $(top_builddir)/src/util/libgnunetutil.la \
23   -ljansson \
24   $(XLIB)
25
26 check_PROGRAMS = \
27   test_json
28
29 TESTS = \
30   $(check_PROGRAMS)
31
32 test_json_SOURCES = \
33   test_json.c
34 test_json_LDADD = \
35   libgnunetjson.la \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   -ljansson