summaryrefslogtreecommitdiff
path: root/src/jsonapi/Makefile.am
blob: 0c6d60b10a464d41fc7b36aac84703a1ce3f817f (plain)
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
# 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 = \
  libgnunetjsonapi.la \
	libgnunetjsonapiutils.la \
	libgnunet_plugin_rest_reclaim.la

libgnunet_plugin_rest_reclaim_la_SOURCES = \
  plugin_rest_reclaim.c
libgnunet_plugin_rest_reclaim_la_LIBADD = \
  $(top_builddir)/src/identity/libgnunetidentity.la \
  $(top_builddir)/src/reclaim/libgnunetreclaim.la \
  $(top_builddir)/src/rest/libgnunetrest.la \
  libgnunetjsonapi.la \
  $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \
  $(top_builddir)/src/namestore/libgnunetnamestore.la \
  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
  $(LTLIBINTL) -ljansson -lmicrohttpd
libgnunet_plugin_rest_reclaim_la_LDFLAGS = \
 i$(GN_PLUGIN_LDFLAGS)


libgnunetjsonapiutils_la_LDFLAGS = \
	-version-info 0:0:0 \
	-no-undefined
libgnunetjsonapiutils_la_SOURCES = \
	jsonapi.c
libgnunetjsonapiutils_la_LIBADD = \
	$(top_builddir)/src/util/libgnunetutil.la \
	$(top_builddir)/src/rest/libgnunetrest.la \
  $(XLIB)

libgnunetjsonapi_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined
libgnunetjsonapi_la_SOURCES = \
	jsonapi_document.c jsonapi_objects.h \
	jsonapi_resource.c \
	jsonapi_error.c \
	jsonapi_relationship.c
libgnunetjsonapi_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la \
	$(top_builddir)/src/json/libgnunetjson.la \
  -ljansson \
  $(XLIB)

check_PROGRAMS = \
  test_jsonapi

TESTS = \
  $(check_PROGRAMS)

test_jsonapi_SOURCES = \
  test_jsonapi.c
test_jsonapi_LDADD = \
  libgnunetjsonapi.la \
  $(top_builddir)/src/json/libgnunetjson.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  -ljansson