-remove debug message
[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   $(GN_LIBINTL) \
14   -version-info 0:0:0 \
15   -no-undefined
16 libgnunetjson_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
17 libgnunetjson_la_SOURCES = \
18   json.c \
19   json_mhd.c \
20   json_generator.c \
21   json_helper.c \
22   json_gnsrecord.c
23 libgnunetjson_la_LIBADD = \
24   $(top_builddir)/src/util/libgnunetutil.la \
25   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
26   -ljansson \
27   $(MHD_LIBS) \
28   $(XLIB) \
29   $(Z_LIBS)
30
31 check_PROGRAMS = \
32   test_json \
33   test_json_mhd
34
35 TESTS = \
36   $(check_PROGRAMS)
37
38 test_json_SOURCES = \
39   test_json.c
40 test_json_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
41 test_json_LDADD = \
42   libgnunetjson.la \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   -ljansson
45
46
47 if HAVE_LIBGNURL
48 LIB_GNURL=@LIBGNURL@
49 CPP_GNURL=@LIBGNURL_CPPFLAGS@
50 else
51 if HAVE_LIBCURL
52 LIB_GNURL=@LIBCURL@
53 CPP_GNURL=@LIBCURL_CPPFLAGS@
54 endif
55 endif
56
57
58 test_json_mhd_SOURCES = \
59   test_json_mhd.c
60 test_json_mhd_LDADD = \
61   libgnunetjson.la \
62   $(top_builddir)/src/util/libgnunetutil.la \
63   -ljansson \
64   $(MHD_LIBS) \
65   $(Z_LIBS) \
66   $(LIB_GNURL)
67 test_json_mhd_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)