diff options
Diffstat (limited to 'src/datastore/Makefile.am')
-rw-r--r-- | src/datastore/Makefile.am | 321 |
1 files changed, 0 insertions, 321 deletions
diff --git a/src/datastore/Makefile.am b/src/datastore/Makefile.am deleted file mode 100644 index 07ae004b3..000000000 --- a/src/datastore/Makefile.am +++ /dev/null | |||
@@ -1,321 +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 | libexecdir= $(pkglibdir)/libexec/ | ||
9 | |||
10 | pkgcfg_DATA = \ | ||
11 | datastore.conf | ||
12 | |||
13 | if USE_COVERAGE | ||
14 | AM_CFLAGS = --coverage -O0 | ||
15 | XLIBS = -lgcov | ||
16 | endif | ||
17 | |||
18 | |||
19 | lib_LTLIBRARIES = \ | ||
20 | libgnunetdatastore.la | ||
21 | |||
22 | libgnunetdatastore_la_SOURCES = \ | ||
23 | datastore_api.c datastore.h | ||
24 | libgnunetdatastore_la_LIBADD = \ | ||
25 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
26 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
27 | $(GN_LIBINTL) | ||
28 | libgnunetdatastore_la_LDFLAGS = \ | ||
29 | $(GN_LIB_LDFLAGS) \ | ||
30 | -version-info 1:0:0 | ||
31 | |||
32 | bin_PROGRAMS = \ | ||
33 | gnunet-datastore | ||
34 | |||
35 | libexec_PROGRAMS = \ | ||
36 | gnunet-service-datastore | ||
37 | |||
38 | gnunet_service_datastore_SOURCES = \ | ||
39 | gnunet-service-datastore.c | ||
40 | gnunet_service_datastore_LDADD = \ | ||
41 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
42 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
43 | $(GN_LIBINTL) | ||
44 | |||
45 | gnunet_datastore_SOURCES = \ | ||
46 | gnunet-datastore.c | ||
47 | gnunet_datastore_LDADD = \ | ||
48 | libgnunetdatastore.la \ | ||
49 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
50 | $(GN_LIBINTL) | ||
51 | |||
52 | |||
53 | if HAVE_MYSQL | ||
54 | MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la | ||
55 | if HAVE_BENCHMARKS | ||
56 | MYSQL_BENCHMARKS = \ | ||
57 | perf_datastore_api_mysql \ | ||
58 | perf_plugin_datastore_mysql | ||
59 | endif | ||
60 | MYSQL_TESTS = \ | ||
61 | test_datastore_api_mysql \ | ||
62 | test_datastore_api_management_mysql \ | ||
63 | test_plugin_datastore_mysql \ | ||
64 | $(MYSQL_BENCHMARKS) | ||
65 | endif | ||
66 | if HAVE_SQLITE | ||
67 | SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la | ||
68 | if HAVE_BENCHMARKS | ||
69 | SQLITE_BENCHMARKS = \ | ||
70 | perf_datastore_api_sqlite \ | ||
71 | perf_plugin_datastore_sqlite | ||
72 | endif | ||
73 | SQLITE_TESTS = \ | ||
74 | test_datastore_api_sqlite \ | ||
75 | test_datastore_api_management_sqlite \ | ||
76 | test_plugin_datastore_sqlite \ | ||
77 | $(SQLITE_BENCHMARKS) | ||
78 | endif | ||
79 | if HAVE_POSTGRESQL | ||
80 | POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la | ||
81 | if HAVE_BENCHMARKS | ||
82 | POSTGRES_BENCHMARKS = \ | ||
83 | perf_datastore_api_postgres \ | ||
84 | perf_plugin_datastore_postgres | ||
85 | endif | ||
86 | POSTGRES_TESTS = \ | ||
87 | test_datastore_api_postgres \ | ||
88 | test_datastore_api_management_postgres \ | ||
89 | test_plugin_datastore_postgres \ | ||
90 | $(POSTGRES_BENCHMARKS) | ||
91 | endif | ||
92 | |||
93 | plugin_LTLIBRARIES = \ | ||
94 | $(SQLITE_PLUGIN) \ | ||
95 | $(MYSQL_PLUGIN) \ | ||
96 | $(POSTGRES_PLUGIN) \ | ||
97 | libgnunet_plugin_datastore_heap.la | ||
98 | |||
99 | # Real plugins should of course go into | ||
100 | # plugin_LTLIBRARIES | ||
101 | noinst_LTLIBRARIES = \ | ||
102 | libgnunet_plugin_datastore_template.la | ||
103 | |||
104 | |||
105 | libgnunet_plugin_datastore_sqlite_la_SOURCES = \ | ||
106 | plugin_datastore_sqlite.c | ||
107 | libgnunet_plugin_datastore_sqlite_la_LIBADD = \ | ||
108 | $(top_builddir)/src/sq/libgnunetsq.la \ | ||
109 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
110 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \ | ||
111 | $(LTLIBINTL) | ||
112 | libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \ | ||
113 | $(GN_PLUGIN_LDFLAGS) | ||
114 | |||
115 | |||
116 | libgnunet_plugin_datastore_heap_la_SOURCES = \ | ||
117 | plugin_datastore_heap.c | ||
118 | libgnunet_plugin_datastore_heap_la_LIBADD = \ | ||
119 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | ||
120 | $(LTLIBINTL) | ||
121 | libgnunet_plugin_datastore_heap_la_LDFLAGS = \ | ||
122 | $(GN_PLUGIN_LDFLAGS) | ||
123 | |||
124 | |||
125 | libgnunet_plugin_datastore_mysql_la_SOURCES = \ | ||
126 | plugin_datastore_mysql.c | ||
127 | libgnunet_plugin_datastore_mysql_la_LIBADD = \ | ||
128 | $(top_builddir)/src/my/libgnunetmy.la \ | ||
129 | $(top_builddir)/src/mysql/libgnunetmysql.la \ | ||
130 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
131 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) $(Z_LIBS) -lmysqlclient | ||
132 | libgnunet_plugin_datastore_mysql_la_LDFLAGS = \ | ||
133 | $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient | ||
134 | libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \ | ||
135 | $(MYSQL_CPPFLAGS) $(AM_CPPFLAGS) | ||
136 | |||
137 | libgnunet_plugin_datastore_postgres_la_SOURCES = \ | ||
138 | plugin_datastore_postgres.c | ||
139 | libgnunet_plugin_datastore_postgres_la_LIBADD = \ | ||
140 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
141 | $(top_builddir)/src/pq/libgnunetpq.la \ | ||
142 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq | ||
143 | libgnunet_plugin_datastore_postgres_la_LDFLAGS = \ | ||
144 | $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) | ||
145 | libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \ | ||
146 | $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS) | ||
147 | |||
148 | |||
149 | libgnunet_plugin_datastore_template_la_SOURCES = \ | ||
150 | plugin_datastore_template.c | ||
151 | libgnunet_plugin_datastore_template_la_LIBADD = \ | ||
152 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | ||
153 | $(LTLIBINTL) | ||
154 | libgnunet_plugin_datastore_template_la_LDFLAGS = \ | ||
155 | $(GN_PLUGIN_LDFLAGS) | ||
156 | |||
157 | check_PROGRAMS = \ | ||
158 | test_datastore_api_heap \ | ||
159 | test_datastore_api_management_heap \ | ||
160 | perf_datastore_api_heap \ | ||
161 | perf_plugin_datastore_heap \ | ||
162 | test_plugin_datastore_heap \ | ||
163 | $(SQLITE_TESTS) \ | ||
164 | $(MYSQL_TESTS) \ | ||
165 | $(POSTGRES_TESTS) | ||
166 | |||
167 | if ENABLE_TEST_RUN | ||
168 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
169 | TESTS = $(check_PROGRAMS) | ||
170 | endif | ||
171 | |||
172 | test_datastore_api_heap_SOURCES = \ | ||
173 | test_datastore_api.c | ||
174 | test_datastore_api_heap_LDADD = \ | ||
175 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
176 | libgnunetdatastore.la \ | ||
177 | $(top_builddir)/src/util/libgnunetutil.la | ||
178 | |||
179 | test_datastore_api_management_heap_SOURCES = \ | ||
180 | test_datastore_api_management.c | ||
181 | test_datastore_api_management_heap_LDADD = \ | ||
182 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
183 | libgnunetdatastore.la \ | ||
184 | $(top_builddir)/src/util/libgnunetutil.la | ||
185 | |||
186 | perf_datastore_api_heap_SOURCES = \ | ||
187 | perf_datastore_api.c | ||
188 | perf_datastore_api_heap_LDADD = \ | ||
189 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
190 | libgnunetdatastore.la \ | ||
191 | $(top_builddir)/src/util/libgnunetutil.la | ||
192 | |||
193 | perf_plugin_datastore_heap_SOURCES = \ | ||
194 | perf_plugin_datastore.c | ||
195 | perf_plugin_datastore_heap_LDADD = \ | ||
196 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
197 | $(top_builddir)/src/util/libgnunetutil.la | ||
198 | |||
199 | test_plugin_datastore_heap_SOURCES = \ | ||
200 | test_plugin_datastore.c | ||
201 | test_plugin_datastore_heap_LDADD = \ | ||
202 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
203 | $(top_builddir)/src/util/libgnunetutil.la | ||
204 | |||
205 | |||
206 | test_datastore_api_sqlite_SOURCES = \ | ||
207 | test_datastore_api.c | ||
208 | test_datastore_api_sqlite_LDADD = \ | ||
209 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
210 | libgnunetdatastore.la \ | ||
211 | $(top_builddir)/src/util/libgnunetutil.la | ||
212 | |||
213 | test_datastore_api_management_sqlite_SOURCES = \ | ||
214 | test_datastore_api_management.c | ||
215 | test_datastore_api_management_sqlite_LDADD = \ | ||
216 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
217 | libgnunetdatastore.la \ | ||
218 | $(top_builddir)/src/util/libgnunetutil.la | ||
219 | |||
220 | perf_datastore_api_sqlite_SOURCES = \ | ||
221 | perf_datastore_api.c | ||
222 | perf_datastore_api_sqlite_LDADD = \ | ||
223 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
224 | libgnunetdatastore.la \ | ||
225 | $(top_builddir)/src/util/libgnunetutil.la | ||
226 | |||
227 | perf_plugin_datastore_sqlite_SOURCES = \ | ||
228 | perf_plugin_datastore.c | ||
229 | perf_plugin_datastore_sqlite_LDADD = \ | ||
230 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
231 | $(top_builddir)/src/util/libgnunetutil.la | ||
232 | |||
233 | test_plugin_datastore_sqlite_SOURCES = \ | ||
234 | test_plugin_datastore.c | ||
235 | test_plugin_datastore_sqlite_LDADD = \ | ||
236 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
237 | $(top_builddir)/src/util/libgnunetutil.la | ||
238 | |||
239 | |||
240 | test_datastore_api_mysql_SOURCES = \ | ||
241 | test_datastore_api.c | ||
242 | test_datastore_api_mysql_LDADD = \ | ||
243 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
244 | libgnunetdatastore.la \ | ||
245 | $(top_builddir)/src/util/libgnunetutil.la | ||
246 | |||
247 | test_datastore_api_management_mysql_SOURCES = \ | ||
248 | test_datastore_api_management.c | ||
249 | test_datastore_api_management_mysql_LDADD = \ | ||
250 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
251 | libgnunetdatastore.la \ | ||
252 | $(top_builddir)/src/util/libgnunetutil.la | ||
253 | |||
254 | perf_datastore_api_mysql_SOURCES = \ | ||
255 | perf_datastore_api.c | ||
256 | perf_datastore_api_mysql_LDADD = \ | ||
257 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
258 | libgnunetdatastore.la \ | ||
259 | $(top_builddir)/src/util/libgnunetutil.la | ||
260 | |||
261 | test_plugin_datastore_mysql_SOURCES = \ | ||
262 | test_plugin_datastore.c | ||
263 | test_plugin_datastore_mysql_LDADD = \ | ||
264 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
265 | $(top_builddir)/src/util/libgnunetutil.la | ||
266 | |||
267 | perf_plugin_datastore_mysql_SOURCES = \ | ||
268 | perf_plugin_datastore.c | ||
269 | perf_plugin_datastore_mysql_LDADD = \ | ||
270 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
271 | $(top_builddir)/src/util/libgnunetutil.la | ||
272 | |||
273 | |||
274 | test_datastore_api_postgres_SOURCES = \ | ||
275 | test_datastore_api.c | ||
276 | test_datastore_api_postgres_LDADD = \ | ||
277 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
278 | libgnunetdatastore.la \ | ||
279 | $(top_builddir)/src/util/libgnunetutil.la | ||
280 | |||
281 | test_datastore_api_management_postgres_SOURCES = \ | ||
282 | test_datastore_api_management.c | ||
283 | test_datastore_api_management_postgres_LDADD = \ | ||
284 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
285 | libgnunetdatastore.la \ | ||
286 | $(top_builddir)/src/util/libgnunetutil.la | ||
287 | |||
288 | perf_datastore_api_postgres_SOURCES = \ | ||
289 | perf_datastore_api.c | ||
290 | perf_datastore_api_postgres_LDADD = \ | ||
291 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
292 | libgnunetdatastore.la \ | ||
293 | $(top_builddir)/src/util/libgnunetutil.la | ||
294 | |||
295 | test_plugin_datastore_postgres_SOURCES = \ | ||
296 | test_plugin_datastore.c | ||
297 | test_plugin_datastore_postgres_LDADD = \ | ||
298 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
299 | $(top_builddir)/src/util/libgnunetutil.la | ||
300 | |||
301 | perf_plugin_datastore_postgres_SOURCES = \ | ||
302 | perf_plugin_datastore.c | ||
303 | perf_plugin_datastore_postgres_LDADD = \ | ||
304 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
305 | $(top_builddir)/src/util/libgnunetutil.la | ||
306 | |||
307 | |||
308 | EXTRA_DIST = \ | ||
309 | test_defaults.conf \ | ||
310 | test_datastore_api_data_sqlite.conf \ | ||
311 | perf_plugin_datastore_data_sqlite.conf \ | ||
312 | test_plugin_datastore_data_sqlite.conf \ | ||
313 | test_datastore_api_data_heap.conf \ | ||
314 | perf_plugin_datastore_data_heap.conf \ | ||
315 | test_plugin_datastore_data_heap.conf \ | ||
316 | test_datastore_api_data_mysql.conf \ | ||
317 | perf_plugin_datastore_data_mysql.conf \ | ||
318 | test_plugin_datastore_data_mysql.conf \ | ||
319 | test_datastore_api_data_postgres.conf \ | ||
320 | perf_plugin_datastore_data_postgres.conf \ | ||
321 | test_plugin_datastore_data_postgres.conf | ||