Fix: Cast closure to proper type
[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 if HAVE_ABE
14 lib_LTLIBRARIES += libgnunet_plugin_rest_reclaim.la
15 endif
16
17 libgnunet_plugin_rest_reclaim_la_SOURCES = \
18   plugin_rest_reclaim.c
19 libgnunet_plugin_rest_reclaim_la_LIBADD = \
20   $(top_builddir)/src/identity/libgnunetidentity.la \
21   $(top_builddir)/src/reclaim/libgnunetreclaim.la \
22   $(top_builddir)/src/rest/libgnunetrest.la \
23   libgnunetjsonapi.la \
24   $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \
25   $(top_builddir)/src/namestore/libgnunetnamestore.la \
26   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
27   $(LTLIBINTL) -ljansson -lmicrohttpd
28 libgnunet_plugin_rest_reclaim_la_LDFLAGS = \
29  i$(GN_PLUGIN_LDFLAGS)
30
31
32 libgnunetjsonapiutils_la_LDFLAGS = \
33         -version-info 0:0:0 \
34         -no-undefined
35 libgnunetjsonapiutils_la_SOURCES = \
36         jsonapi.c
37 libgnunetjsonapiutils_la_LIBADD = \
38         $(top_builddir)/src/util/libgnunetutil.la \
39         $(top_builddir)/src/rest/libgnunetrest.la \
40   $(XLIB)
41
42 libgnunetjsonapi_la_LDFLAGS = \
43   -version-info 0:0:0 \
44   -no-undefined
45 libgnunetjsonapi_la_SOURCES = \
46         jsonapi_document.c jsonapi_objects.h \
47         jsonapi_resource.c \
48         jsonapi_error.c \
49         jsonapi_relationship.c
50 libgnunetjsonapi_la_LIBADD = \
51   $(top_builddir)/src/util/libgnunetutil.la \
52         $(top_builddir)/src/json/libgnunetjson.la \
53   -ljansson \
54   $(XLIB)
55
56 check_PROGRAMS = \
57   test_jsonapi
58
59 TESTS = \
60   $(check_PROGRAMS)
61
62 test_jsonapi_SOURCES = \
63   test_jsonapi.c
64 test_jsonapi_LDADD = \
65   libgnunetjsonapi.la \
66   $(top_builddir)/src/json/libgnunetjson.la \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   -ljansson