- add jsonapi tests
[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 libgnunetjsonapi_la_LIBADD = \
18   $(top_builddir)/src/util/libgnunetutil.la \
19         $(top_builddir)/src/json/libgnunetjson.la \
20   -ljansson \
21   $(XLIB)
22
23 check_PROGRAMS = \
24   test_jsonapi
25
26 TESTS = \
27   $(check_PROGRAMS)
28
29 test_jsonapi_SOURCES = \
30   test_jsonapi.c
31 test_jsonapi_LDADD = \
32   libgnunetjsonapi.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   -ljansson