blob: b9eddb92c0b400523eb9e8c0373370fa7e368d53 (
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
|
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
plugindir = $(libdir)/sync
if HAVE_POSTGRESQL
if HAVE_GNUNETPQ
plugin_LTLIBRARIES = \
libsync_plugin_db_postgres.la
endif
endif
if USE_COVERAGE
AM_CFLAGS = --coverage -O0
XLIB = -lgcov
endif
bin_PROGRAMS = \
sync-dbinit
sync_dbinit_SOURCES = \
sync-dbinit.c
sync_dbinit_LDADD = \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/util/libsyncutil.la \
-lsyncdb \
-ltalerutil \
-lgnunetutil
lib_LTLIBRARIES = \
libsyncdb.la
libsyncdb_la_SOURCES = \
sync_db_plugin.c
libsyncdb_la_LIBADD = \
$(top_builddir)/src/util/libsyncutil.la \
-lgnunetpq \
-lpq \
-lgnunetutil
libsyncdb_la_LDFLAGS = \
$(POSTGRESQL_LDFLAGS) \
-version-info 0:0:0 \
-no-undefined
libsync_plugin_db_postgres_la_SOURCES = \
plugin_syncdb_postgres.c
libsync_plugin_db_postgres_la_LIBADD = \
$(LTLIBINTL)
libsync_plugin_db_postgres_la_LDFLAGS = \
$(TALER_PLUGIN_LDFLAGS) \
-lgnunetpq \
-lpq \
-ltalerpq \
-lgnunetutil $(XLIB)
check_PROGRAMS = \
$(TESTS)
test_sync_db_postgres_SOURCES = \
test_sync_db.c
test_sync_db_postgres_LDFLAGS = \
$(top_builddir)/src/util/libsyncutil.la \
libsyncdb.la \
-lgnunetutil \
-lgnunetpq \
-ltalerutil
TESTS = \
test_sync_db-postgres
EXTRA_DIST = \
test_sync_db_postgres.conf
|