use NULL value in load_path_suffix to NOT load any files
[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_LDADD = \
41   libgnunetjson.la \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   -ljansson
44
45
46 if HAVE_LIBGNURL
47 LIB_GNURL=@LIBGNURL@
48 CPP_GNURL=@LIBGNURL_CPPFLAGS@
49 else
50 if HAVE_LIBCURL
51 LIB_GNURL=@LIBCURL@
52 CPP_GNURL=@LIBCURL_CPPFLAGS@
53 endif
54 endif
55
56
57 test_json_mhd_SOURCES = \
58   test_json_mhd.c
59 test_json_mhd_LDADD = \
60   libgnunetjson.la \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   -ljansson \
63   $(MHD_LIBS) \
64   $(Z_LIBS) \
65   $(LIB_GNURL)
66 test_json_mhd_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)