aboutsummaryrefslogtreecommitdiff
path: root/src/merchant/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/merchant/Makefile.am')
-rw-r--r--src/merchant/Makefile.am52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/merchant/Makefile.am b/src/merchant/Makefile.am
new file mode 100644
index 00000000..701b3ee8
--- /dev/null
+++ b/src/merchant/Makefile.am
@@ -0,0 +1,52 @@
+AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
+
+MERCHANT_DB = merchant_db.c merchant_db.h
+bin_PROGRAMS = \
+ taler-merchant-dbinit \
+ taler-merchant-serve
+
+taler_merchant_dbinit_SOURCES = \
+ taler_merchant_dbinit.c \
+ $(MERCHANT_DB)
+taler_merchant_dbinit_LDADD = \
+ -lpq \
+ -lgnunetutil \
+ -ltalerutil \
+ -lgnunetpostgres
+taler_merchant_dbinit_LDFLAGS = \
+ $(POSTGRESQL_LDFLAGS)
+
+check_PROGRAMS = \
+ test-merchant \
+ test-merchant-db
+
+test_merchant_SOURCES = \
+ merchant.c \
+ test_merchant.c
+test_merchant_LDADD = \
+ -ltalerutil \
+ -lgnunetutil
+
+test_merchant_db_SOURCES = \
+ $(MERCHANT_DB) \
+ test_merchant_db.c
+test_merchant_db_LDADD = \
+ -ltalerutil \
+ -lgnunetutil \
+ -lgnunetpostgres \
+ -lpq
+
+taler_merchant_serve_SOURCES = \
+ taler_merchant_serve.c \
+ merchant.c merchant.h \
+ $(MERCHANT_DB)
+taler_merchant_serve_LDADD = \
+ -lpq \
+ -lgnunetutil \
+ -lgnunetpostgres \
+ -lmicrohttpd \
+ -ltalermintapi \
+ -ltalerutil \
+ -ljansson
+taler_merchant_serve_LDFLAGS = \
+ $(POSTGRESQL_LDFLAGS)