aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb/Makefile.am
blob: d1478cfa68502b7bd04a4385a8c65a22741cb7cb (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
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

plugindir = $(libdir)/taler

if HAVE_POSTGRESQL
if HAVE_GNUNETPQ
plugin_LTLIBRARIES = \
  libtaler_plugin_merchantdb_postgres.la
endif
endif

lib_LTLIBRARIES = \
  libtalermerchantdb.la

libtalermerchantdb_la_SOURCES = \
  merchantdb_plugin.c

libtalermerchantdb_la_LIBADD = \
  $(LIBGCRYPT_LIBS) \
  -ltalerutil \
  -ltalerpq \
  -lgnunetutil

libtalermerchantdb_la_LDFLAGS = \
  $(POSTGRESQL_LDFLAGS) \
  -version-info 0:0:0 \
  -no-undefined

libtaler_plugin_merchantdb_postgres_la_SOURCES = \
  plugin_merchantdb_postgres.c
libtaler_plugin_merchantdb_postgres_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_merchantdb_postgres_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  -lgnunetpq \
  -ltalerpq \
  -ltalerutil \
  -ltalerjson \
  -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 = \
  -lgnunetutil \
  -ltalerutil \
  -ltalerjson \
  -ljansson

test_merchantdb_postgres_LDADD = \
  $(top_builddir)/src/backenddb/libtalermerchantdb.la

TESTS = \
  test-merchantdb-postgres

EXTRA_DIST = \
  test-merchantdb-postgres.conf