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