Update jsonapi to current specs, refactor
[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
12 libgnunetjsonapi_la_LDFLAGS = \
13   -version-info 0:0:0 \
14   -no-undefined
15 libgnunetjsonapi_la_SOURCES = \
16   jsonapi.c \
17         jsonapi_document.c \
18         jsonapi_resource.c \
19         jsonapi_error.c \
20         jsonapi_relationship.c
21 libgnunetjsonapi_la_LIBADD = \
22   $(top_builddir)/src/util/libgnunetutil.la \
23         $(top_builddir)/src/json/libgnunetjson.la \
24         $(top_builddir)/src/rest/libgnunetrest.la \
25   -ljansson \
26   $(XLIB)
27
28 check_PROGRAMS = \
29   test_jsonapi
30
31 TESTS = \
32   $(check_PROGRAMS)
33
34 test_jsonapi_SOURCES = \
35   test_jsonapi.c
36 test_jsonapi_LDADD = \
37   libgnunetjsonapi.la \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   -ljansson