allow empty/NULL context message
[oweals/gnunet.git] / src / jsonapi / 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   libgnunetjsonapi.la \
11         libgnunetjsonapiutils.la
12
13 libgnunetjsonapiutils_la_LDFLAGS = \
14         -version-info 0:0:0 \
15         -no-undefined
16 libgnunetjsonapiutils_la_SOURCES = \
17         jsonapi.c
18 libgnunetjsonapiutils_la_LIBADD = \
19         $(top_builddir)/src/util/libgnunetutil.la \
20         $(top_builddir)/src/rest/libgnunetrest.la \
21   $(XLIB)
22
23 libgnunetjsonapi_la_LDFLAGS = \
24   -version-info 0:0:0 \
25   -no-undefined
26 libgnunetjsonapi_la_SOURCES = \
27         jsonapi_document.c \
28         jsonapi_resource.c \
29         jsonapi_error.c \
30         jsonapi_relationship.c
31 libgnunetjsonapi_la_LIBADD = \
32   $(top_builddir)/src/util/libgnunetutil.la \
33         $(top_builddir)/src/json/libgnunetjson.la \
34   -ljansson \
35   $(XLIB)
36
37 check_PROGRAMS = \
38   test_jsonapi
39
40 TESTS = \
41   $(check_PROGRAMS)
42
43 test_jsonapi_SOURCES = \
44   test_jsonapi.c
45 test_jsonapi_LDADD = \
46   libgnunetjsonapi.la \
47   $(top_builddir)/src/json/libgnunetjson.la \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   -ljansson