rps: keep track of valid peers in peermap
[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/jsonapi/libgnunetjsonapi.la \
21         $(top_builddir)/src/rest/libgnunetrest.la \
22   $(XLIB)
23
24 libgnunetjsonapi_la_LDFLAGS = \
25   -version-info 0:0:0 \
26   -no-undefined
27 libgnunetjsonapi_la_SOURCES = \
28         jsonapi_document.c \
29         jsonapi_resource.c \
30         jsonapi_error.c \
31         jsonapi_relationship.c
32 libgnunetjsonapi_la_LIBADD = \
33   $(top_builddir)/src/util/libgnunetutil.la \
34         $(top_builddir)/src/json/libgnunetjson.la \
35   -ljansson \
36   $(XLIB)
37
38 check_PROGRAMS = \
39   test_jsonapi
40
41 TESTS = \
42   $(check_PROGRAMS)
43
44 test_jsonapi_SOURCES = \
45   test_jsonapi.c
46 test_jsonapi_LDADD = \
47   libgnunetjsonapi.la \
48   $(top_builddir)/src/json/libgnunetjson.la \
49   $(top_builddir)/src/util/libgnunetutil.la \
50   -ljansson