diff options
Diffstat (limited to 'src/auditor/Makefile.am')
-rw-r--r-- | src/auditor/Makefile.am | 141 |
1 files changed, 82 insertions, 59 deletions
diff --git a/src/auditor/Makefile.am b/src/auditor/Makefile.am index c0644cc2c..381c0b115 100644 --- a/src/auditor/Makefile.am +++ b/src/auditor/Makefile.am @@ -11,14 +11,17 @@ pkgcfgdir = $(prefix)/share/taler/config.d/ pkgcfg_DATA = \ auditor.conf +clean-local: + rm -rf revocation-tmp-* taler-auditor + bin_PROGRAMS = \ taler-auditor-dbinit \ - taler-auditor-exchange \ taler-auditor-httpd \ - taler-auditor-sign \ + taler-auditor-sync \ taler-helper-auditor-aggregation \ taler-helper-auditor-coins \ taler-helper-auditor-deposits \ + taler-helper-auditor-purses \ taler-helper-auditor-reserves \ taler-helper-auditor-wire @@ -26,7 +29,7 @@ bin_SCRIPTS = \ taler-auditor \ taler-helper-auditor-render.py -edit_script = $(SED) -e 's,%pkgdatadir%,$(pkgdatadir),'g $(NULL) +edit_script = $(SED) -e 's,%datadir%,$(datadir),'g $(NULL) taler-auditor: taler-auditor.in rm -f $@ $@.tmp && \ @@ -44,26 +47,27 @@ libauditorreport_la_LIBADD = \ $(top_builddir)/src/pq/libtalerpq.la \ $(top_builddir)/src/auditordb/libtalerauditordb.la \ $(top_builddir)/src/exchangedb/libtalerexchangedb.la \ - -lgnunetutil $(XLIB) + -lgnunetutil \ + -ljansson \ + $(XLIB) taler_auditor_dbinit_SOURCES = \ taler-auditor-dbinit.c taler_auditor_dbinit_LDADD = \ - $(LIBGCRYPT_LIBS) \ - $(top_builddir)/src/util/libtalerutil.la \ - $(top_builddir)/src/pq/libtalerpq.la \ $(top_builddir)/src/auditordb/libtalerauditordb.la \ - -lgnunetutil $(XLIB) -taler_auditor_dbinit_LDFLAGS = \ - $(POSTGRESQL_LDFLAGS) + $(top_builddir)/src/pq/libtalerpq.la \ + $(top_builddir)/src/util/libtalerutil.la \ + -lgnunetutil \ + $(LIBGCRYPT_LIBS) \ + $(XLIB) taler_auditor_dbinit_CPPFLAGS = \ -I$(top_srcdir)/src/include \ -I$(top_srcdir)/src/pq/ \ $(POSTGRESQL_CPPFLAGS) -taler_helper_auditor_reserves_SOURCES = \ - taler-helper-auditor-reserves.c -taler_helper_auditor_reserves_LDADD = \ +taler_helper_auditor_coins_SOURCES = \ + taler-helper-auditor-coins.c +taler_helper_auditor_coins_LDADD = \ $(LIBGCRYPT_LIBS) \ $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/json/libtalerjson.la \ @@ -73,11 +77,12 @@ taler_helper_auditor_reserves_LDADD = \ libauditorreport.la \ -ljansson \ -lgnunetjson \ - -lgnunetutil + -lgnunetutil \ + $(XLIB) -taler_helper_auditor_coins_SOURCES = \ - taler-helper-auditor-coins.c -taler_helper_auditor_coins_LDADD = \ +taler_helper_auditor_aggregation_SOURCES = \ + taler-helper-auditor-aggregation.c +taler_helper_auditor_aggregation_LDADD = \ $(LIBGCRYPT_LIBS) \ $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/json/libtalerjson.la \ @@ -87,11 +92,12 @@ taler_helper_auditor_coins_LDADD = \ libauditorreport.la \ -ljansson \ -lgnunetjson \ - -lgnunetutil + -lgnunetutil \ + $(XLIB) -taler_helper_auditor_aggregation_SOURCES = \ - taler-helper-auditor-aggregation.c -taler_helper_auditor_aggregation_LDADD = \ +taler_helper_auditor_deposits_SOURCES = \ + taler-helper-auditor-deposits.c +taler_helper_auditor_deposits_LDADD = \ $(LIBGCRYPT_LIBS) \ $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/json/libtalerjson.la \ @@ -101,11 +107,12 @@ taler_helper_auditor_aggregation_LDADD = \ libauditorreport.la \ -ljansson \ -lgnunetjson \ - -lgnunetutil + -lgnunetutil \ + $(XLIB) -taler_helper_auditor_deposits_SOURCES = \ - taler-helper-auditor-deposits.c -taler_helper_auditor_deposits_LDADD = \ +taler_helper_auditor_purses_SOURCES = \ + taler-helper-auditor-purses.c +taler_helper_auditor_purses_LDADD = \ $(LIBGCRYPT_LIBS) \ $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/json/libtalerjson.la \ @@ -115,14 +122,32 @@ taler_helper_auditor_deposits_LDADD = \ libauditorreport.la \ -ljansson \ -lgnunetjson \ - -lgnunetutil + -lgnunetutil \ + $(XLIB) + +taler_helper_auditor_reserves_SOURCES = \ + taler-helper-auditor-reserves.c +taler_helper_auditor_reserves_LDADD = \ + $(LIBGCRYPT_LIBS) \ + $(top_builddir)/src/util/libtalerutil.la \ + $(top_builddir)/src/json/libtalerjson.la \ + $(top_builddir)/src/bank-lib/libtalerbank.la \ + $(top_builddir)/src/exchangedb/libtalerexchangedb.la \ + $(top_builddir)/src/auditordb/libtalerauditordb.la \ + libauditorreport.la \ + -ljansson \ + -lgnunetjson \ + -lgnunetutil \ + $(XLIB) + + taler_helper_auditor_wire_SOURCES = \ taler-helper-auditor-wire.c taler_helper_auditor_wire_LDADD = \ $(LIBGCRYPT_LIBS) \ - $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/json/libtalerjson.la \ + $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/bank-lib/libtalerbank.la \ $(top_builddir)/src/exchangedb/libtalerexchangedb.la \ $(top_builddir)/src/auditordb/libtalerauditordb.la \ @@ -130,13 +155,14 @@ taler_helper_auditor_wire_LDADD = \ -ljansson \ -lgnunetjson \ -lgnunetcurl \ - -lgnunetutil + -lgnunetutil \ + $(XLIB) taler_auditor_httpd_SOURCES = \ taler-auditor-httpd.c taler-auditor-httpd.h \ taler-auditor-httpd_deposit-confirmation.c taler-auditor-httpd_deposit-confirmation.h \ - taler-auditor-httpd_exchanges.c taler-auditor-httpd_exchanges.h \ + taler-auditor-httpd_deposit-confirmation-get.c taler-auditor-httpd_deposit-confirmation-get.h \ taler-auditor-httpd_mhd.c taler-auditor-httpd_mhd.h taler_auditor_httpd_LDADD = \ $(LIBGCRYPT_LIBS) \ @@ -144,52 +170,49 @@ taler_auditor_httpd_LDADD = \ $(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/auditordb/libtalerauditordb.la \ + $(top_builddir)/src/exchangedb/libtalerexchangedb.la \ -lmicrohttpd \ -ljansson \ -lgnunetjson \ -lgnunetutil \ - -lz + -lz \ + $(XLIB) -taler_auditor_sign_SOURCES = \ - taler-auditor-sign.c -taler_auditor_sign_LDADD = \ - $(LIBGCRYPT_LIBS) \ - $(top_builddir)/src/util/libtalerutil.la \ - $(top_builddir)/src/auditordb/libtalerauditordb.la \ +taler_auditor_sync_SOURCES = \ + taler-auditor-sync.c +taler_auditor_sync_LDADD = \ $(top_builddir)/src/exchangedb/libtalerexchangedb.la \ - -lgnunetutil $(XLIB) - - -taler_auditor_exchange_SOURCES = \ - taler-auditor-exchange.c -taler_auditor_exchange_LDADD = \ - $(LIBGCRYPT_LIBS) \ + $(top_builddir)/src/pq/libtalerpq.la \ + $(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/util/libtalerutil.la \ - $(top_builddir)/src/auditordb/libtalerauditordb.la \ - -lgnunetutil $(XLIB) + -lgnunetjson \ + -lgnunetutil \ + $(LIBGCRYPT_LIBS) \ + $(XLIB) +taler_auditor_sync_CPPFLAGS = \ + -I$(top_srcdir)/src/include \ + -I$(top_srcdir)/src/pq/ \ + $(POSTGRESQL_CPPFLAGS) + check_SCRIPTS = \ test-auditor.sh \ - test-revocation.sh + test-kyc.sh \ + test-revocation.sh \ + test-sync.sh .NOTPARALLEL: -TESTS = $(check_SCRIPTS) +# TESTS = $(check_SCRIPTS) EXTRA_DIST = \ taler-auditor.in \ taler-helper-auditor-render.py \ auditor.conf \ - test-auditor.conf \ + setup.sh \ + test-sync-in.conf \ + test-sync-out.conf \ generate-auditor-basedb.sh \ - generate-revoke-basedb.sh \ generate-auditor-basedb.conf \ - generate-auditor-basedb-template.conf \ - $(check_SCRIPTS) \ - auditor-basedb.age \ - auditor-basedb.sql \ - auditor-basedb.fees \ - auditor-basedb.mpub \ - revoke-basedb.age \ - revoke-basedb.sql \ - revoke-basedb.fees \ - revoke-basedb.mpub + generate-kyc-basedb.conf \ + generate-revoke-basedb.sh \ + $(check_SCRIPTS) |