aboutsummaryrefslogtreecommitdiff
path: root/src/json/Makefile.am
blob: ce863cb7ef00007aea273c51ee831c2bc1c15802 (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
# 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 = \
  libtalerjson.la

libtalerjson_la_SOURCES = \
  i18n.c \
  json.c \
  json_helper.c \
  json_pack.c \
  json_wire.c
libtalerjson_la_LDFLAGS = \
  -version-info 3:0:1 \
  -no-undefined
libtalerjson_la_LIBADD = \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetjson \
  -lgnunetutil \
  -lunistring \
  -ljansson \
  -lm \
  $(XLIB)

TESTS = \
  test_json

check_PROGRAMS= \
  test_json

test_json_SOURCES = \
  test_json.c
test_json_LDADD = \
  $(top_builddir)/src/json/libtalerjson.la \
  -lgnunetjson \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil \
  -ljansson