diff options
Diffstat (limited to 'src/service/datacache/Makefile.am')
-rw-r--r-- | src/service/datacache/Makefile.am | 68 |
1 files changed, 1 insertions, 67 deletions
diff --git a/src/service/datacache/Makefile.am b/src/service/datacache/Makefile.am index 9caeac543..022b45253 100644 --- a/src/service/datacache/Makefile.am +++ b/src/service/datacache/Makefile.am | |||
@@ -8,25 +8,11 @@ pkgcfgdir= $(pkgdatadir)/config.d/ | |||
8 | dist_pkgcfg_DATA = \ | 8 | dist_pkgcfg_DATA = \ |
9 | datacache.conf | 9 | datacache.conf |
10 | 10 | ||
11 | sqldir = $(prefix)/share/gnunet/sql/ | ||
12 | |||
13 | sql_DATA = \ | ||
14 | datacache-0001.sql \ | ||
15 | datacache-drop.sql | ||
16 | |||
17 | |||
18 | if USE_COVERAGE | 11 | if USE_COVERAGE |
19 | AM_CFLAGS = --coverage -O0 | 12 | AM_CFLAGS = --coverage -O0 |
20 | XLIBS = -lgcov | 13 | XLIBS = -lgcov |
21 | endif | 14 | endif |
22 | 15 | ||
23 | if HAVE_SQLITE | ||
24 | SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la | ||
25 | endif | ||
26 | if HAVE_POSTGRESQL | ||
27 | POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la | ||
28 | endif | ||
29 | |||
30 | lib_LTLIBRARIES = \ | 16 | lib_LTLIBRARIES = \ |
31 | libgnunetdatacache.la | 17 | libgnunetdatacache.la |
32 | 18 | ||
@@ -41,57 +27,6 @@ libgnunetdatacache_la_LDFLAGS = \ | |||
41 | -version-info 0:1:0 | 27 | -version-info 0:1:0 |
42 | 28 | ||
43 | 29 | ||
44 | plugin_LTLIBRARIES = \ | ||
45 | $(SQLITE_PLUGIN) \ | ||
46 | $(POSTGRES_PLUGIN) \ | ||
47 | libgnunet_plugin_datacache_heap.la | ||
48 | |||
49 | # Real plugins should of course go into | ||
50 | # plugin_LTLIBRARIES | ||
51 | noinst_LTLIBRARIES = \ | ||
52 | libgnunet_plugin_datacache_template.la | ||
53 | |||
54 | |||
55 | libgnunet_plugin_datacache_sqlite_la_SOURCES = \ | ||
56 | plugin_datacache_sqlite.c | ||
57 | libgnunet_plugin_datacache_sqlite_la_LIBADD = \ | ||
58 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
59 | $(top_builddir)/src/lib/sq/libgnunetsq.la \ | ||
60 | $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIBS) -lsqlite3 \ | ||
61 | $(LTLIBINTL) | ||
62 | libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \ | ||
63 | $(GN_PLUGIN_LDFLAGS) | ||
64 | |||
65 | libgnunet_plugin_datacache_heap_la_SOURCES = \ | ||
66 | plugin_datacache_heap.c | ||
67 | libgnunet_plugin_datacache_heap_la_LIBADD = \ | ||
68 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
69 | $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIBS) \ | ||
70 | $(LTLIBINTL) | ||
71 | libgnunet_plugin_datacache_heap_la_LDFLAGS = \ | ||
72 | $(GN_PLUGIN_LDFLAGS) | ||
73 | |||
74 | libgnunet_plugin_datacache_postgres_la_SOURCES = \ | ||
75 | plugin_datacache_postgres.c | ||
76 | libgnunet_plugin_datacache_postgres_la_LIBADD = \ | ||
77 | $(top_builddir)/src/lib/pq/libgnunetpq.la \ | ||
78 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
79 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
80 | $(GN_PLUGIN_LDFLAGS) -lpq | ||
81 | libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \ | ||
82 | $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS) | ||
83 | libgnunet_plugin_datacache_postgres_la_LDFLAGS = \ | ||
84 | $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) | ||
85 | |||
86 | libgnunet_plugin_datacache_template_la_SOURCES = \ | ||
87 | plugin_datacache_template.c | ||
88 | libgnunet_plugin_datacache_template_la_LIBADD = \ | ||
89 | $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIBS) \ | ||
90 | $(LTLIBINTL) | ||
91 | libgnunet_plugin_datacache_template_la_LDFLAGS = \ | ||
92 | $(GN_PLUGIN_LDFLAGS) | ||
93 | |||
94 | |||
95 | if HAVE_SQLITE | 30 | if HAVE_SQLITE |
96 | SQLITE_TESTS = \ | 31 | SQLITE_TESTS = \ |
97 | test_datacache_sqlite \ | 32 | test_datacache_sqlite \ |
@@ -166,5 +101,4 @@ test_datacache_quota_postgres_LDADD = \ | |||
166 | EXTRA_DIST = \ | 101 | EXTRA_DIST = \ |
167 | test_datacache_data_sqlite.conf \ | 102 | test_datacache_data_sqlite.conf \ |
168 | test_datacache_data_heap.conf \ | 103 | test_datacache_data_heap.conf \ |
169 | test_datacache_data_postgres.conf \ | 104 | test_datacache_data_postgres.conf |
170 | $(sql_DATA) | ||