diff options
Diffstat (limited to 'src/auditordb/Makefile.am')
-rw-r--r-- | src/auditordb/Makefile.am | 90 |
1 files changed, 78 insertions, 12 deletions
diff --git a/src/auditordb/Makefile.am b/src/auditordb/Makefile.am index 92aabcd31..c0282e9c9 100644 --- a/src/auditordb/Makefile.am +++ b/src/auditordb/Makefile.am @@ -13,17 +13,41 @@ pkgcfg_DATA = \ sqldir = $(prefix)/share/taler/sql/auditor/ +sqlinputs = \ + 0002-*.sql \ + auditor-0002.sql.in \ + auditor_do_*.sql \ + procedures.sql.in + sql_DATA = \ - auditor-0000.sql \ + versioning.sql \ auditor-0001.sql \ - drop0001.sql \ - restart0001.sql + auditor-0002.sql \ + drop.sql \ + restart.sql \ + procedures.sql + +CLEANFILES = \ + auditor-0002.sql + +procedures.sql: procedures.sql.in auditor_do_*.sql + chmod +w $@ 2> /dev/null || true + gcc -E -P -undef - < procedures.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@ + chmod ugo-w $@ + +auditor-0002.sql: auditor-0002.sql.in 0002-*.sql + chmod +w $@ 2> /dev/null || true + gcc -E -P -undef - < auditor-0002.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@ + chmod ugo-w $@ + EXTRA_DIST = \ auditordb-postgres.conf \ test-auditor-db-postgres.conf \ + $(sqlinputs) \ $(sql_DATA) \ - 9999.sql + pg_template.h pg_template.c \ + pg_template.sh plugindir = $(libdir)/taler @@ -33,17 +57,48 @@ plugin_LTLIBRARIES = \ endif libtaler_plugin_auditordb_postgres_la_SOURCES = \ - plugin_auditordb_postgres.c -libtaler_plugin_auditordb_postgres_la_LIBADD = \ - $(LTLIBINTL) + plugin_auditordb_postgres.c pg_helper.h \ + pg_delete_deposit_confirmations.c pg_delete_deposit_confirmations.h \ + pg_delete_pending_deposit.c pg_delete_pending_deposit.h \ + pg_delete_purse_info.c pg_delete_purse_info.h \ + pg_del_denomination_balance.h pg_del_denomination_balance.c \ + pg_del_reserve_info.c pg_del_reserve_info.h \ + pg_get_auditor_progress.c pg_get_auditor_progress.h \ + pg_get_balance.c pg_get_balance.h \ + pg_get_denomination_balance.c pg_get_denomination_balance.h \ + pg_get_deposit_confirmations.c pg_get_deposit_confirmations.h \ + pg_get_purse_info.c pg_get_purse_info.h \ + pg_get_reserve_info.c pg_get_reserve_info.h \ + pg_get_wire_fee_summary.c pg_get_wire_fee_summary.h \ + pg_insert_auditor_progress.c pg_insert_auditor_progress.h \ + pg_insert_balance.c pg_insert_balance.h \ + pg_insert_denomination_balance.c pg_insert_denomination_balance.h \ + pg_insert_deposit_confirmation.c pg_insert_deposit_confirmation.h \ + pg_insert_exchange_signkey.c pg_insert_exchange_signkey.h \ + pg_insert_historic_denom_revenue.c pg_insert_historic_denom_revenue.h \ + pg_insert_historic_reserve_revenue.c pg_insert_historic_reserve_revenue.h \ + pg_insert_pending_deposit.c pg_insert_pending_deposit.h \ + pg_insert_purse_info.c pg_insert_purse_info.h \ + pg_insert_reserve_info.c pg_insert_reserve_info.h \ + pg_select_historic_denom_revenue.c pg_select_historic_denom_revenue.h \ + pg_select_historic_reserve_revenue.c pg_select_historic_reserve_revenue.h \ + pg_select_pending_deposits.c pg_select_pending_deposits.h \ + pg_select_purse_expired.c pg_select_purse_expired.h \ + pg_update_auditor_progress.c pg_update_auditor_progress.h \ + pg_update_balance.c pg_update_balance.h \ + pg_update_denomination_balance.c pg_update_denomination_balance.h \ + pg_update_purse_info.c pg_update_purse_info.h \ + pg_update_reserve_info.c pg_update_reserve_info.h \ + pg_update_wire_fee_summary.c pg_update_wire_fee_summary.h libtaler_plugin_auditordb_postgres_la_LDFLAGS = \ - $(TALER_PLUGIN_LDFLAGS) \ + $(TALER_PLUGIN_LDFLAGS) +libtaler_plugin_auditordb_postgres_la_LIBADD = \ + $(LTLIBINTL) \ $(top_builddir)/src/pq/libtalerpq.la \ $(top_builddir)/src/util/libtalerutil.la \ - -lpq \ -lgnunetpq \ -lgnunetutil \ - -lpthread \ + -lpq \ $(XLIB) lib_LTLIBRARIES = \ @@ -65,11 +120,22 @@ libtalerauditordb_la_LDFLAGS = \ check_PROGRAMS = \ - test-auditordb-postgres + test_auditordb_checkpoints-postgres \ + test_auditordb-postgres AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH; TESTS = \ - test-auditordb-postgres + test_auditordb_checkpoints-postgres \ + test_auditordb-postgres + +test_auditordb_checkpoints_postgres_SOURCES = \ + test_auditordb_checkpoints.c +test_auditordb_checkpoints_postgres_LDADD = \ + libtalerauditordb.la \ + $(top_srcdir)/src/pq/libtalerpq.la \ + $(top_srcdir)/src/util/libtalerutil.la \ + -lgnunetutil \ + $(XLIB) test_auditordb_postgres_SOURCES = \ test_auditordb.c |