aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Makefile.am
blob: b225d2babc22819f94f2b226462ac057168139dd (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/backend

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

lib_LTLIBRARIES = \
  libtalermerchant.la \
  libtalermerchanttesting.la

libtalermerchant_la_LDFLAGS = \
  -version-info 2:0:0 \
  -no-undefined

libtalermerchanttesting_la_LDFLAGS = \
  -version-info 2:0:0 \
  -no-undefined

libtalermerchant_la_SOURCES = \
  merchant_api_check_payment.c \
  merchant_api_history.c \
  merchant_api_proposal.c \
  merchant_api_pay.c \
  merchant_api_poll_payment.c \
  merchant_api_refund.c \
  merchant_api_refund_increase.c \
  merchant_api_tip_authorize.c \
  merchant_api_tip_pickup.c \
  merchant_api_tip_query.c \
  merchant_api_track_transaction.c \
  merchant_api_track_transfer.c
libtalermerchant_la_LIBADD = \
  -ltalerexchange \
  -ltalercurl \
  -ltalerjson \
  -ltalerutil \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(XLIB)

libtalermerchanttesting_la_SOURCES = \
  testing_api_cmd_check_payment.c \
  testing_api_cmd_history.c \
  testing_api_cmd_pay.c \
  testing_api_cmd_pay_abort_refund.c \
  testing_api_cmd_poll_payment.c \
  testing_api_cmd_proposal.c \
  testing_api_cmd_proposal_lookup.c \
  testing_api_cmd_refund_increase.c \
  testing_api_cmd_refund_lookup.c \
  testing_api_cmd_rewind.c \
  testing_api_cmd_tip_authorize.c \
  testing_api_cmd_tip_pickup.c \
  testing_api_cmd_tip_query.c \
  testing_api_cmd_track_transaction.c \
  testing_api_cmd_track_transfer.c \
  testing_api_helpers.c \
  testing_api_trait_merchant_sig.c \
  testing_api_trait_string.c \
  testing_api_trait_hash.c \
  testing_api_trait_planchet.c \
  testing_api_trait_refund_entry.c

libtalermerchanttesting_la_LIBADD = \
  libtalermerchant.la \
  -ltalerexchange \
  -ltalerjson \
  -ltalerutil \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  -ltalertesting \
  $(XLIB)

if HAVE_LIBCURL
libtalermerchant_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libtalermerchant_la_LIBADD += -lgnurl
endif
endif

if HAVE_TALERFAKEBANK
check_PROGRAMS = \
  test_merchant_api

if HAVE_TWISTER
check_PROGRAMS += test_merchant_api_twisted
endif

endif

TESTS = \
  $(check_PROGRAMS)

test_merchant_api_twisted_SOURCES = \
  test_merchant_api_twisted.c
test_merchant_api_twisted_LDADD = \
  $(top_srcdir)/src/backenddb/libtalermerchantdb.la \
  libtalermerchant.la \
  $(LIBGCRYPT_LIBS) \
  -ltalertesting \
  -ltalermerchanttesting \
  -ltalertwistertesting \
  -ltalerfakebank \
  -ltalerbank \
  -ltalerexchange \
  -ltalerjson \
  -ltalerutil \
  -lgnunetjson \
  -lgnunetcurl \
  -lgnunetutil \
  -ljansson \
  -ltalertwister

test_merchant_api_SOURCES = \
  test_merchant_api.c
test_merchant_api_LDADD = \
  $(top_srcdir)/src/backenddb/libtalermerchantdb.la \
  libtalermerchant.la \
  $(LIBGCRYPT_LIBS) \
  -ltalertesting \
  -ltalermerchanttesting \
  -ltalerfakebank \
  -ltalerbank \
  -ltalerexchange \
  -ltalerjson \
  -ltalerutil \
  -lgnunetjson \
  -lgnunetcurl \
  -lgnunetutil \
  -ljansson

EXTRA_DIST = \
  test_merchant_api.conf \
  test_merchant_api_twisted.conf \
  test_merchant_api_proxy_merchant.conf \
  test_merchant_api_proxy_exchange.conf \
  test_merchant_api_home/.local/share/taler/exchange/offline-keys/master.priv \
  test_merchant_api_home/.config/taler/exchange/account-2.json \
  test_merchant.priv