2016-03-01 15:35:04 +01:00
|
|
|
# This Makefile.am is in the public domain
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/pq/ $(POSTGRESQL_CPPFLAGS)
|
|
|
|
|
|
|
|
if USE_COVERAGE
|
|
|
|
AM_CFLAGS = --coverage -O0
|
|
|
|
XLIB = -lgcov
|
|
|
|
endif
|
|
|
|
|
2016-04-10 17:10:20 +02:00
|
|
|
pkgcfgdir = $(prefix)/share/taler/config.d/
|
|
|
|
|
|
|
|
pkgcfg_DATA = \
|
|
|
|
exchangedb.conf \
|
|
|
|
exchangedb-postgres.conf
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
exchangedb.conf \
|
2016-04-25 00:26:34 +02:00
|
|
|
exchangedb-postgres.conf \
|
|
|
|
plugin_exchangedb_common.c \
|
|
|
|
test-exchange-db-postgres.conf
|
2016-04-10 17:10:20 +02:00
|
|
|
|
|
|
|
|
2016-04-07 11:09:30 +02:00
|
|
|
plugindir = $(libdir)/taler
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
if HAVE_POSTGRESQL
|
|
|
|
plugin_LTLIBRARIES = \
|
|
|
|
libtaler_plugin_exchangedb_postgres.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
libtaler_plugin_exchangedb_postgres_la_SOURCES = \
|
|
|
|
plugin_exchangedb_postgres.c
|
|
|
|
libtaler_plugin_exchangedb_postgres_la_LIBADD = \
|
|
|
|
$(LTLIBINTL)
|
|
|
|
libtaler_plugin_exchangedb_postgres_la_LDFLAGS = \
|
|
|
|
$(TALER_PLUGIN_LDFLAGS) \
|
|
|
|
$(top_builddir)/src/pq/libtalerpq.la \
|
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
|
|
|
-lpq \
|
|
|
|
-lgnunetpq \
|
|
|
|
-lgnunetutil $(XLIB)
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = \
|
|
|
|
libtalerexchangedb.la
|
|
|
|
|
|
|
|
libtalerexchangedb_la_SOURCES = \
|
2018-04-02 14:24:45 +02:00
|
|
|
exchangedb_accounts.c \
|
2016-05-06 19:22:39 +02:00
|
|
|
exchangedb_auditorkeys.c \
|
|
|
|
exchangedb_denomkeys.c \
|
2017-03-03 20:31:29 +01:00
|
|
|
exchangedb_fees.c \
|
2020-01-16 22:40:12 +01:00
|
|
|
exchangedb_plugin.c \
|
2016-05-06 19:22:39 +02:00
|
|
|
exchangedb_signkeys.c \
|
2020-01-16 22:40:12 +01:00
|
|
|
exchangedb_transactions.c
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
libtalerexchangedb_la_LIBADD = \
|
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
|
|
|
-lgnunetutil $(XLIB)
|
|
|
|
|
|
|
|
libtalerexchangedb_la_LDFLAGS = \
|
|
|
|
$(POSTGRESQL_LDFLAGS) \
|
2017-10-18 15:21:06 +02:00
|
|
|
-version-info 1:0:0 \
|
2016-03-01 15:35:04 +01:00
|
|
|
-no-undefined
|
|
|
|
|
|
|
|
|
|
|
|
check_PROGRAMS = \
|
2016-05-06 19:39:31 +02:00
|
|
|
test-exchangedb-auditors \
|
2016-05-06 19:22:39 +02:00
|
|
|
test-exchangedb-denomkeys \
|
2017-03-03 20:31:29 +01:00
|
|
|
test-exchangedb-fees \
|
2016-05-06 19:22:39 +02:00
|
|
|
test-exchangedb-signkeys \
|
2019-09-15 11:20:27 +02:00
|
|
|
test-exchangedb-postgres
|
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 = \
|
2016-05-06 19:39:31 +02:00
|
|
|
test-exchangedb-auditors \
|
2017-03-03 20:31:29 +01:00
|
|
|
test-exchangedb-denomkeys \
|
|
|
|
test-exchangedb-fees \
|
2016-03-01 15:35:04 +01:00
|
|
|
test-exchangedb-postgres \
|
2019-09-15 11:20:27 +02:00
|
|
|
test-exchangedb-signkeys
|
2016-03-01 15:35:04 +01:00
|
|
|
|
2016-05-06 19:39:31 +02:00
|
|
|
test_exchangedb_auditors_SOURCES = \
|
|
|
|
test_exchangedb_auditors.c
|
|
|
|
test_exchangedb_auditors_LDADD = \
|
|
|
|
libtalerexchangedb.la \
|
|
|
|
$(top_srcdir)/src/util/libtalerutil.la \
|
|
|
|
-lgnunetutil
|
|
|
|
|
2016-05-06 19:22:39 +02:00
|
|
|
test_exchangedb_denomkeys_SOURCES = \
|
|
|
|
test_exchangedb_denomkeys.c
|
|
|
|
test_exchangedb_denomkeys_LDADD = \
|
|
|
|
libtalerexchangedb.la \
|
|
|
|
$(top_srcdir)/src/util/libtalerutil.la \
|
|
|
|
-lgnunetutil
|
|
|
|
|
2017-03-03 20:31:29 +01:00
|
|
|
test_exchangedb_fees_SOURCES = \
|
|
|
|
test_exchangedb_fees.c
|
|
|
|
test_exchangedb_fees_LDADD = \
|
|
|
|
libtalerexchangedb.la \
|
|
|
|
$(top_srcdir)/src/util/libtalerutil.la \
|
|
|
|
-lgnunetutil
|
|
|
|
|
2016-05-06 19:22:39 +02:00
|
|
|
test_exchangedb_signkeys_SOURCES = \
|
|
|
|
test_exchangedb_signkeys.c
|
|
|
|
test_exchangedb_signkeys_LDADD = \
|
2016-03-01 15:35:04 +01:00
|
|
|
libtalerexchangedb.la \
|
|
|
|
$(top_srcdir)/src/util/libtalerutil.la \
|
|
|
|
-lgnunetutil
|
|
|
|
|
|
|
|
test_exchangedb_postgres_SOURCES = \
|
|
|
|
test_exchangedb.c
|
|
|
|
test_exchangedb_postgres_LDADD = \
|
|
|
|
libtalerexchangedb.la \
|
2016-04-06 10:22:09 +02:00
|
|
|
$(top_builddir)/src/json/libtalerjson.la \
|
2016-03-01 15:35:04 +01:00
|
|
|
$(top_srcdir)/src/util/libtalerutil.la \
|
|
|
|
$(top_srcdir)/src/pq/libtalerpq.la \
|
2018-04-02 14:24:45 +02:00
|
|
|
-ljansson \
|
|
|
|
-lgnunetutil
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
EXTRA_test_exchangedb_postgres_DEPENDENCIES = \
|
|
|
|
libtaler_plugin_exchangedb_postgres.la
|