aboutsummaryrefslogtreecommitdiff
path: root/src/wire-plugins/Makefile.am
blob: 83bb9f05f0fa69a73237318fca868727d0db7f97 (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
# 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/

EXTRA_DIST = \
  test_wire_plugin.conf \
  test_wire_plugin_transactions_taler-bank.conf \
  test_wire_plugin_key.priv \
  test_wire_plugin_test.json \
  test_wire_plugin_sepa.json

plugindir = $(libdir)/taler

plugin_LTLIBRARIES = \
  libtaler_plugin_wire_ebics.la

if HAVE_LIBCURL
plugin_LTLIBRARIES += \
 libtaler_plugin_wire_taler_bank.la
else
if HAVE_LIBGNURL
plugin_LTLIBRARIES += \
 libtaler_plugin_wire_taler_bank.la
endif
endif

noinst_LTLIBRARIES = \
  libtaler_plugin_wire_template.la


libtaler_plugin_wire_taler_bank_la_SOURCES = \
  plugin_wire_taler-bank.c
libtaler_plugin_wire_taler_bank_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_wire_taler_bank_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/bank-lib/libtalerbank.la \
  $(top_builddir)/src/json/libtalerjson.la \
  $(top_builddir)/src/wire/libtalerwire.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetcurl \
  -lgnunetutil $(XLIB)


libtaler_plugin_wire_ebics_la_SOURCES = \
  plugin_wire_ebics.c
libtaler_plugin_wire_ebics_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_wire_ebics_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/wire/libtalerwire.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -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)


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

TESTS = \
 test_ebics_wireformat \
 test_wire_plugin \
 test_wire_plugin_transactions_taler_bank \
 test_wire_plugin_legacy_taler_bank

check_PROGRAMS= $(TESTS)

test_ebics_wireformat_SOURCES = \
  test_ebics_wireformat.c
test_ebics_wireformat_LDADD = \
  -lgnunetutil \
  $(top_builddir)/src/wire/libtalerwire.la \
  $(top_builddir)/src/util/libtalerutil.la


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


test_wire_plugin_legacy_taler_bank_SOURCES = \
  test_wire_plugin_legacy_taler-bank.c
test_wire_plugin_legacy_taler_bank_LDADD = \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(top_builddir)/src/wire/libtalerwire.la \
  $(top_builddir)/src/bank-lib/libtalerbank.la \
  $(top_builddir)/src/bank-lib/libtalerfakebank.la \
  $(top_builddir)/src/util/libtalerutil.la

test_wire_plugin_transactions_taler_bank_SOURCES = \
  test_wire_plugin_transactions_taler-bank.c
test_wire_plugin_transactions_taler_bank_LDADD = \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(top_builddir)/src/wire/libtalerwire.la \
  $(top_builddir)/src/bank-lib/libtalerbank.la \
  $(top_builddir)/src/bank-lib/libtalerfakebank.la \
  $(top_builddir)/src/util/libtalerutil.la