e95add6c704a6ef9c048ae873b61f8c741158200
[oweals/gnunet.git] / src / namestore / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 pkgcfg_DATA = \
11    namestore.conf
12
13
14 if MINGW
15   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 endif
17
18 if USE_COVERAGE
19   AM_CFLAGS = --coverage -O0
20   XLIBS = -lgcov
21 endif
22
23 HEAP_PLUGIN = libgnunet_plugin_namestore_flat.la
24 if HAVE_TESTING
25 HEAP_TESTS = test_plugin_namestore_flat \
26  test_namestore_api_store_flat \
27  test_namestore_api_store_update_flat \
28  test_namestore_api_remove_flat \
29  test_namestore_api_zone_iteration_flat \
30  test_namestore_api_lookup_nick_flat \
31  test_namestore_api_monitoring_flat \
32  test_namestore_api_lookup_public_flat \
33  test_namestore_api_lookup_private_flat \
34  test_namestore_api_lookup_shadow_flat \
35  test_namestore_api_lookup_shadow_filter_flat \
36  test_namestore_api_remove_not_existing_record_flat \
37  test_namestore_api_zone_iteration_nick_flat \
38  test_namestore_api_zone_iteration_specific_zone_flat \
39  test_namestore_api_zone_iteration_stop_flat \
40  test_namestore_api_monitoring_existing_flat \
41  test_namestore_api_zone_to_name_flat \
42  perf_namestore_api_zone_iteration_flat
43 endif
44
45 if HAVE_SQLITE
46 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
47 if HAVE_TESTING
48 SQLITE_TESTS = test_plugin_namestore_sqlite \
49  test_namestore_api_store_sqlite \
50  test_namestore_api_store_update_sqlite \
51  test_namestore_api_zone_iteration_sqlite \
52  test_namestore_api_remove_sqlite \
53  test_namestore_api_lookup_nick_sqlite \
54  test_namestore_api_monitoring_sqlite \
55  test_namestore_api_lookup_public_sqlite \
56  test_namestore_api_lookup_private_sqlite \
57  test_namestore_api_lookup_shadow_sqlite \
58  test_namestore_api_lookup_shadow_filter_sqlite \
59  test_namestore_api_remove_not_existing_record_sqlite \
60  test_namestore_api_zone_iteration_nick_sqlite \
61  test_namestore_api_zone_iteration_specific_zone_sqlite \
62  test_namestore_api_zone_iteration_stop_sqlite \
63  test_namestore_api_monitoring_existing_sqlite \
64  test_namestore_api_zone_to_name_sqlite \
65  perf_namestore_api_zone_iteration_sqlite
66 endif
67 endif
68
69 if HAVE_POSTGRESQL
70 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
71 if HAVE_TESTING
72 POSTGRES_TESTS = test_plugin_namestore_postgres \
73  test_namestore_api_store_postgres \
74  test_namestore_api_store_update_postgres \
75  test_namestore_api_remove_postgres \
76  test_namestore_api_zone_iteration_postgres \
77  test_namestore_api_lookup_nick_postgres \
78  test_namestore_api_monitoring_postgres \
79  test_namestore_api_lookup_public_postgres \
80  test_namestore_api_lookup_private_postgres \
81  test_namestore_api_lookup_shadow_postgres \
82  test_namestore_api_lookup_shadow_filter_postgres \
83  test_namestore_api_remove_not_existing_record_postgres \
84  test_namestore_api_zone_iteration_nick_postgres \
85  test_namestore_api_zone_iteration_specific_zone_postgres \
86  test_namestore_api_zone_iteration_stop_postgres \
87  test_namestore_api_monitoring_existing_postgres \
88  test_namestore_api_zone_to_name_postgres \
89  perf_namestore_api_zone_iteration_postgres
90 endif
91 endif
92
93 if HAVE_SQLITE
94 check_PROGRAMS = \
95  $(SQLITE_TESTS) \
96  $(POSTGRES_TESTS) \
97  $(HEAP_TESTS)
98 endif
99
100 if ENABLE_TEST_RUN
101 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
102 TESTS = \
103   $(check_PROGRAMS) \
104   $(check_SCRIPTS)
105 endif
106
107 if HAVE_MHD
108 if HAVE_JSON
109 REST_PLUGIN = libgnunet_plugin_rest_namestore.la
110 endif
111 endif
112
113 lib_LTLIBRARIES = \
114   libgnunetnamestore.la
115
116
117 libexec_PROGRAMS = \
118  gnunet-service-namestore
119
120 bin_PROGRAMS = \
121  gnunet-namestore \
122  gnunet-zoneimport
123
124 if HAVE_MHD
125 libexec_PROGRAMS += \
126  gnunet-namestore-fcfsd
127 endif
128
129
130 plugin_LTLIBRARIES = \
131   $(SQLITE_PLUGIN) \
132   $(POSTGRES_PLUGIN) \
133   $(HEAP_PLUGIN) \
134   $(REST_PLUGIN)
135
136
137 libgnunet_plugin_rest_namestore_la_SOURCES = \
138   plugin_rest_namestore.c
139 libgnunet_plugin_rest_namestore_la_LIBADD = \
140   libgnunetnamestore.la \
141   $(top_builddir)/src/rest/libgnunetrest.la \
142   $(top_builddir)/src/identity/libgnunetidentity.la \
143   $(top_builddir)/src/json/libgnunetjson.la \
144   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
145   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
146   $(LTLIBINTL) -ljansson -lmicrohttpd
147 libgnunet_plugin_rest_namestore_la_LDFLAGS = \
148  $(GN_PLUGIN_LDFLAGS)
149
150
151 libgnunetnamestore_la_SOURCES = \
152   namestore_api.c \
153   namestore_api_monitor.c \
154   namestore.h
155 libgnunetnamestore_la_LIBADD = \
156   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
157   $(top_builddir)/src/statistics/libgnunetstatistics.la \
158   $(top_builddir)/src/util/libgnunetutil.la \
159   $(GN_LIBINTL)
160 libgnunetnamestore_la_LDFLAGS = \
161   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
162   -version-info 0:1:0
163
164
165
166 gnunet_zoneimport_SOURCES = \
167  gnunet-zoneimport.c
168 gnunet_zoneimport_LDADD = \
169   libgnunetnamestore.la \
170   $(top_builddir)/src/statistics/libgnunetstatistics.la \
171   $(top_builddir)/src/identity/libgnunetidentity.la \
172   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
173   $(top_builddir)/src/util/libgnunetutil.la \
174   $(GN_LIBINTL)
175
176 gnunet_namestore_SOURCES = \
177  gnunet-namestore.c
178 gnunet_namestore_LDADD = \
179   $(top_builddir)/src/identity/libgnunetidentity.la \
180   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
181   $(top_builddir)/src/util/libgnunetutil.la \
182   libgnunetnamestore.la \
183   $(GN_LIBINTL)
184
185
186 gnunet_namestore_fcfsd_SOURCES = \
187  gnunet-namestore-fcfsd.c
188 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
189   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
190   $(top_builddir)/src/identity/libgnunetidentity.la \
191   libgnunetnamestore.la \
192   $(top_builddir)/src/util/libgnunetutil.la \
193   $(GN_LIBINTL)
194
195
196 gnunet_service_namestore_SOURCES = \
197  gnunet-service-namestore.c
198
199 gnunet_service_namestore_LDADD = \
200   $(top_builddir)/src/namecache/libgnunetnamecache.la \
201   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
202   $(top_builddir)/src/statistics/libgnunetstatistics.la \
203   $(top_builddir)/src/util/libgnunetutil.la \
204   libgnunetnamestore.la \
205   $(GN_LIBINTL)
206
207
208
209 libgnunet_plugin_namestore_flat_la_SOURCES = \
210   plugin_namestore_flat.c
211 libgnunet_plugin_namestore_flat_la_LIBADD = \
212   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
213   $(top_builddir)/src/statistics/libgnunetstatistics.la \
214   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
215   $(LTLIBINTL)
216 libgnunet_plugin_namestore_flat_la_LDFLAGS = \
217  $(GN_PLUGIN_LDFLAGS)
218
219
220 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
221   plugin_namestore_sqlite.c
222 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
223   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
224   $(top_builddir)/src/sq/libgnunetsq.la \
225   $(top_builddir)/src/statistics/libgnunetstatistics.la \
226   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
227   $(LTLIBINTL)
228 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
229  $(GN_PLUGIN_LDFLAGS)
230
231 libgnunet_plugin_namestore_postgres_la_SOURCES = \
232   plugin_namestore_postgres.c
233 libgnunet_plugin_namestore_postgres_la_LIBADD = \
234   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
235   $(top_builddir)/src/pq/libgnunetpq.la  \
236   $(top_builddir)/src/statistics/libgnunetstatistics.la \
237   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
238   $(LTLIBINTL)
239 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
240  $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
241
242 test_namestore_api_store_flat_SOURCES = \
243  test_namestore_api_store.c
244 test_namestore_api_store_flat_LDADD = \
245   $(top_builddir)/src/testing/libgnunettesting.la \
246   $(top_builddir)/src/util/libgnunetutil.la \
247   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
248   libgnunetnamestore.la
249
250 test_namestore_api_store_sqlite_SOURCES = \
251  test_namestore_api_store.c
252 test_namestore_api_store_sqlite_LDADD = \
253   $(top_builddir)/src/testing/libgnunettesting.la \
254   $(top_builddir)/src/util/libgnunetutil.la \
255   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
256   libgnunetnamestore.la
257
258 test_namestore_api_store_postgres_SOURCES = \
259  test_namestore_api_store.c
260 test_namestore_api_store_postgres_LDADD = \
261   $(top_builddir)/src/testing/libgnunettesting.la \
262   $(top_builddir)/src/util/libgnunetutil.la \
263   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
264   libgnunetnamestore.la
265
266 test_namestore_api_store_update_flat_SOURCES = \
267  test_namestore_api_store_update.c
268 test_namestore_api_store_update_flat_LDADD = \
269   $(top_builddir)/src/testing/libgnunettesting.la \
270   $(top_builddir)/src/util/libgnunetutil.la \
271   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
272   $(top_builddir)/src/namecache/libgnunetnamecache.la \
273   libgnunetnamestore.la
274
275 test_namestore_api_store_update_sqlite_SOURCES = \
276  test_namestore_api_store_update.c
277 test_namestore_api_store_update_sqlite_LDADD = \
278   $(top_builddir)/src/testing/libgnunettesting.la \
279   $(top_builddir)/src/util/libgnunetutil.la \
280   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
281   $(top_builddir)/src/namecache/libgnunetnamecache.la \
282   libgnunetnamestore.la
283
284 test_namestore_api_store_update_postgres_SOURCES = \
285  test_namestore_api_store_update.c
286 test_namestore_api_store_update_postgres_LDADD = \
287   $(top_builddir)/src/testing/libgnunettesting.la \
288   $(top_builddir)/src/util/libgnunetutil.la \
289   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
290   $(top_builddir)/src/namecache/libgnunetnamecache.la \
291   libgnunetnamestore.la
292
293 test_namestore_api_lookup_public_flat_SOURCES = \
294  test_namestore_api_lookup_public.c
295 test_namestore_api_lookup_public_flat_LDADD = \
296   $(top_builddir)/src/testing/libgnunettesting.la \
297   $(top_builddir)/src/util/libgnunetutil.la \
298   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
299   $(top_builddir)/src/namecache/libgnunetnamecache.la \
300   libgnunetnamestore.la
301
302 test_namestore_api_lookup_public_sqlite_SOURCES = \
303  test_namestore_api_lookup_public.c
304 test_namestore_api_lookup_public_sqlite_LDADD = \
305   $(top_builddir)/src/testing/libgnunettesting.la \
306   $(top_builddir)/src/util/libgnunetutil.la \
307   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
308   $(top_builddir)/src/namecache/libgnunetnamecache.la \
309   libgnunetnamestore.la
310
311 test_namestore_api_lookup_public_postgres_SOURCES = \
312  test_namestore_api_lookup_public.c
313 test_namestore_api_lookup_public_postgres_LDADD = \
314   $(top_builddir)/src/testing/libgnunettesting.la \
315   $(top_builddir)/src/util/libgnunetutil.la \
316   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
317   $(top_builddir)/src/namecache/libgnunetnamecache.la \
318   libgnunetnamestore.la
319
320 test_namestore_api_lookup_nick_sqlite_SOURCES = \
321  test_namestore_api_lookup_nick.c
322 test_namestore_api_lookup_nick_sqlite_LDADD = \
323   $(top_builddir)/src/testing/libgnunettesting.la \
324   $(top_builddir)/src/util/libgnunetutil.la \
325   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
326   $(top_builddir)/src/namecache/libgnunetnamecache.la \
327   libgnunetnamestore.la
328
329 test_namestore_api_lookup_nick_postgres_SOURCES = \
330  test_namestore_api_lookup_nick.c
331 test_namestore_api_lookup_nick_postgres_LDADD = \
332   $(top_builddir)/src/testing/libgnunettesting.la \
333   $(top_builddir)/src/util/libgnunetutil.la \
334   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
335   $(top_builddir)/src/namecache/libgnunetnamecache.la \
336   libgnunetnamestore.la
337
338 test_namestore_api_lookup_nick_flat_SOURCES = \
339  test_namestore_api_lookup_nick.c
340 test_namestore_api_lookup_nick_flat_LDADD = \
341   $(top_builddir)/src/testing/libgnunettesting.la \
342   $(top_builddir)/src/util/libgnunetutil.la \
343   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
344   $(top_builddir)/src/namecache/libgnunetnamecache.la \
345   libgnunetnamestore.la
346
347 test_namestore_api_lookup_private_flat_SOURCES = \
348  test_namestore_api_lookup_private.c
349 test_namestore_api_lookup_private_flat_LDADD = \
350   $(top_builddir)/src/testing/libgnunettesting.la \
351   $(top_builddir)/src/util/libgnunetutil.la \
352   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
353   $(top_builddir)/src/namecache/libgnunetnamecache.la \
354   libgnunetnamestore.la
355
356 test_namestore_api_lookup_private_sqlite_SOURCES = \
357  test_namestore_api_lookup_private.c
358 test_namestore_api_lookup_private_sqlite_LDADD = \
359   $(top_builddir)/src/testing/libgnunettesting.la \
360   $(top_builddir)/src/util/libgnunetutil.la \
361   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
362   $(top_builddir)/src/namecache/libgnunetnamecache.la \
363   libgnunetnamestore.la
364
365 test_namestore_api_lookup_private_postgres_SOURCES = \
366  test_namestore_api_lookup_private.c
367 test_namestore_api_lookup_private_postgres_LDADD = \
368   $(top_builddir)/src/testing/libgnunettesting.la \
369   $(top_builddir)/src/util/libgnunetutil.la \
370   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
371   $(top_builddir)/src/namecache/libgnunetnamecache.la \
372   libgnunetnamestore.la
373
374 test_namestore_api_lookup_shadow_flat_SOURCES = \
375  test_namestore_api_lookup_shadow.c
376 test_namestore_api_lookup_shadow_flat_LDADD = \
377   $(top_builddir)/src/testing/libgnunettesting.la \
378   $(top_builddir)/src/util/libgnunetutil.la \
379   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
380   $(top_builddir)/src/namecache/libgnunetnamecache.la \
381   libgnunetnamestore.la
382
383 test_namestore_api_lookup_shadow_sqlite_SOURCES = \
384  test_namestore_api_lookup_shadow.c
385 test_namestore_api_lookup_shadow_sqlite_LDADD = \
386   $(top_builddir)/src/testing/libgnunettesting.la \
387   $(top_builddir)/src/util/libgnunetutil.la \
388   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
389   $(top_builddir)/src/namecache/libgnunetnamecache.la \
390   libgnunetnamestore.la
391
392 test_namestore_api_lookup_shadow_postgres_SOURCES = \
393  test_namestore_api_lookup_shadow.c
394 test_namestore_api_lookup_shadow_postgres_LDADD = \
395   $(top_builddir)/src/testing/libgnunettesting.la \
396   $(top_builddir)/src/util/libgnunetutil.la \
397   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
398   $(top_builddir)/src/namecache/libgnunetnamecache.la \
399   libgnunetnamestore.la
400
401 test_namestore_api_lookup_shadow_filter_flat_SOURCES = \
402  test_namestore_api_lookup_shadow_filter.c
403 test_namestore_api_lookup_shadow_filter_flat_LDADD = \
404   $(top_builddir)/src/testing/libgnunettesting.la \
405   $(top_builddir)/src/util/libgnunetutil.la \
406   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
407   $(top_builddir)/src/namecache/libgnunetnamecache.la \
408   libgnunetnamestore.la
409
410 test_namestore_api_lookup_shadow_filter_sqlite_SOURCES = \
411  test_namestore_api_lookup_shadow_filter.c
412 test_namestore_api_lookup_shadow_filter_sqlite_LDADD = \
413   $(top_builddir)/src/testing/libgnunettesting.la \
414   $(top_builddir)/src/util/libgnunetutil.la \
415   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
416   $(top_builddir)/src/namecache/libgnunetnamecache.la \
417   libgnunetnamestore.la
418 test_namestore_api_lookup_shadow_filter_postgres_SOURCES = \
419  test_namestore_api_lookup_shadow_filter.c
420 test_namestore_api_lookup_shadow_filter_postgres_LDADD = \
421   $(top_builddir)/src/testing/libgnunettesting.la \
422   $(top_builddir)/src/util/libgnunetutil.la \
423   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
424   $(top_builddir)/src/namecache/libgnunetnamecache.la \
425   libgnunetnamestore.la
426
427 test_namestore_api_remove_sqlite_SOURCES = \
428  test_namestore_api_remove.c
429 test_namestore_api_remove_sqlite_LDADD = \
430   $(top_builddir)/src/testing/libgnunettesting.la \
431   $(top_builddir)/src/util/libgnunetutil.la \
432   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
433   libgnunetnamestore.la
434
435 test_namestore_api_remove_postgres_SOURCES = \
436  test_namestore_api_remove.c
437 test_namestore_api_remove_postgres_LDADD = \
438   $(top_builddir)/src/testing/libgnunettesting.la \
439   $(top_builddir)/src/util/libgnunetutil.la \
440   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
441   libgnunetnamestore.la
442
443 test_namestore_api_remove_flat_SOURCES = \
444  test_namestore_api_remove.c
445 test_namestore_api_remove_flat_LDADD = \
446   $(top_builddir)/src/testing/libgnunettesting.la \
447   $(top_builddir)/src/util/libgnunetutil.la \
448   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
449   libgnunetnamestore.la
450
451 test_namestore_api_remove_not_existing_record_flat_SOURCES = \
452  test_namestore_api_remove_not_existing_record.c
453 test_namestore_api_remove_not_existing_record_flat_LDADD = \
454   $(top_builddir)/src/testing/libgnunettesting.la \
455   $(top_builddir)/src/util/libgnunetutil.la \
456   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
457   libgnunetnamestore.la
458
459 test_namestore_api_remove_not_existing_record_sqlite_SOURCES = \
460  test_namestore_api_remove_not_existing_record.c
461 test_namestore_api_remove_not_existing_record_sqlite_LDADD = \
462   $(top_builddir)/src/testing/libgnunettesting.la \
463   $(top_builddir)/src/util/libgnunetutil.la \
464   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
465   libgnunetnamestore.la
466
467 test_namestore_api_remove_not_existing_record_postgres_SOURCES = \
468  test_namestore_api_remove_not_existing_record.c
469 test_namestore_api_remove_not_existing_record_postgres_LDADD = \
470   $(top_builddir)/src/testing/libgnunettesting.la \
471   $(top_builddir)/src/util/libgnunetutil.la \
472   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
473   libgnunetnamestore.la
474
475 test_namestore_api_zone_to_name_flat_SOURCES = \
476  test_namestore_api_zone_to_name.c
477 test_namestore_api_zone_to_name_flat_LDADD = \
478   $(top_builddir)/src/testing/libgnunettesting.la \
479   $(top_builddir)/src/util/libgnunetutil.la \
480   libgnunetnamestore.la
481
482 test_namestore_api_zone_to_name_sqlite_SOURCES = \
483  test_namestore_api_zone_to_name.c
484 test_namestore_api_zone_to_name_sqlite_LDADD = \
485   $(top_builddir)/src/testing/libgnunettesting.la \
486   $(top_builddir)/src/util/libgnunetutil.la \
487   libgnunetnamestore.la
488
489 test_namestore_api_zone_to_name_postgres_SOURCES = \
490  test_namestore_api_zone_to_name.c
491 test_namestore_api_zone_to_name_postgres_LDADD = \
492   $(top_builddir)/src/testing/libgnunettesting.la \
493   $(top_builddir)/src/util/libgnunetutil.la \
494   libgnunetnamestore.la
495
496 test_namestore_api_monitoring_flat_SOURCES = \
497  test_namestore_api_monitoring.c
498 test_namestore_api_monitoring_flat_LDADD = \
499   $(top_builddir)/src/testing/libgnunettesting.la \
500   libgnunetnamestore.la \
501   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
502   $(top_builddir)/src/util/libgnunetutil.la
503
504 test_namestore_api_monitoring_sqlite_SOURCES = \
505  test_namestore_api_monitoring.c
506 test_namestore_api_monitoring_sqlite_LDADD = \
507   $(top_builddir)/src/testing/libgnunettesting.la \
508   libgnunetnamestore.la \
509   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
510   $(top_builddir)/src/util/libgnunetutil.la
511
512 test_namestore_api_monitoring_postgres_SOURCES = \
513  test_namestore_api_monitoring.c
514 test_namestore_api_monitoring_postgres_LDADD = \
515   $(top_builddir)/src/testing/libgnunettesting.la \
516   libgnunetnamestore.la \
517   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
518   $(top_builddir)/src/util/libgnunetutil.la
519
520 test_namestore_api_monitoring_existing_flat_SOURCES = \
521  test_namestore_api_monitoring_existing.c
522 test_namestore_api_monitoring_existing_flat_LDADD = \
523   $(top_builddir)/src/testing/libgnunettesting.la \
524   libgnunetnamestore.la \
525   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
526   $(top_builddir)/src/util/libgnunetutil.la
527
528 test_namestore_api_monitoring_existing_sqlite_SOURCES = \
529  test_namestore_api_monitoring_existing.c
530 test_namestore_api_monitoring_existing_sqlite_LDADD = \
531   $(top_builddir)/src/testing/libgnunettesting.la \
532   libgnunetnamestore.la \
533   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
534   $(top_builddir)/src/util/libgnunetutil.la
535
536 test_namestore_api_monitoring_existing_postgres_SOURCES = \
537  test_namestore_api_monitoring_existing.c
538 test_namestore_api_monitoring_existing_postgres_LDADD = \
539   $(top_builddir)/src/testing/libgnunettesting.la \
540   libgnunetnamestore.la \
541   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
542   $(top_builddir)/src/util/libgnunetutil.la
543
544 test_namestore_api_zone_iteration_flat_SOURCES = \
545  test_namestore_api_zone_iteration.c
546 test_namestore_api_zone_iteration_flat_LDADD = \
547   $(top_builddir)/src/testing/libgnunettesting.la \
548   $(top_builddir)/src/util/libgnunetutil.la \
549   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
550   libgnunetnamestore.la
551
552 test_namestore_api_zone_iteration_sqlite_SOURCES = \
553  test_namestore_api_zone_iteration.c
554 test_namestore_api_zone_iteration_sqlite_LDADD = \
555   $(top_builddir)/src/testing/libgnunettesting.la \
556   $(top_builddir)/src/util/libgnunetutil.la \
557   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
558   libgnunetnamestore.la
559
560 test_namestore_api_zone_iteration_postgres_SOURCES = \
561  test_namestore_api_zone_iteration.c
562 test_namestore_api_zone_iteration_postgres_LDADD = \
563   $(top_builddir)/src/testing/libgnunettesting.la \
564   $(top_builddir)/src/util/libgnunetutil.la \
565   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
566   libgnunetnamestore.la
567
568 perf_namestore_api_zone_iteration_postgres_SOURCES = \
569  perf_namestore_api_zone_iteration.c
570 perf_namestore_api_zone_iteration_postgres_LDADD = \
571   $(top_builddir)/src/testing/libgnunettesting.la \
572   $(top_builddir)/src/util/libgnunetutil.la \
573   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
574   libgnunetnamestore.la
575
576 perf_namestore_api_zone_iteration_sqlite_SOURCES = \
577  perf_namestore_api_zone_iteration.c
578 perf_namestore_api_zone_iteration_sqlite_LDADD = \
579   $(top_builddir)/src/testing/libgnunettesting.la \
580   $(top_builddir)/src/util/libgnunetutil.la \
581   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
582   libgnunetnamestore.la
583
584 perf_namestore_api_zone_iteration_flat_SOURCES = \
585  perf_namestore_api_zone_iteration.c
586 perf_namestore_api_zone_iteration_flat_LDADD = \
587   $(top_builddir)/src/testing/libgnunettesting.la \
588   $(top_builddir)/src/util/libgnunetutil.la \
589   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
590   libgnunetnamestore.la
591
592 test_namestore_api_zone_iteration_nick_flat_SOURCES = \
593  test_namestore_api_zone_iteration_nick.c
594 test_namestore_api_zone_iteration_nick_flat_LDADD = \
595   $(top_builddir)/src/testing/libgnunettesting.la \
596   $(top_builddir)/src/util/libgnunetutil.la \
597   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
598   libgnunetnamestore.la
599
600 test_namestore_api_zone_iteration_nick_sqlite_SOURCES = \
601  test_namestore_api_zone_iteration_nick.c
602 test_namestore_api_zone_iteration_nick_sqlite_LDADD = \
603   $(top_builddir)/src/testing/libgnunettesting.la \
604   $(top_builddir)/src/util/libgnunetutil.la \
605   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
606   libgnunetnamestore.la
607
608 test_namestore_api_zone_iteration_nick_postgres_SOURCES = \
609  test_namestore_api_zone_iteration_nick.c
610 test_namestore_api_zone_iteration_nick_postgres_LDADD = \
611   $(top_builddir)/src/testing/libgnunettesting.la \
612   $(top_builddir)/src/util/libgnunetutil.la \
613   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
614   libgnunetnamestore.la
615
616 test_namestore_api_zone_iteration_specific_zone_flat_SOURCES = \
617  test_namestore_api_zone_iteration_specific_zone.c
618 test_namestore_api_zone_iteration_specific_zone_flat_LDADD = \
619   $(top_builddir)/src/testing/libgnunettesting.la \
620   $(top_builddir)/src/util/libgnunetutil.la \
621   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
622   libgnunetnamestore.la
623
624 test_namestore_api_zone_iteration_specific_zone_sqlite_SOURCES = \
625  test_namestore_api_zone_iteration_specific_zone.c
626 test_namestore_api_zone_iteration_specific_zone_sqlite_LDADD = \
627   $(top_builddir)/src/testing/libgnunettesting.la \
628   $(top_builddir)/src/util/libgnunetutil.la \
629   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
630   libgnunetnamestore.la
631
632 test_namestore_api_zone_iteration_specific_zone_postgres_SOURCES = \
633  test_namestore_api_zone_iteration_specific_zone.c
634 test_namestore_api_zone_iteration_specific_zone_postgres_LDADD = \
635   $(top_builddir)/src/testing/libgnunettesting.la \
636   $(top_builddir)/src/util/libgnunetutil.la \
637   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
638   libgnunetnamestore.la
639
640 test_namestore_api_zone_iteration_stop_flat_SOURCES = \
641  test_namestore_api_zone_iteration_stop.c
642 test_namestore_api_zone_iteration_stop_flat_LDADD = \
643   $(top_builddir)/src/testing/libgnunettesting.la \
644   $(top_builddir)/src/util/libgnunetutil.la \
645   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
646   libgnunetnamestore.la
647
648 test_namestore_api_zone_iteration_stop_sqlite_SOURCES = \
649  test_namestore_api_zone_iteration_stop.c
650 test_namestore_api_zone_iteration_stop_sqlite_LDADD = \
651   $(top_builddir)/src/testing/libgnunettesting.la \
652   $(top_builddir)/src/util/libgnunetutil.la \
653   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
654   libgnunetnamestore.la
655
656 test_namestore_api_zone_iteration_stop_postgres_SOURCES = \
657  test_namestore_api_zone_iteration_stop.c
658 test_namestore_api_zone_iteration_stop_postgres_LDADD = \
659   $(top_builddir)/src/testing/libgnunettesting.la \
660   $(top_builddir)/src/util/libgnunetutil.la \
661   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
662   libgnunetnamestore.la
663
664 test_plugin_namestore_flat_SOURCES = \
665  test_plugin_namestore.c
666 test_plugin_namestore_flat_LDADD = \
667  $(top_builddir)/src/testing/libgnunettesting.la \
668  $(top_builddir)/src/util/libgnunetutil.la
669
670 test_plugin_namestore_sqlite_SOURCES = \
671  test_plugin_namestore.c
672 test_plugin_namestore_sqlite_LDADD = \
673  $(top_builddir)/src/testing/libgnunettesting.la \
674  $(top_builddir)/src/util/libgnunetutil.la
675
676 test_plugin_namestore_postgres_SOURCES = \
677  test_plugin_namestore.c
678 test_plugin_namestore_postgres_LDADD = \
679  $(top_builddir)/src/testing/libgnunettesting.la \
680  $(top_builddir)/src/util/libgnunetutil.la
681
682 check_SCRIPTS = \
683   test_namestore_put.sh \
684   test_namestore_lookup.sh \
685   test_namestore_delete.sh
686
687 EXTRA_DIST = \
688   test_common.c \
689   test_namestore_api.conf \
690   test_namestore_api_postgres.conf \
691   test_namestore_api_sqlite.conf \
692   test_namestore_api_flat.conf \
693   perf_namestore_api_postgres.conf \
694   perf_namestore_api_sqlite.conf \
695   perf_namestore_api_flat.conf \
696   test_plugin_namestore_sqlite.conf \
697   test_plugin_namestore_postgres.conf \
698   test_plugin_namestore_flat.conf \
699   test_hostkey \
700   zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
701   zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
702   zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
703   zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey \
704   $(check_SCRIPTS)