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
|
|
|
|
|
2020-01-17 01:23:56 +01:00
|
|
|
sqldir = $(prefix)/share/taler/sql/exchange/
|
|
|
|
|
2022-06-13 15:31:52 +02:00
|
|
|
sqlinputs = \
|
2022-06-09 21:05:32 +02:00
|
|
|
common-0001.sql \
|
2022-07-28 22:27:23 +02:00
|
|
|
exchange-0001.sql.in \
|
2022-06-13 15:31:52 +02:00
|
|
|
exchange-0001-part.sql \
|
2022-07-28 22:27:23 +02:00
|
|
|
shard-0001-part.sql \
|
|
|
|
shard-0001.sql.in
|
2020-01-17 01:23:56 +01:00
|
|
|
|
2022-06-13 15:31:52 +02:00
|
|
|
sql_DATA = \
|
|
|
|
benchmark-0001.sql \
|
2022-07-24 11:32:52 +02:00
|
|
|
versioning.sql \
|
2022-06-13 15:31:52 +02:00
|
|
|
exchange-0001.sql \
|
2022-07-24 11:32:52 +02:00
|
|
|
drop.sql \
|
2022-07-24 13:30:33 +02:00
|
|
|
procedures.sql \
|
2022-07-28 22:27:23 +02:00
|
|
|
shard-0001.sql
|
2022-06-13 15:31:52 +02:00
|
|
|
|
2022-03-31 17:00:44 +02:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
shard-0001.sql \
|
2022-04-02 18:43:49 +02:00
|
|
|
exchange-0001.sql \
|
2022-07-24 11:32:52 +02:00
|
|
|
drop.sql \
|
2022-07-25 19:53:31 +02:00
|
|
|
procedures.sql
|
2022-03-31 17:00:44 +02:00
|
|
|
|
2022-03-31 21:49:35 +02:00
|
|
|
CLEANFILES = \
|
|
|
|
shard-0001.sql \
|
2022-07-28 22:27:23 +02:00
|
|
|
exchange-0001.sql
|
2022-03-31 21:49:35 +02:00
|
|
|
|
2022-07-28 22:27:23 +02:00
|
|
|
exchange-0001.sql: common-0001.sql exchange-0001-part.sql exchange-0001.sql.in
|
2022-06-13 15:31:52 +02:00
|
|
|
chmod +w $@ || true
|
2022-07-28 22:27:23 +02:00
|
|
|
gcc -E -P -undef - < exchange-0001.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@
|
2022-06-27 21:59:32 +02:00
|
|
|
chmod ugo-w $@
|
2022-03-31 17:00:44 +02:00
|
|
|
|
2022-07-28 22:27:23 +02:00
|
|
|
shard-0001.sql: common-0001.sql shard-0001-part.sql exchange-0001.sql.in
|
2022-06-13 15:31:52 +02:00
|
|
|
chmod +w $@ || true
|
2022-07-28 22:27:23 +02:00
|
|
|
gcc -E -P -undef - < shard-0001.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@
|
2022-06-27 21:59:32 +02:00
|
|
|
chmod ugo-w $@
|
2022-03-31 17:00:44 +02:00
|
|
|
|
2016-04-10 17:10:20 +02:00
|
|
|
EXTRA_DIST = \
|
|
|
|
exchangedb.conf \
|
2016-04-25 00:26:34 +02:00
|
|
|
exchangedb-postgres.conf \
|
2021-11-28 19:52:37 +01:00
|
|
|
bench-db-postgres.conf \
|
2020-01-17 03:08:30 +01:00
|
|
|
test-exchange-db-postgres.conf \
|
2022-06-13 15:31:52 +02:00
|
|
|
$(sqlinputs) \
|
2022-11-02 12:17:05 +01:00
|
|
|
$(sql_DATA) \
|
|
|
|
pg_template.h pg_template.c \
|
|
|
|
pg_template.sh
|
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 = \
|
2022-10-13 22:43:22 +02:00
|
|
|
plugin_exchangedb_common.c plugin_exchangedb_common.h \
|
2022-10-03 12:46:30 +02:00
|
|
|
plugin_exchangedb_postgres.c pg_helper.h \
|
2022-10-03 19:34:11 +02:00
|
|
|
pg_do_reserve_open.c pg_do_reserve_open.h \
|
2022-11-08 13:34:53 +01:00
|
|
|
pg_do_withdraw.h pg_do_withdraw.c \
|
2022-11-08 15:21:01 +01:00
|
|
|
pg_iterate_active_signkeys.h pg_iterate_active_signkeys.c \
|
|
|
|
pg_commit.h pg_commit.c \
|
2022-10-13 22:43:22 +02:00
|
|
|
pg_get_coin_transactions.c pg_get_coin_transactions.h \
|
2022-10-13 19:07:25 +02:00
|
|
|
pg_get_expired_reserves.c pg_get_expired_reserves.h \
|
2022-11-08 13:28:17 +01:00
|
|
|
pg_get_purse_request.c pg_get_purse_request.h \
|
2022-10-15 16:19:14 +02:00
|
|
|
pg_get_reserve_history.c pg_get_reserve_history.h \
|
2022-10-13 19:07:25 +02:00
|
|
|
pg_get_unfinished_close_requests.c pg_get_unfinished_close_requests.h \
|
2022-10-03 12:46:30 +02:00
|
|
|
pg_insert_close_request.c pg_insert_close_request.h \
|
2022-11-07 16:35:34 +01:00
|
|
|
pg_delete_aggregation_transient.h pg_delete_aggregation_transient.c \
|
|
|
|
pg_get_link_data.h pg_get_link_data.c \
|
2022-11-08 13:28:17 +01:00
|
|
|
pg_insert_purse_request.h pg_insert_purse_request.c \
|
2022-10-08 18:07:05 +02:00
|
|
|
pg_insert_records_by_table.c pg_insert_records_by_table.h \
|
2022-10-03 17:05:29 +02:00
|
|
|
pg_insert_reserve_open_deposit.c pg_insert_reserve_open_deposit.h \
|
|
|
|
pg_iterate_kyc_reference.c pg_iterate_kyc_reference.h \
|
|
|
|
pg_iterate_reserve_close_info.c pg_iterate_reserve_close_info.h \
|
2022-10-08 21:09:13 +02:00
|
|
|
pg_lookup_records_by_table.c pg_lookup_records_by_table.h \
|
2022-10-10 08:20:36 +02:00
|
|
|
pg_lookup_serial_by_table.c pg_lookup_serial_by_table.h \
|
2022-10-30 17:36:57 +01:00
|
|
|
pg_select_reserve_close_info.c pg_select_reserve_close_info.h \
|
|
|
|
pg_select_reserve_closed_above_serial_id.c pg_select_reserve_closed_above_serial_id.h \
|
2022-11-02 12:17:05 +01:00
|
|
|
pg_select_purse.h pg_select_purse.c \
|
|
|
|
pg_select_purse_requests_above_serial_id.h pg_select_purse_requests_above_serial_id.c \
|
|
|
|
pg_select_purse_merges_above_serial_id.h pg_select_purse_merges_above_serial_id.c \
|
|
|
|
pg_select_purse_deposits_above_serial_id.h pg_select_purse_deposits_above_serial_id.c \
|
|
|
|
pg_select_account_merges_above_serial_id.h pg_select_account_merges_above_serial_id.c \
|
|
|
|
pg_select_all_purse_decisions_above_serial_id.h pg_select_all_purse_decisions_above_serial_id.c \
|
2022-10-30 17:36:57 +01:00
|
|
|
pg_select_reserve_open_above_serial_id.c pg_select_reserve_open_above_serial_id.h
|
2016-03-01 15:35:04 +01:00
|
|
|
libtaler_plugin_exchangedb_postgres_la_LIBADD = \
|
|
|
|
$(LTLIBINTL)
|
|
|
|
libtaler_plugin_exchangedb_postgres_la_LDFLAGS = \
|
|
|
|
$(TALER_PLUGIN_LDFLAGS) \
|
|
|
|
$(top_builddir)/src/pq/libtalerpq.la \
|
2021-01-10 21:42:25 +01:00
|
|
|
$(top_builddir)/src/json/libtalerjson.la \
|
2016-03-01 15:35:04 +01:00
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
|
|
|
-lpq \
|
2020-12-31 22:22:19 +01:00
|
|
|
-lpthread \
|
2016-03-01 15:35:04 +01:00
|
|
|
-lgnunetpq \
|
2020-11-12 22:25:59 +01:00
|
|
|
-lgnunetutil \
|
2020-12-31 22:23:54 +01:00
|
|
|
-ljansson \
|
2020-11-12 22:25:59 +01:00
|
|
|
$(XLIB)
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = \
|
|
|
|
libtalerexchangedb.la
|
|
|
|
|
|
|
|
libtalerexchangedb_la_SOURCES = \
|
2018-04-02 14:24:45 +02:00
|
|
|
exchangedb_accounts.c \
|
2020-01-16 22:40:12 +01:00
|
|
|
exchangedb_plugin.c \
|
|
|
|
exchangedb_transactions.c
|
2016-03-01 15:35:04 +01:00
|
|
|
libtalerexchangedb_la_LIBADD = \
|
2020-03-12 10:11:24 +01:00
|
|
|
$(top_builddir)/src/bank-lib/libtalerbank.la \
|
2016-03-01 15:35:04 +01:00
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
2020-11-12 22:25:59 +01:00
|
|
|
-lgnunetutil \
|
|
|
|
$(XLIB)
|
2016-03-01 15:35:04 +01:00
|
|
|
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 = \
|
2021-11-28 19:52:37 +01:00
|
|
|
test-exchangedb-postgres \
|
|
|
|
bench-db-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 = \
|
2020-12-16 19:23:29 +01:00
|
|
|
test-exchangedb-postgres
|
2016-03-01 15:35:04 +01:00
|
|
|
|
|
|
|
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 \
|
2021-07-31 21:48:36 +02:00
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
|
|
|
$(top_builddir)/src/pq/libtalerpq.la \
|
2018-04-02 14:24:45 +02:00
|
|
|
-ljansson \
|
2021-07-31 21:48:36 +02:00
|
|
|
-lgnunetjson \
|
2020-11-12 22:25:59 +01:00
|
|
|
-lgnunetutil \
|
|
|
|
$(XLIB)
|
2016-03-01 15:35:04 +01:00
|
|
|
|
2021-11-28 19:52:37 +01:00
|
|
|
bench_db_postgres_SOURCES = \
|
|
|
|
bench_db.c
|
|
|
|
bench_db_postgres_LDADD = \
|
|
|
|
libtalerexchangedb.la \
|
|
|
|
$(top_builddir)/src/util/libtalerutil.la \
|
|
|
|
$(top_builddir)/src/pq/libtalerpq.la \
|
|
|
|
-lgnunetpq \
|
|
|
|
-lgnunetutil \
|
|
|
|
$(XLIB)
|
|
|
|
|
2016-03-01 15:35:04 +01:00
|
|
|
EXTRA_test_exchangedb_postgres_DEPENDENCIES = \
|
|
|
|
libtaler_plugin_exchangedb_postgres.la
|