aboutsummaryrefslogtreecommitdiff
path: root/src/mintdb/Makefile.am
blob: a2bc5e3b41a262fb298528a2e3c2e9df2eb72f35 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/pq/ $(POSTGRESQL_CPPFLAGS)

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

plugindir = $(libdir)/taler

if HAVE_POSTGRESQL
plugin_LTLIBRARIES = \
  libtaler_plugin_mintdb_postgres.la
endif

EXTRA_DIST = \
  plugin_mintdb_common.c \
  test-mint-db-postgres.conf

libtaler_plugin_mintdb_postgres_la_SOURCES = \
  plugin_mintdb_postgres.c
libtaler_plugin_mintdb_postgres_la_LIBADD = \
  $(LTLIBINTL)
libtaler_plugin_mintdb_postgres_la_LDFLAGS = \
  $(TALER_PLUGIN_LDFLAGS) \
  $(top_builddir)/src/pq/libtalerpq.la \
  $(top_builddir)/src/util/libtalerutil.la \
  -lpq \
  -lgnunetutil $(XLIB)

lib_LTLIBRARIES = \
  libtalermintdb.la

libtalermintdb_la_SOURCES = \
  mintdb_keyio.c \
  mintdb_plugin.c

libtalermintdb_la_LIBADD = \
  $(top_builddir)/src/util/libtalerutil.la \
  -lgnunetutil  $(XLIB)

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


check_PROGRAMS = \
  test-mintdb-deposits \
  test-mintdb-keyio \
  test-mintdb-postgres \
  perf-mintdb

TESTS = \
  test-mintdb-postgres

test_mintdb_deposits_SOURCES = \
  test_mintdb_deposits.c
test_mintdb_deposits_LDADD = \
  libtalermintdb.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  $(top_srcdir)/src/pq/libtalerpq.la \
  -lgnunetutil \
  -ljansson \
  -lpq

test_mintdb_keyio_SOURCES = \
  test_mintdb_keyio.c
test_mintdb_keyio_LDADD = \
  libtalermintdb.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  $(top_srcdir)/src/pq/libtalerpq.la \
  -lgnunetutil

test_mintdb_postgres_SOURCES = \
  test_mintdb.c
test_mintdb_postgres_LDADD = \
  libtalermintdb.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  $(top_srcdir)/src/pq/libtalerpq.la \
  -lgnunetutil -ljansson

perf_mintdb_SOURCES = \
  perf_taler_mintdb.c \
  perf_taler_mintdb_init.c \
  perf_taler_mintdb_interpreter.c

perf_mintdb_LDADD = \
  libtalermintdb.la \
  $(top_srcdir)/src/util/libtalerutil.la \
  $(top_srcdir)/src/pq/libtalerpq.la \
  -ljansson \
  -lgnunetutil


EXTRA_test_mintdb_postgres_DEPENDENCIES = \
  libtaler_plugin_mintdb_postgres.la