blob: 9cd80851c70d5ae22f8f82736e2a142a53ed6a72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
if USE_COVERAGE
AM_CFLAGS = --coverage -O0
XLIB = -lgcov
endif
lib_LTLIBRARIES = \
libgnunetjson.la
libgnunetjson_la_LDFLAGS = \
$(GN_LIBINTL) \
-version-info 0:0:0 \
-no-undefined
libgnunetjson_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
libgnunetjson_la_SOURCES = \
json.c \
json_mhd.c \
json_generator.c \
json_helper.c \
json_gnsrecord.c
libgnunetjson_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
-ljansson \
$(MHD_LIBS) \
$(XLIB) \
$(Z_LIBS)
check_PROGRAMS = \
test_json \
test_json_mhd
TESTS = \
$(check_PROGRAMS)
test_json_SOURCES = \
test_json.c
test_json_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
test_json_LDADD = \
libgnunetjson.la \
$(top_builddir)/src/util/libgnunetutil.la \
-ljansson
if HAVE_LIBGNURL
LIB_GNURL=@LIBGNURL@
CPP_GNURL=@LIBGNURL_CPPFLAGS@
else
if HAVE_LIBCURL
LIB_GNURL=@LIBCURL@
CPP_GNURL=@LIBCURL_CPPFLAGS@
endif
endif
test_json_mhd_SOURCES = \
test_json_mhd.c
test_json_mhd_LDADD = \
libgnunetjson.la \
$(top_builddir)/src/util/libgnunetutil.la \
-ljansson \
$(MHD_LIBS) \
$(Z_LIBS) \
$(LIB_GNURL)
test_json_mhd_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
|