aboutsummaryrefslogtreecommitdiff
path: root/src/templating/Makefile.am
blob: f74322982fd92d5747a083fac3d1de21bc061e4e (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
66
67
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LIBGCRYPT_CFLAGS)

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

noinst_PROGRAMS = \
  taler-mustach-tool

taler_mustach_tool_SOURCES = \
  mustach-tool.c \
  mustach-jansson.h
taler_mustach_tool_LDADD = \
  libmustach.la \
  -ljansson
taler_mustach_tool_CFLAGS = \
  -DTOOL=MUSTACH_TOOL_JANSSON

lib_LTLIBRARIES = \
  libtalertemplating.la

noinst_LTLIBRARIES = \
  libmustach.la

libtalertemplating_la_SOURCES = \
  mustach.c mustach.h \
  mustach-wrap.c mustach-wrap.h \
  mustach-jansson.c mustach-jansson.h \
  templating_api.c
libtalertemplating_la_LIBADD = \
  $(top_builddir)/src/mhd/libtalermhd.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lmicrohttpd \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(XLIB)
libtalertemplating_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined


libmustach_la_SOURCES = \
  mustach.c mustach.h \
  mustach-wrap.c mustach-wrap.h \
  mustach-jansson.c mustach-jansson.h

test_mustach_jansson_SOURCES = \
  test_mustach_jansson.c
test_mustach_jansson_LDADD = \
  -lgnunetutil \
  -ljansson \
  -lmustach \
  $(XLIB)

check_PROGRAMS = \
  test_mustach_jansson

check_SCRIPTS = \
  run-original-tests.sh

TESTS = $(check_SCRIPTS) $(check_PROGRAMS)

EXTRA_DIST = \
  $(check_SCRIPTS)