exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

Makefile.am (10133B)


      1 # This Makefile.am is in the public domain
      2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
      3 
      4 if USE_COVERAGE
      5   AM_CFLAGS = --coverage -O0
      6   XLIB = -lgcov
      7 endif
      8 
      9 pkgcfgdir = $(prefix)/share/taler-auditor/config.d/
     10 
     11 pkgcfg_DATA = \
     12   auditor.conf
     13 
     14 clean-local:
     15 	rm -rf revocation-tmp-*
     16 
     17 bin_PROGRAMS = \
     18   taler-auditor-dbinit \
     19   taler-auditor-httpd \
     20   taler-auditor-sync \
     21   taler-helper-auditor-aggregation \
     22   taler-helper-auditor-coins \
     23   taler-helper-auditor-deposits \
     24   taler-helper-auditor-purses \
     25   taler-helper-auditor-reserves \
     26   taler-helper-auditor-transfer \
     27   taler-helper-auditor-wire-credit \
     28   taler-helper-auditor-wire-debit
     29 
     30 bin_SCRIPTS = \
     31   taler-helper-auditor-render.py
     32 
     33 lib_LTLIBRARIES = \
     34   libauditorreport.la
     35 
     36 libauditorreport_la_SOURCES = \
     37   report-lib.c report-lib.h
     38 libauditorreport_la_LIBADD = \
     39   $(top_builddir)/src/util/libtalerutil.la \
     40   $(top_builddir)/src/pq/libtalerpq.la \
     41   $(top_builddir)/src/auditordb/libtalerauditordb.la \
     42   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
     43   -lgnunetutil \
     44   -ljansson \
     45   $(XLIB)
     46 
     47 taler_auditor_dbinit_SOURCES = \
     48   taler-auditor-dbinit.c
     49 taler_auditor_dbinit_LDADD = \
     50   $(top_builddir)/src/auditordb/libtalerauditordb.la \
     51   $(top_builddir)/src/pq/libtalerpq.la \
     52   $(top_builddir)/src/util/libtalerutil.la \
     53   -lgnunetutil \
     54   $(LIBGCRYPT_LIBS) \
     55   $(XLIB)
     56 taler_auditor_dbinit_CPPFLAGS = \
     57   -I$(top_srcdir)/src/include \
     58   -I$(top_srcdir)/src/pq/ \
     59   $(POSTGRESQL_CPPFLAGS)
     60 
     61 taler_helper_auditor_coins_SOURCES = \
     62   taler-helper-auditor-coins.c
     63 taler_helper_auditor_coins_LDADD = \
     64   $(LIBGCRYPT_LIBS) \
     65   $(top_builddir)/src/util/libtalerutil.la \
     66   $(top_builddir)/src/json/libtalerjson.la \
     67   $(top_builddir)/src/bank-lib/libtalerbank.la \
     68   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
     69   $(top_builddir)/src/auditordb/libtalerauditordb.la \
     70   libauditorreport.la \
     71   -ljansson \
     72   -lgnunetjson \
     73   -lgnunetutil \
     74   $(XLIB)
     75 
     76 taler_helper_auditor_aggregation_SOURCES = \
     77   taler-helper-auditor-aggregation.c
     78 taler_helper_auditor_aggregation_LDADD = \
     79   $(LIBGCRYPT_LIBS) \
     80   $(top_builddir)/src/util/libtalerutil.la \
     81   $(top_builddir)/src/json/libtalerjson.la \
     82   $(top_builddir)/src/bank-lib/libtalerbank.la \
     83   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
     84   $(top_builddir)/src/auditordb/libtalerauditordb.la \
     85   libauditorreport.la \
     86   -ljansson \
     87   -lgnunetjson \
     88   -lgnunetutil \
     89   $(XLIB)
     90 
     91 taler_helper_auditor_deposits_SOURCES = \
     92   taler-helper-auditor-deposits.c
     93 taler_helper_auditor_deposits_LDADD = \
     94   $(LIBGCRYPT_LIBS) \
     95   $(top_builddir)/src/util/libtalerutil.la \
     96   $(top_builddir)/src/json/libtalerjson.la \
     97   $(top_builddir)/src/bank-lib/libtalerbank.la \
     98   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
     99   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    100   libauditorreport.la \
    101   -ljansson \
    102   -lgnunetjson \
    103   -lgnunetutil \
    104   $(XLIB)
    105 
    106 taler_helper_auditor_purses_SOURCES = \
    107   taler-helper-auditor-purses.c
    108 taler_helper_auditor_purses_LDADD = \
    109   $(LIBGCRYPT_LIBS) \
    110   $(top_builddir)/src/util/libtalerutil.la \
    111   $(top_builddir)/src/json/libtalerjson.la \
    112   $(top_builddir)/src/bank-lib/libtalerbank.la \
    113   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    114   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    115   libauditorreport.la \
    116   -ljansson \
    117   -lgnunetjson \
    118   -lgnunetutil \
    119   $(XLIB)
    120 
    121 taler_helper_auditor_reserves_SOURCES = \
    122   taler-helper-auditor-reserves.c
    123 taler_helper_auditor_reserves_LDADD = \
    124   $(LIBGCRYPT_LIBS) \
    125   $(top_builddir)/src/util/libtalerutil.la \
    126   $(top_builddir)/src/json/libtalerjson.la \
    127   $(top_builddir)/src/bank-lib/libtalerbank.la \
    128   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    129   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    130   libauditorreport.la \
    131   -ljansson \
    132   -lgnunetjson \
    133   -lgnunetutil \
    134   $(XLIB)
    135 
    136 taler_helper_auditor_transfer_SOURCES = \
    137   taler-helper-auditor-transfer.c
    138 taler_helper_auditor_transfer_LDADD = \
    139   $(LIBGCRYPT_LIBS) \
    140   $(top_builddir)/src/util/libtalerutil.la \
    141   $(top_builddir)/src/json/libtalerjson.la \
    142   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    143   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    144   libauditorreport.la \
    145   -ljansson \
    146   -lgnunetjson \
    147   -lgnunetutil \
    148   $(XLIB)
    149 
    150 taler_helper_auditor_wire_credit_SOURCES = \
    151   taler-helper-auditor-wire-credit.c
    152 taler_helper_auditor_wire_credit_LDADD = \
    153   $(LIBGCRYPT_LIBS) \
    154   $(top_builddir)/src/json/libtalerjson.la \
    155   $(top_builddir)/src/util/libtalerutil.la \
    156   $(top_builddir)/src/bank-lib/libtalerbank.la \
    157   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    158   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    159   libauditorreport.la \
    160   -ljansson \
    161   -lgnunetjson \
    162   -lgnunetcurl \
    163   -lgnunetutil \
    164   $(XLIB)
    165 
    166 taler_helper_auditor_wire_debit_SOURCES = \
    167   taler-helper-auditor-wire-debit.c
    168 taler_helper_auditor_wire_debit_LDADD = \
    169   $(LIBGCRYPT_LIBS) \
    170   $(top_builddir)/src/json/libtalerjson.la \
    171   $(top_builddir)/src/util/libtalerutil.la \
    172   $(top_builddir)/src/bank-lib/libtalerbank.la \
    173   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    174   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    175   libauditorreport.la \
    176   -ljansson \
    177   -lgnunetjson \
    178   -lgnunetcurl \
    179   -lgnunetutil \
    180   $(XLIB)
    181 
    182 # MARK: CRUD
    183 
    184 taler_auditor_httpd_SOURCES = \
    185   taler-auditor-httpd.c taler-auditor-httpd.h \
    186   taler-auditor-httpd_spa.c taler-auditor-httpd_spa.h \
    187   taler-auditor-httpd_deposit-confirmation.c taler-auditor-httpd_deposit-confirmation.h \
    188   taler-auditor-httpd_deposit-confirmation-get.c taler-auditor-httpd_deposit-confirmation-get.h \
    189   taler-auditor-httpd_amount-arithmetic-inconsistency-get.c taler-auditor-httpd_amount-arithmetic-inconsistency-get.h \
    190   taler-auditor-httpd_coin-inconsistency-get.c taler-auditor-httpd_coin-inconsistency-get.h \
    191   taler-auditor-httpd_row-inconsistency-get.c taler-auditor-httpd_row-inconsistency-get.h \
    192   taler-auditor-httpd_emergency-get.c taler-auditor-httpd_emergency-get.h \
    193   taler-auditor-httpd_emergency-by-count-get.c taler-auditor-httpd_emergency-by-count-get.h \
    194   taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.c taler-auditor-httpd_denomination-key-validity-withdraw-inconsistency-get.h \
    195   taler-auditor-httpd_purse-not-closed-inconsistencies-get.c taler-auditor-httpd_purse-not-closed-inconsistencies-get.h \
    196   taler-auditor-httpd_reserve-balance-insufficient-inconsistency-get.c taler-auditor-httpd_reserve-balance-insufficient-inconsistency-get.h \
    197   taler-auditor-httpd_patch_generic_suppressed.c taler-auditor-httpd_patch_generic_suppressed.h \
    198   taler-auditor-httpd_delete_generic.c taler-auditor-httpd_delete_generic.h \
    199   taler-auditor-httpd_bad-sig-losses-get.c taler-auditor-httpd_bad-sig-losses-get.h \
    200   taler-auditor-httpd_closure-lags-get.c taler-auditor-httpd_closure-lags-get.h \
    201   taler-auditor-httpd_progress-get.c taler-auditor-httpd_progress-get.h \
    202   taler-auditor-httpd_early-aggregation-get.c taler-auditor-httpd_early-aggregation-get.h \
    203   taler-auditor-httpd_pending-deposits-get.c taler-auditor-httpd_pending-deposits-get.h \
    204   taler-auditor-httpd_reserve-in-inconsistency-get.c taler-auditor-httpd_reserve-in-inconsistency-get.h \
    205   taler-auditor-httpd_reserve-not-closed-inconsistency-get.c taler-auditor-httpd_reserve-not-closed-inconsistency-get.h \
    206   taler-auditor-httpd_denominations-without-sigs-get.c taler-auditor-httpd_denominations-without-sigs-get.h \
    207   taler-auditor-httpd_misattribution-in-inconsistency-get.c taler-auditor-httpd_misattribution-in-inconsistency-get.h \
    208   taler-auditor-httpd_reserves-get.c taler-auditor-httpd_reserves-get.h \
    209   taler-auditor-httpd_purses-get.c taler-auditor-httpd_purses-get.h \
    210   taler-auditor-httpd_historic-denomination-revenue-get.c taler-auditor-httpd_historic-denomination-revenue-get.h \
    211   taler-auditor-httpd_denomination-pending-get.c taler-auditor-httpd_denomination-pending-get.h \
    212   taler-auditor-httpd_historic-reserve-summary-get.c taler-auditor-httpd_historic-reserve-summary-get.h \
    213   taler-auditor-httpd_wire-format-inconsistency-get.c taler-auditor-httpd_wire-format-inconsistency-get.h \
    214   taler-auditor-httpd_wire-out-inconsistency-get.c taler-auditor-httpd_wire-out-inconsistency-get.h \
    215   taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-get.c taler-auditor-httpd_reserve-balance-summary-wrong-inconsistency-get.h \
    216   taler-auditor-httpd_row-minor-inconsistencies-get.c taler-auditor-httpd_row-minor-inconsistencies-get.h \
    217   taler-auditor-httpd_fee-time-inconsistency-get.c taler-auditor-httpd_fee-time-inconsistency-get.h \
    218   taler-auditor-httpd_balances-get.c taler-auditor-httpd_balances-get.h \
    219   taler-auditor-httpd_mhd.c taler-auditor-httpd_mhd.h
    220 taler_auditor_httpd_LDADD = \
    221   $(LIBGCRYPT_LIBS) \
    222   $(top_builddir)/src/mhd/libtalermhd.la \
    223   $(top_builddir)/src/util/libtalerutil.la \
    224   $(top_builddir)/src/json/libtalerjson.la \
    225   $(top_builddir)/src/auditordb/libtalerauditordb.la \
    226   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    227   -lmicrohttpd \
    228   -ljansson \
    229   -lgnunetjson \
    230   -lgnunetutil \
    231   -lz \
    232   $(XLIB)
    233 
    234 taler_auditor_sync_SOURCES = \
    235   taler-auditor-sync.c
    236 taler_auditor_sync_LDADD = \
    237   $(top_builddir)/src/exchangedb/libtalerexchangedb.la \
    238   $(top_builddir)/src/pq/libtalerpq.la \
    239   $(top_builddir)/src/json/libtalerjson.la \
    240   $(top_builddir)/src/util/libtalerutil.la \
    241   -lgnunetjson \
    242   -lgnunetutil \
    243   $(LIBGCRYPT_LIBS) \
    244   $(XLIB)
    245 taler_auditor_sync_CPPFLAGS = \
    246   -I$(top_srcdir)/src/include \
    247   -I$(top_srcdir)/src/pq/ \
    248   $(POSTGRESQL_CPPFLAGS)
    249 
    250 
    251 check_SCRIPTS = \
    252   test-auditor.sh \
    253   test-kyc.sh \
    254   test-revocation.sh \
    255   test-sync.sh
    256 
    257 AM_TESTS_ENVIRONMENT=export TALER_EXCHANGE_PREFIX=$${TALER_EXCHANGE_PREFIX:-@libdir@};export PATH=$${TALER_EXCHANGE_PREFIX:-@prefix@}/bin:$$PATH;export TALER_AUDITOR_PREFIX=$${TALER_AUDITOR_PREFIX:-@libdir@};
    258 
    259 TESTS = \
    260   test-sync.sh \
    261   test-auditor.sh
    262 
    263 EXTRA_DIST = \
    264   taler-helper-auditor-render.py \
    265   auditor.conf \
    266   setup.sh \
    267   test-sync-in.conf \
    268   test-sync-out.conf \
    269   generate-auditor-basedb.sh \
    270   generate-auditor-basedb.conf \
    271   generate-kyc-basedb.conf \
    272   generate-revoke-basedb.sh \
    273   $(check_SCRIPTS)