aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/Makefile.am
blob: 7ca168d01e01e6037b02e9e26d19287f519b688f (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
# 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

pkgcfgdir = $(prefix)/share/taler/config.d/

pkgcfg_DATA = \
  auditordb-postgres.conf

sqldir = $(prefix)/share/taler/sql/auditor/

sql_DATA = \
  versioning.sql \
  auditor-0001.sql \
  drop.sql \
  restart.sql

EXTRA_DIST = \
  auditordb-postgres.conf \
  test-auditor-db-postgres.conf \
  $(sql_DATA) \
  9999.sql

plugindir = $(libdir)/taler

if HAVE_POSTGRESQL
plugin_LTLIBRARIES = \
  libtaler_plugin_auditordb_postgres.la
endif

libtaler_plugin_auditordb_postgres_la_SOURCES = \
  plugin_auditordb_postgres.c pg_helper.h \
  pg_insert_auditor_progress_reserve.h pg_insert_auditor_progress_reserve.c \
  pg_update_auditor_progress_reserve.h pg_update_auditor_progress_reserve.c \
  pg_get_auditor_progress_reserve.h pg_get_auditor_progress_reserve.c \
  pg_insert_auditor_progress_purse.h pg_insert_auditor_progress_purse.c \
  pg_update_auditor_progress_purse.h pg_update_auditor_progress_purse.c \
  pg_get_auditor_progress_purse.h pg_get_auditor_progress_purse.c \
  pg_insert_auditor_progress_aggregation.h pg_insert_auditor_progress_aggregation.c \
  pg_update_auditor_progress_aggregation.h pg_update_auditor_progress_aggregation.c \
  pg_get_auditor_progress_aggregation.h pg_get_auditor_progress_aggregation.c \
  pg_insert_auditor_progress_deposit_confirmation.h pg_insert_auditor_progress_deposit_confirmation.c \
  pg_update_auditor_progress_deposit_confirmation.h pg_update_auditor_progress_deposit_confirmation.c \
  pg_get_auditor_progress_deposit_confirmation.h pg_get_auditor_progress_deposit_confirmation.c \
  pg_insert_auditor_progress_coin.h pg_insert_auditor_progress_coin.c \
  pg_update_auditor_progress_coin.h pg_update_auditor_progress_coin.c \
  pg_get_auditor_progress_coin.h pg_get_auditor_progress_coin.c \
  pg_insert_wire_auditor_account_progress.h pg_insert_wire_auditor_account_progress.c \
  pg_update_wire_auditor_account_progress.h pg_update_wire_auditor_account_progress.c \
  pg_get_wire_auditor_account_progress.h pg_get_wire_auditor_account_progress.c \
  pg_insert_wire_auditor_progress.h pg_insert_wire_auditor_progress.c \
  pg_update_wire_auditor_progress.h pg_update_wire_auditor_progress.c \
  pg_get_wire_auditor_progress.h pg_get_wire_auditor_progress.c \
  pg_insert_reserve_info.h pg_insert_reserve_info.c \
  pg_update_reserve_info.h pg_update_reserve_info.c \
  pg_del_reserve_info.h pg_del_reserve_info.c \
  pg_get_reserve_info.h pg_get_reserve_info.c \
  pg_insert_reserve_summary.h pg_insert_reserve_summary.c \
  pg_update_reserve_summary.h pg_update_reserve_summary.c \
  pg_get_reserve_summary.h pg_get_reserve_summary.c \
  pg_insert_wire_fee_summary.h pg_insert_wire_fee_summary.c \
  pg_update_wire_fee_summary.h pg_update_wire_fee_summary.c \
  pg_get_wire_fee_summary.h pg_get_wire_fee_summary.c \
  pg_insert_denomination_balance.h pg_insert_denomination_balance.c \
  pg_update_denomination_balance.h pg_update_denomination_balance.c \
  pg_get_denomination_balance.h pg_get_denomination_balance.c \
  pg_insert_balance_summary.h pg_insert_balance_summary.c \
  pg_update_balance_summary.h pg_update_balance_summary.c \
  pg_get_balance_summary.h pg_get_balance_summary.c \
  pg_insert_historic_denom_revenue.h pg_insert_historic_denom_revenue.c \
  pg_select_historic_denom_revenue.h pg_select_historic_denom_revenue.c \
  pg_insert_historic_reserve_revenue.h pg_insert_historic_reserve_revenue.c \
  pg_select_historic_reserve_revenue.h pg_select_historic_reserve_revenue.c \
  pg_insert_predicted_result.h pg_insert_predicted_result.c \
  pg_update_predicted_result.h pg_update_predicted_result.c \
  pg_get_predicted_balance.h pg_get_predicted_balance.c \
  pg_insert_exchange.h pg_insert_exchange.c \
  pg_list_exchanges.h pg_list_exchanges.c \
  pg_delete_exchange.h pg_delete_exchange.c \
  pg_insert_exchange_signkey.h pg_insert_exchange_signkey.c \
  pg_insert_deposit_confirmation.h pg_insert_deposit_confirmation.c \
  pg_get_deposit_confirmations.h pg_get_deposit_confirmations.c
libtaler_plugin_auditordb_postgres_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_auditordb_postgres_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/pq/libtalerpq.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lpq \
  -lgnunetpq \
  -lgnunetutil \
  -lpthread \
  $(XLIB)

lib_LTLIBRARIES = \
  libtalerauditordb.la

libtalerauditordb_la_SOURCES = \
  auditordb_plugin.c
libtalerauditordb_la_LIBADD = \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil  $(XLIB)
libtalerauditordb_la_LDFLAGS = \
  $(POSTGRESQL_LDFLAGS) \
  -version-info 0:0:0 \
  -no-undefined


#EXTRA_test_auditordb_postgres_DEPENDENCIES = \
#  libtaler_plugin_auditordb_postgres.la


check_PROGRAMS = \
  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_postgres_SOURCES = \
  test_auditordb.c
test_auditordb_postgres_LDADD = \
  libtalerauditordb.la \
  $(top_srcdir)/src/pq/libtalerpq.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  -lgnunetutil  \
  $(XLIB)