# This Makefile.am is in the public domain AM_CPPFLAGS = -I$(top_srcdir)/src/include plugindir = $(libdir)/taler pkgcfgdir = $(prefix)/share/taler/config.d/ pkgcfg_DATA = \ merchantdb-postgres.conf sqldir = $(prefix)/share/taler/sql/merchant/ sql_DATA = \ versioning.sql \ merchant-0001.sql \ merchant-0002.sql \ merchant-0003.sql \ merchant-0004.sql \ merchant-0005.sql \ drop.sql if HAVE_POSTGRESQL if HAVE_GNUNETPQ plugin_LTLIBRARIES = \ libtaler_plugin_merchantdb_postgres.la endif endif if USE_COVERAGE AM_CFLAGS = --coverage -O0 XLIB = -lgcov endif lib_LTLIBRARIES = \ libtalermerchantdb.la libtalermerchantdb_la_SOURCES = \ merchantdb_plugin.c \ merchantdb_helper.c libtalermerchantdb_la_LIBADD = \ $(LIBGCRYPT_LIBS) \ -ltalerutil \ -ltalerpq \ -lgnunetutil \ -lltdl \ $(XLIB) libtalermerchantdb_la_LDFLAGS = \ $(POSTGRESQL_LDFLAGS) \ -version-info 2:0:0 \ -no-undefined libtaler_plugin_merchantdb_postgres_la_SOURCES = \ pg_update_wirewatch_progress.h pg_update_wirewatch_progress.c \ pg_select_wirewatch_accounts.h pg_select_wirewatch_accounts.c \ pg_insert_account.h pg_insert_account.c \ pg_update_account.h pg_update_account.c \ pg_insert_deposit_to_transfer.h pg_insert_deposit_to_transfer.c \ pg_increase_refund.h pg_increase_refund.c \ pg_insert_transfer.h pg_insert_transfer.c \ pg_insert_transfer_details.h pg_insert_transfer_details.c \ pg_store_wire_fee_by_exchange.h pg_store_wire_fee_by_exchange.c \ pg_insert_reserve.h pg_insert_reserve.c \ pg_activate_reserve.h pg_activate_reserve.c \ pg_authorize_reward.h pg_authorize_reward.c \ pg_insert_pickup.h pg_insert_pickup.c \ pg_select_open_transfers.h pg_select_open_transfers.c \ pg_lookup_instances.h pg_lookup_instances.c \ pg_lookup_transfers.h pg_lookup_transfers.c \ pg_update_transfer_status.h pg_update_transfer_status.c \ pg_delete_exchange_accounts.h pg_delete_exchange_accounts.c \ pg_select_accounts_by_exchange.h pg_select_accounts_by_exchange.c \ pg_set_transfer_status_to_confirmed.h pg_set_transfer_status_to_confirmed.c \ pg_insert_exchange_account.h pg_insert_exchange_account.c \ pg_lookup_reserves.h pg_lookup_reserves.c \ pg_lookup_instance_auth.h pg_lookup_instance_auth.c \ pg_insert_instance.h pg_insert_instance.c \ pg_account_kyc_set_status.h pg_account_kyc_set_status.c \ pg_account_kyc_get_status.h pg_account_kyc_get_status.c \ pg_delete_instance_private_key.h pg_delete_instance_private_key.c \ pg_purge_instance.h pg_purge_instance.c \ pg_update_instance.h pg_update_instance.c \ pg_update_instance_auth.h pg_update_instance_auth.c \ pg_inactivate_account.h pg_inactivate_account.c \ pg_activate_account.h pg_activate_account.c \ pg_insert_otp.h pg_insert_otp.c \ pg_delete_otp.h pg_delete_otp.c \ pg_update_otp.h pg_update_otp.c \ pg_select_otp.h pg_select_otp.c \ pg_select_otp_serial.h pg_select_otp_serial.c \ pg_lookup_otp_devices.h pg_lookup_otp_devices.c \ pg_select_account.h pg_select_account.c \ pg_select_accounts.h pg_select_accounts.c \ pg_delete_template.h pg_delete_template.c \ pg_insert_template.h pg_insert_template.c \ pg_update_template.h pg_update_template.c \ pg_lookup_templates.h pg_lookup_templates.c \ pg_lookup_template.h pg_lookup_template.c \ pg_lookup_products.h pg_lookup_products.c \ pg_lookup_product.h pg_lookup_product.c \ pg_delete_product.h pg_delete_product.c \ pg_insert_product.h pg_insert_product.c \ pg_update_product.h pg_update_product.c \ pg_lock_product.h pg_lock_product.c \ pg_insert_exchange_keys.h pg_insert_exchange_keys.c \ pg_select_exchange_keys.h pg_select_exchange_keys.c \ pg_expire_locks.h pg_expire_locks.c \ pg_delete_order.h pg_delete_order.c \ pg_lookup_order.h pg_lookup_order.c \ pg_lookup_order_summary.h pg_lookup_order_summary.c \ pg_lookup_orders.h pg_lookup_orders.c \ pg_insert_order.h pg_insert_order.c \ pg_unlock_inventory.h pg_unlock_inventory.c \ pg_insert_order_lock.h pg_insert_order_lock.c \ pg_lookup_contract_terms2.h pg_lookup_contract_terms2.c \ pg_lookup_contract_terms.h pg_lookup_contract_terms.c \ pg_insert_contract_terms.h pg_insert_contract_terms.c \ pg_update_contract_terms.h pg_update_contract_terms.c \ pg_delete_contract_terms.h pg_delete_contract_terms.c \ pg_lookup_deposits.h pg_lookup_deposits.c \ pg_insert_exchange_signkey.h pg_insert_exchange_signkey.c \ pg_insert_deposit.h pg_insert_deposit.c \ pg_lookup_refunds.h pg_lookup_refunds.c \ pg_mark_contract_paid.h pg_mark_contract_paid.c \ pg_refund_coin.h pg_refund_coin.c \ pg_lookup_order_status.h pg_lookup_order_status.c \ pg_lookup_order_status_by_serial.h pg_lookup_order_status_by_serial.c \ pg_lookup_payment_status.h pg_lookup_payment_status.c \ plugin_merchantdb_postgres.c \ pg_helper.h pg_helper.c libtaler_plugin_merchantdb_postgres_la_LIBADD = \ $(LTLIBINTL) libtaler_plugin_merchantdb_postgres_la_LDFLAGS = \ $(TALER_PLUGIN_LDFLAGS) \ -ltalerpq \ -ltalerutil \ -ltalerjson \ -ltalermhd \ -lgnunetpq \ -lgnunetjson \ -lpq \ -lgnunetutil \ $(XLIB) if HAVE_POSTGRESQL if HAVE_GNUNETPQ check_PROGRAMS = \ test-merchantdb-postgres endif endif test_merchantdb_postgres_SOURCES = \ test_merchantdb.c test_merchantdb_postgres_LDFLAGS = \ -ltalerutil \ -ltalerjson \ -lgnunetjson \ -lgnunetutil \ -ljansson \ $(XLIB) test_merchantdb_postgres_LDADD = \ $(top_builddir)/src/backenddb/libtalermerchantdb.la TESTS = \ test-merchantdb-postgres EXTRA_DIST = \ test-merchantdb-postgres.conf \ merchantdb-postgres.conf \ $(sql_DATA)