diff options
Diffstat (limited to 'src/datacache/Makefile.am')
-rw-r--r-- | src/datacache/Makefile.am | 198 |
1 files changed, 0 insertions, 198 deletions
diff --git a/src/datacache/Makefile.am b/src/datacache/Makefile.am deleted file mode 100644 index 4789706ff..000000000 --- a/src/datacache/Makefile.am +++ /dev/null | |||
@@ -1,198 +0,0 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | plugindir = $(libdir)/gnunet | ||
5 | |||
6 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
7 | |||
8 | dist_pkgcfg_DATA = \ | ||
9 | datacache.conf | ||
10 | |||
11 | if USE_COVERAGE | ||
12 | AM_CFLAGS = --coverage -O0 | ||
13 | XLIBS = -lgcov | ||
14 | endif | ||
15 | |||
16 | if HAVE_SQLITE | ||
17 | SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la | ||
18 | endif | ||
19 | if HAVE_POSTGRESQL | ||
20 | POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la | ||
21 | endif | ||
22 | |||
23 | lib_LTLIBRARIES = \ | ||
24 | libgnunetdatacache.la | ||
25 | |||
26 | libgnunetdatacache_la_SOURCES = \ | ||
27 | datacache.c | ||
28 | libgnunetdatacache_la_LIBADD = \ | ||
29 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
30 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
31 | $(GN_LIBINTL) | ||
32 | libgnunetdatacache_la_LDFLAGS = \ | ||
33 | $(GN_LIB_LDFLAGS) \ | ||
34 | -version-info 0:1:0 | ||
35 | |||
36 | |||
37 | plugin_LTLIBRARIES = \ | ||
38 | $(SQLITE_PLUGIN) \ | ||
39 | $(POSTGRES_PLUGIN) \ | ||
40 | libgnunet_plugin_datacache_heap.la | ||
41 | |||
42 | # Real plugins should of course go into | ||
43 | # plugin_LTLIBRARIES | ||
44 | noinst_LTLIBRARIES = \ | ||
45 | libgnunet_plugin_datacache_template.la | ||
46 | |||
47 | |||
48 | libgnunet_plugin_datacache_sqlite_la_SOURCES = \ | ||
49 | plugin_datacache_sqlite.c | ||
50 | libgnunet_plugin_datacache_sqlite_la_LIBADD = \ | ||
51 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
52 | $(top_builddir)/src/sq/libgnunetsq.la \ | ||
53 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \ | ||
54 | $(LTLIBINTL) | ||
55 | libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \ | ||
56 | $(GN_PLUGIN_LDFLAGS) | ||
57 | |||
58 | libgnunet_plugin_datacache_heap_la_SOURCES = \ | ||
59 | plugin_datacache_heap.c | ||
60 | libgnunet_plugin_datacache_heap_la_LIBADD = \ | ||
61 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
62 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | ||
63 | $(LTLIBINTL) | ||
64 | libgnunet_plugin_datacache_heap_la_LDFLAGS = \ | ||
65 | $(GN_PLUGIN_LDFLAGS) | ||
66 | |||
67 | libgnunet_plugin_datacache_postgres_la_SOURCES = \ | ||
68 | plugin_datacache_postgres.c | ||
69 | libgnunet_plugin_datacache_postgres_la_LIBADD = \ | ||
70 | $(top_builddir)/src/pq/libgnunetpq.la \ | ||
71 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
72 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
73 | $(GN_PLUGIN_LDFLAGS) -lpq | ||
74 | libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \ | ||
75 | $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS) | ||
76 | libgnunet_plugin_datacache_postgres_la_LDFLAGS = \ | ||
77 | $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) | ||
78 | |||
79 | libgnunet_plugin_datacache_template_la_SOURCES = \ | ||
80 | plugin_datacache_template.c | ||
81 | libgnunet_plugin_datacache_template_la_LIBADD = \ | ||
82 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | ||
83 | $(LTLIBINTL) | ||
84 | libgnunet_plugin_datacache_template_la_LDFLAGS = \ | ||
85 | $(GN_PLUGIN_LDFLAGS) | ||
86 | |||
87 | |||
88 | if HAVE_SQLITE | ||
89 | if HAVE_BENCHMARKS | ||
90 | SQLITE_BENCHMARKS = \ | ||
91 | perf_datacache_sqlite | ||
92 | endif | ||
93 | SQLITE_TESTS = \ | ||
94 | test_datacache_sqlite \ | ||
95 | test_datacache_quota_sqlite \ | ||
96 | $(SQLITE_BENCHMARKS) | ||
97 | |||
98 | if HAVE_BENCHMARKS | ||
99 | HEAP_BENCHMARKS = \ | ||
100 | perf_datacache_heap | ||
101 | endif | ||
102 | HEAP_TESTS = \ | ||
103 | test_datacache_heap \ | ||
104 | test_datacache_quota_heap \ | ||
105 | $(HEAP_BENCHMARKS) | ||
106 | |||
107 | if HAVE_POSTGRESQL | ||
108 | if HAVE_BENCHMARKS | ||
109 | POSTGRES_BENCHMARKS = \ | ||
110 | perf_datacache_postgres | ||
111 | endif | ||
112 | POSTGRES_TESTS = \ | ||
113 | test_datacache_postgres \ | ||
114 | test_datacache_quota_postgres \ | ||
115 | $(POSTGRES_BENCHMARKS) | ||
116 | endif | ||
117 | endif | ||
118 | |||
119 | check_PROGRAMS = \ | ||
120 | $(SQLITE_TESTS) \ | ||
121 | $(HEAP_TESTS) \ | ||
122 | $(POSTGRES_TESTS) | ||
123 | |||
124 | if ENABLE_TEST_RUN | ||
125 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
126 | TESTS = $(check_PROGRAMS) | ||
127 | endif | ||
128 | |||
129 | test_datacache_sqlite_SOURCES = \ | ||
130 | test_datacache.c | ||
131 | test_datacache_sqlite_LDADD = \ | ||
132 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
133 | libgnunetdatacache.la \ | ||
134 | $(top_builddir)/src/util/libgnunetutil.la | ||
135 | |||
136 | test_datacache_quota_sqlite_SOURCES = \ | ||
137 | test_datacache_quota.c | ||
138 | test_datacache_quota_sqlite_LDADD = \ | ||
139 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
140 | libgnunetdatacache.la \ | ||
141 | $(top_builddir)/src/util/libgnunetutil.la | ||
142 | |||
143 | perf_datacache_sqlite_SOURCES = \ | ||
144 | perf_datacache.c | ||
145 | perf_datacache_sqlite_LDADD = \ | ||
146 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
147 | libgnunetdatacache.la \ | ||
148 | $(top_builddir)/src/util/libgnunetutil.la | ||
149 | |||
150 | test_datacache_heap_SOURCES = \ | ||
151 | test_datacache.c | ||
152 | test_datacache_heap_LDADD = \ | ||
153 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
154 | libgnunetdatacache.la \ | ||
155 | $(top_builddir)/src/util/libgnunetutil.la | ||
156 | |||
157 | test_datacache_quota_heap_SOURCES = \ | ||
158 | test_datacache_quota.c | ||
159 | test_datacache_quota_heap_LDADD = \ | ||
160 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
161 | libgnunetdatacache.la \ | ||
162 | $(top_builddir)/src/util/libgnunetutil.la | ||
163 | |||
164 | perf_datacache_heap_SOURCES = \ | ||
165 | perf_datacache.c | ||
166 | perf_datacache_heap_LDADD = \ | ||
167 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
168 | libgnunetdatacache.la \ | ||
169 | $(top_builddir)/src/util/libgnunetutil.la | ||
170 | |||
171 | test_datacache_postgres_SOURCES = \ | ||
172 | test_datacache.c | ||
173 | test_datacache_postgres_LDADD = \ | ||
174 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
175 | libgnunetdatacache.la \ | ||
176 | $(top_builddir)/src/util/libgnunetutil.la | ||
177 | |||
178 | test_datacache_quota_postgres_SOURCES = \ | ||
179 | test_datacache_quota.c | ||
180 | test_datacache_quota_postgres_LDADD = \ | ||
181 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
182 | libgnunetdatacache.la \ | ||
183 | $(top_builddir)/src/util/libgnunetutil.la | ||
184 | |||
185 | perf_datacache_postgres_SOURCES = \ | ||
186 | perf_datacache.c | ||
187 | perf_datacache_postgres_LDADD = \ | ||
188 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
189 | libgnunetdatacache.la \ | ||
190 | $(top_builddir)/src/util/libgnunetutil.la | ||
191 | |||
192 | EXTRA_DIST = \ | ||
193 | test_datacache_data_sqlite.conf \ | ||
194 | perf_datacache_data_sqlite.conf \ | ||
195 | test_datacache_data_heap.conf \ | ||
196 | perf_datacache_data_heap.conf \ | ||
197 | test_datacache_data_postgres.conf \ | ||
198 | perf_datacache_data_postgres.conf | ||