diff options
Diffstat (limited to 'src/json/Makefile.am')
-rw-r--r-- | src/json/Makefile.am | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/json/Makefile.am b/src/json/Makefile.am index f3fa28d69..f030c3016 100644 --- a/src/json/Makefile.am +++ b/src/json/Makefile.am | |||
@@ -25,7 +25,8 @@ libgnunetjson_la_LIBADD = \ | |||
25 | $(XLIB) | 25 | $(XLIB) |
26 | 26 | ||
27 | check_PROGRAMS = \ | 27 | check_PROGRAMS = \ |
28 | test_json | 28 | test_json \ |
29 | test_json_mhd | ||
29 | 30 | ||
30 | TESTS = \ | 31 | TESTS = \ |
31 | $(check_PROGRAMS) | 32 | $(check_PROGRAMS) |
@@ -36,3 +37,26 @@ test_json_LDADD = \ | |||
36 | libgnunetjson.la \ | 37 | libgnunetjson.la \ |
37 | $(top_builddir)/src/util/libgnunetutil.la \ | 38 | $(top_builddir)/src/util/libgnunetutil.la \ |
38 | -ljansson | 39 | -ljansson |
40 | |||
41 | |||
42 | if HAVE_LIBGNURL | ||
43 | LIB_GNURL=@LIBGNURL@ | ||
44 | CPP_GNURL=@LIBGNURL_CPPFLAGS@ | ||
45 | else | ||
46 | if HAVE_LIBCURL | ||
47 | LIB_GNURL=@LIBCURL@ | ||
48 | CPP_GNURL=@LIBCURL_CPPFLAGS@ | ||
49 | endif | ||
50 | endif | ||
51 | |||
52 | |||
53 | test_json_mhd_SOURCES = \ | ||
54 | test_json_mhd.c | ||
55 | test_json_mhd_LDADD = \ | ||
56 | libgnunetjson.la \ | ||
57 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
58 | -ljansson \ | ||
59 | -lmicrohttpd \ | ||
60 | $(LIB_GNURL) | ||
61 | test_json_mhd_CPPFLAGS = \ | ||
62 | $(CPP_GNURL) $(AM_CPPFLAGS) | ||