2016-03-01 15:35:04 +01:00
|
|
|
# This Makefile.am is in the public domain
|
2016-05-03 13:55:40 +02:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/bank-lib
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
if USE_COVERAGE
|
|
|
|
AM_CFLAGS = --coverage -O0
|
|
|
|
XLIB = -lgcov
|
|
|
|
endif
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = \
|
|
|
|
libtalerexchange.la
|
|
|
|
|
|
|
|
libtalerexchange_la_LDFLAGS = \
|
2017-06-06 14:03:53 +02:00
|
|
|
-version-info 2:0:0 \
|
2016-03-01 15:35:04 +01:00
|
|
|
-no-undefined
|
|
|
|
|
|
|
|
libtalerexchange_la_SOURCES = \
|
2016-10-20 21:11:20 +02:00
|
|
|
exchange_api_common.c \
|
2016-03-01 15:35:04 +01:00
|
|
|
exchange_api_handle.c exchange_api_handle.h \
|
|
|
|
exchange_api_admin.c \
|
|
|
|
exchange_api_deposit.c \
|
2017-03-29 15:44:59 +02:00
|
|
|
exchange_api_payback.c \
|
2016-03-01 15:35:04 +01:00
|
|
|
exchange_api_refresh.c \
|
|
|
|
exchange_api_refresh_link.c \
|
2016-05-04 09:42:52 +02:00
|
|
|
exchange_api_refund.c \
|
2016-03-01 15:35:04 +01:00
|
|
|
exchange_api_reserve.c \
|
2016-06-09 21:43:26 +02:00
|
|
|
exchange_api_track_transaction.c \
|
2016-06-09 21:44:42 +02:00
|
|
|
exchange_api_track_transfer.c \
|
2016-06-09 21:43:10 +02:00
|
|
|
exchange_api_wire.c
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
libtalerexchange_la_LIBADD = \
|
2016-03-19 15:23:11 +01:00
|
|
|
$(top_builddir)/src/json/libtalerjson.la \
|
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
2016-04-17 17:45:15 +02:00
|
|
|
-lgnunetcurl \
|
2016-03-19 15:23:11 +01:00
|
|
|
-lgnunetjson \
|
2016-03-01 15:35:04 +01:00
|
|
|
-lgnunetutil \
|
|
|
|
-ljansson \
|
|
|
|
$(XLIB)
|
|
|
|
|
|
|
|
if HAVE_LIBCURL
|
|
|
|
libtalerexchange_la_LIBADD += -lcurl
|
|
|
|
else
|
|
|
|
if HAVE_LIBGNURL
|
|
|
|
libtalerexchange_la_LIBADD += -lgnurl
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
check_PROGRAMS = \
|
2017-09-13 13:27:13 +02:00
|
|
|
test_exchange_api \
|
|
|
|
test_exchange_api_keys_cherry_picking
|
2016-03-01 15:35:04 +01:00
|
|
|
|
2016-04-01 20:35:22 +02:00
|
|
|
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
|
|
|
|
|
2016-03-01 15:35:04 +01:00
|
|
|
TESTS = \
|
|
|
|
$(check_PROGRAMS)
|
|
|
|
|
|
|
|
test_exchange_api_SOURCES = \
|
|
|
|
test_exchange_api.c
|
|
|
|
test_exchange_api_LDADD = \
|
|
|
|
libtalerexchange.la \
|
|
|
|
$(LIBGCRYPT_LIBS) \
|
2016-06-08 11:35:28 +02:00
|
|
|
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
|
2016-03-19 15:23:11 +01:00
|
|
|
$(top_builddir)/src/json/libtalerjson.la \
|
2016-03-01 15:35:04 +01:00
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
2016-04-17 17:45:15 +02:00
|
|
|
-lgnunetcurl \
|
2016-03-01 15:35:04 +01:00
|
|
|
-lgnunetutil \
|
|
|
|
-ljansson
|
|
|
|
|
2017-09-13 13:27:13 +02:00
|
|
|
test_exchange_api_keys_cherry_picking_SOURCES = \
|
|
|
|
test_exchange_api_keys_cherry_picking.c
|
|
|
|
test_exchange_api_keys_cherry_picking_LDADD = \
|
|
|
|
libtalerexchange.la \
|
|
|
|
$(LIBGCRYPT_LIBS) \
|
|
|
|
$(top_builddir)/src/json/libtalerjson.la \
|
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
|
|
|
-lgnunetcurl \
|
|
|
|
-lgnunetutil \
|
|
|
|
-ljansson
|
|
|
|
|
2016-03-01 15:35:04 +01:00
|
|
|
EXTRA_DIST = \
|
2016-05-04 10:09:17 +02:00
|
|
|
test_exchange_api_home/.local/share/taler/exchange/offline-keys/master.priv \
|
|
|
|
test_exchange_api_home/.config/taler/test.json \
|
|
|
|
test_exchange_api_home/.config/taler/sepa.json \
|
|
|
|
test_exchange_api.conf
|