aboutsummaryrefslogtreecommitdiff
path: root/src/wire/Makefile.am
blob: 5f651461ea72eda1f260ecc2ea8325667bd0bc1a (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# 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

pkgcfgdir = $(prefix)/share/taler/config.d/

pkgcfg_DATA = \
  wire-sepa.conf \
  wire-test.conf


EXTRA_DIST = \
  wire-sepa.conf \
  wire-test.conf \
  test_wire_plugin.conf \
  test_wire_plugin_transactions_test.conf \
  test_wire_plugin_key.priv \
  test_wire_plugin_test.json \
  test_wire_plugin_sepa.json 

plugindir = $(libdir)/taler

plugin_LTLIBRARIES = \
  libtaler_plugin_wire_sepa.la \
  libtaler_plugin_wire_test.la

noinst_LTLIBRARIES = \
  libtaler_plugin_wire_template.la

lib_LTLIBRARIES = \
  libtalerwire.la


libtaler_plugin_wire_test_la_SOURCES = \
  plugin_wire_test.c
libtaler_plugin_wire_test_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_wire_test_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/bank-lib/libtalerbank.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetcurl \
  -lgnunetutil $(XLIB)


libtaler_plugin_wire_sepa_la_SOURCES = \
  plugin_wire_sepa.c
libtaler_plugin_wire_sepa_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_wire_sepa_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetjson \
  -lgnunetutil $(XLIB)


libtaler_plugin_wire_template_la_SOURCES = \
  plugin_wire_template.c
libtaler_plugin_wire_template_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_wire_template_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil $(XLIB)


libtalerwire_la_SOURCES = \
  wire.c
libtalerwire_la_LIBADD = \
  -lgnunetutil \
  $(XLIB)
libtalerwire_la_LDFLAGS = \
  -version-info 1:0:0 \
  -export-dynamic -no-undefined


AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;

TESTS = \
 test_sepa_wireformat \
 test_wire_plugin

check_PROGRAMS= \
 test_sepa_wireformat \
 test_wire_plugin \
 test_wire_plugin_transactions_test


test_sepa_wireformat_SOURCES = \
  test_sepa_wireformat.c
test_sepa_wireformat_LDADD = \
  -lgnunetutil \
  -ljansson \
  libtalerwire.la \
  $(top_builddir)/src/util/libtalerutil.la


test_wire_plugin_SOURCES = \
  test_wire_plugin.c
test_wire_plugin_LDADD = \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  libtalerwire.la \
  $(top_builddir)/src/util/libtalerutil.la


test_wire_plugin_transactions_test_SOURCES = \
  test_wire_plugin_transactions_test.c
test_wire_plugin_transactions_test_LDADD = \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  libtalerwire.la \
  $(top_builddir)/src/bank-lib/libtalerfakebank.la \
  $(top_builddir)/src/util/libtalerutil.la