-remove debug message
[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 if USE_COVERAGE
14   AM_CFLAGS = --coverage -O0
15   XLIBS = -lgcov
16 endif
17
18 HEAP_PLUGIN = libgnunet_plugin_namestore_flat.la
19 if HAVE_TESTING
20 HEAP_TESTS = test_plugin_namestore_flat \
21  test_namestore_api_store_flat \
22  test_namestore_api_store_update_flat \
23  test_namestore_api_remove_flat \
24  test_namestore_api_zone_iteration_flat \
25  test_namestore_api_lookup_nick_flat \
26  test_namestore_api_monitoring_flat \
27  test_namestore_api_lookup_public_flat \
28  test_namestore_api_lookup_private_flat \
29  test_namestore_api_lookup_shadow_flat \
30  test_namestore_api_lookup_shadow_filter_flat \
31  test_namestore_api_remove_not_existing_record_flat \
32  test_namestore_api_zone_iteration_nick_flat \
33  test_namestore_api_zone_iteration_specific_zone_flat \
34  test_namestore_api_zone_iteration_stop_flat \
35  test_namestore_api_monitoring_existing_flat \
36  test_namestore_api_zone_to_name_flat \
37  perf_namestore_api_zone_iteration_flat
38 endif
39
40 if HAVE_SQLITE
41 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
42 if HAVE_TESTING
43 SQLITE_TESTS = test_plugin_namestore_sqlite \
44  test_namestore_api_store_sqlite \
45  test_namestore_api_store_update_sqlite \
46  test_namestore_api_zone_iteration_sqlite \
47  test_namestore_api_remove_sqlite \
48  test_namestore_api_lookup_nick_sqlite \
49  test_namestore_api_monitoring_sqlite \
50  test_namestore_api_lookup_public_sqlite \
51  test_namestore_api_lookup_private_sqlite \
52  test_namestore_api_lookup_shadow_sqlite \
53  test_namestore_api_lookup_shadow_filter_sqlite \
54  test_namestore_api_remove_not_existing_record_sqlite \
55  test_namestore_api_zone_iteration_nick_sqlite \
56  test_namestore_api_zone_iteration_specific_zone_sqlite \
57  test_namestore_api_zone_iteration_stop_sqlite \
58  test_namestore_api_monitoring_existing_sqlite \
59  test_namestore_api_zone_to_name_sqlite \
60  perf_namestore_api_zone_iteration_sqlite
61 endif
62 endif
63
64 if HAVE_POSTGRESQL
65 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
66 if HAVE_TESTING
67 POSTGRES_TESTS = test_plugin_namestore_postgres \
68  test_namestore_api_store_postgres \
69  test_namestore_api_store_update_postgres \
70  test_namestore_api_remove_postgres \
71  test_namestore_api_zone_iteration_postgres \
72  test_namestore_api_lookup_nick_postgres \
73  test_namestore_api_monitoring_postgres \
74  test_namestore_api_lookup_public_postgres \
75  test_namestore_api_lookup_private_postgres \
76  test_namestore_api_lookup_shadow_postgres \
77  test_namestore_api_lookup_shadow_filter_postgres \
78  test_namestore_api_remove_not_existing_record_postgres \
79  test_namestore_api_zone_iteration_nick_postgres \
80  test_namestore_api_zone_iteration_specific_zone_postgres \
81  test_namestore_api_zone_iteration_stop_postgres \
82  test_namestore_api_monitoring_existing_postgres \
83  test_namestore_api_zone_to_name_postgres \
84  perf_namestore_api_zone_iteration_postgres
85 endif
86 endif
87
88 if HAVE_SQLITE
89 check_PROGRAMS = \
90  $(SQLITE_TESTS) \
91  $(POSTGRES_TESTS) \
92  $(HEAP_TESTS)
93 endif
94
95 if ENABLE_TEST_RUN
96 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
97 TESTS = \
98   $(check_PROGRAMS) \
99   $(check_SCRIPTS)
100 endif
101
102 REST_PLUGIN = libgnunet_plugin_rest_namestore.la
103
104 lib_LTLIBRARIES = \
105   libgnunetnamestore.la
106
107
108 libexec_PROGRAMS = \
109  gnunet-service-namestore
110
111 bin_PROGRAMS = \
112  gnunet-namestore \
113  gnunet-zoneimport
114
115 libexec_PROGRAMS += \
116  gnunet-namestore-fcfsd
117
118
119 plugin_LTLIBRARIES = \
120   $(SQLITE_PLUGIN) \
121   $(POSTGRES_PLUGIN) \
122   $(HEAP_PLUGIN) \
123   $(REST_PLUGIN)
124
125
126 libgnunet_plugin_rest_namestore_la_SOURCES = \
127   plugin_rest_namestore.c
128 libgnunet_plugin_rest_namestore_la_LIBADD = \
129   libgnunetnamestore.la \
130   $(top_builddir)/src/rest/libgnunetrest.la \
131   $(top_builddir)/src/identity/libgnunetidentity.la \
132   $(top_builddir)/src/json/libgnunetjson.la \
133   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
134   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
135   $(LTLIBINTL) -ljansson $(MHD_LIBS)
136 libgnunet_plugin_rest_namestore_la_LDFLAGS = \
137  $(GN_PLUGIN_LDFLAGS)
138 libgnunet_plugin_rest_namestore_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
139
140
141 libgnunetnamestore_la_SOURCES = \
142   namestore_api.c \
143   namestore_api_monitor.c \
144   namestore.h
145 libgnunetnamestore_la_LIBADD = \
146   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
147   $(top_builddir)/src/statistics/libgnunetstatistics.la \
148   $(top_builddir)/src/util/libgnunetutil.la \
149   $(GN_LIBINTL)
150 libgnunetnamestore_la_LDFLAGS = \
151   $(GN_LIB_LDFLAGS)  \
152   -version-info 0:1:0
153
154
155
156 gnunet_zoneimport_SOURCES = \
157  gnunet-zoneimport.c
158 gnunet_zoneimport_LDADD = \
159   libgnunetnamestore.la \
160   $(top_builddir)/src/statistics/libgnunetstatistics.la \
161   $(top_builddir)/src/identity/libgnunetidentity.la \
162   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
163   $(top_builddir)/src/util/libgnunetutil.la \
164   $(GN_LIBINTL)
165
166 gnunet_namestore_SOURCES = \
167  gnunet-namestore.c
168 gnunet_namestore_LDADD = \
169   $(top_builddir)/src/identity/libgnunetidentity.la \
170   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
171   $(top_builddir)/src/util/libgnunetutil.la \
172   libgnunetnamestore.la \
173   $(GN_LIBINTL)
174
175
176 gnunet_namestore_fcfsd_SOURCES = \
177  gnunet-namestore-fcfsd.c
178 gnunet_namestore_fcfsd_LDADD = $(MHD_LIBS) \
179   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
180   $(top_builddir)/src/identity/libgnunetidentity.la \
181   libgnunetnamestore.la \
182   $(top_builddir)/src/util/libgnunetutil.la \
183   $(GN_LIBINTL)
184 gnunet_namestore_fcfsd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
185
186
187 gnunet_service_namestore_SOURCES = \
188  gnunet-service-namestore.c
189
190 gnunet_service_namestore_LDADD = \
191   $(top_builddir)/src/namecache/libgnunetnamecache.la \
192   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
193   $(top_builddir)/src/statistics/libgnunetstatistics.la \
194   $(top_builddir)/src/util/libgnunetutil.la \
195   libgnunetnamestore.la \
196   $(GN_LIBINTL)
197
198
199
200 libgnunet_plugin_namestore_flat_la_SOURCES = \
201   plugin_namestore_flat.c
202 libgnunet_plugin_namestore_flat_la_LIBADD = \
203   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
204   $(top_builddir)/src/statistics/libgnunetstatistics.la \
205   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
206   $(LTLIBINTL)
207 libgnunet_plugin_namestore_flat_la_LDFLAGS = \
208  $(GN_PLUGIN_LDFLAGS)
209
210
211 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
212   plugin_namestore_sqlite.c
213 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
214   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
215   $(top_builddir)/src/sq/libgnunetsq.la \
216   $(top_builddir)/src/statistics/libgnunetstatistics.la \
217   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
218   $(LTLIBINTL)
219 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
220  $(GN_PLUGIN_LDFLAGS)
221
222 libgnunet_plugin_namestore_postgres_la_SOURCES = \
223   plugin_namestore_postgres.c
224 libgnunet_plugin_namestore_postgres_la_LIBADD = \
225   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
226   $(top_builddir)/src/pq/libgnunetpq.la  \
227   $(top_builddir)/src/statistics/libgnunetstatistics.la \
228   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
229   $(LTLIBINTL)
230 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
231  $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
232
233 test_namestore_api_store_flat_SOURCES = \
234  test_namestore_api_store.c
235 test_namestore_api_store_flat_LDADD = \
236   $(top_builddir)/src/testing/libgnunettesting.la \
237   $(top_builddir)/src/util/libgnunetutil.la \
238   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
239   libgnunetnamestore.la
240
241 test_namestore_api_store_sqlite_SOURCES = \
242  test_namestore_api_store.c
243 test_namestore_api_store_sqlite_LDADD = \
244   $(top_builddir)/src/testing/libgnunettesting.la \
245   $(top_builddir)/src/util/libgnunetutil.la \
246   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
247   libgnunetnamestore.la
248
249 test_namestore_api_store_postgres_SOURCES = \
250  test_namestore_api_store.c
251 test_namestore_api_store_postgres_LDADD = \
252   $(top_builddir)/src/testing/libgnunettesting.la \
253   $(top_builddir)/src/util/libgnunetutil.la \
254   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
255   libgnunetnamestore.la
256
257 test_namestore_api_store_update_flat_SOURCES = \
258  test_namestore_api_store_update.c
259 test_namestore_api_store_update_flat_LDADD = \
260   $(top_builddir)/src/testing/libgnunettesting.la \
261   $(top_builddir)/src/util/libgnunetutil.la \
262   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
263   $(top_builddir)/src/namecache/libgnunetnamecache.la \
264   libgnunetnamestore.la
265
266 test_namestore_api_store_update_sqlite_SOURCES = \
267  test_namestore_api_store_update.c
268 test_namestore_api_store_update_sqlite_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_postgres_SOURCES = \
276  test_namestore_api_store_update.c
277 test_namestore_api_store_update_postgres_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_lookup_public_flat_SOURCES = \
285  test_namestore_api_lookup_public.c
286 test_namestore_api_lookup_public_flat_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_sqlite_SOURCES = \
294  test_namestore_api_lookup_public.c
295 test_namestore_api_lookup_public_sqlite_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_postgres_SOURCES = \
303  test_namestore_api_lookup_public.c
304 test_namestore_api_lookup_public_postgres_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_nick_sqlite_SOURCES = \
312  test_namestore_api_lookup_nick.c
313 test_namestore_api_lookup_nick_sqlite_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_postgres_SOURCES = \
321  test_namestore_api_lookup_nick.c
322 test_namestore_api_lookup_nick_postgres_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_flat_SOURCES = \
330  test_namestore_api_lookup_nick.c
331 test_namestore_api_lookup_nick_flat_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_private_flat_SOURCES = \
339  test_namestore_api_lookup_private.c
340 test_namestore_api_lookup_private_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_sqlite_SOURCES = \
348  test_namestore_api_lookup_private.c
349 test_namestore_api_lookup_private_sqlite_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_postgres_SOURCES = \
357  test_namestore_api_lookup_private.c
358 test_namestore_api_lookup_private_postgres_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_shadow_flat_SOURCES = \
366  test_namestore_api_lookup_shadow.c
367 test_namestore_api_lookup_shadow_flat_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_sqlite_SOURCES = \
375  test_namestore_api_lookup_shadow.c
376 test_namestore_api_lookup_shadow_sqlite_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_postgres_SOURCES = \
384  test_namestore_api_lookup_shadow.c
385 test_namestore_api_lookup_shadow_postgres_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_filter_flat_SOURCES = \
393  test_namestore_api_lookup_shadow_filter.c
394 test_namestore_api_lookup_shadow_filter_flat_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_sqlite_SOURCES = \
402  test_namestore_api_lookup_shadow_filter.c
403 test_namestore_api_lookup_shadow_filter_sqlite_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 test_namestore_api_lookup_shadow_filter_postgres_SOURCES = \
410  test_namestore_api_lookup_shadow_filter.c
411 test_namestore_api_lookup_shadow_filter_postgres_LDADD = \
412   $(top_builddir)/src/testing/libgnunettesting.la \
413   $(top_builddir)/src/util/libgnunetutil.la \
414   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
415   $(top_builddir)/src/namecache/libgnunetnamecache.la \
416   libgnunetnamestore.la
417
418 test_namestore_api_remove_sqlite_SOURCES = \
419  test_namestore_api_remove.c
420 test_namestore_api_remove_sqlite_LDADD = \
421   $(top_builddir)/src/testing/libgnunettesting.la \
422   $(top_builddir)/src/util/libgnunetutil.la \
423   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
424   libgnunetnamestore.la
425
426 test_namestore_api_remove_postgres_SOURCES = \
427  test_namestore_api_remove.c
428 test_namestore_api_remove_postgres_LDADD = \
429   $(top_builddir)/src/testing/libgnunettesting.la \
430   $(top_builddir)/src/util/libgnunetutil.la \
431   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
432   libgnunetnamestore.la
433
434 test_namestore_api_remove_flat_SOURCES = \
435  test_namestore_api_remove.c
436 test_namestore_api_remove_flat_LDADD = \
437   $(top_builddir)/src/testing/libgnunettesting.la \
438   $(top_builddir)/src/util/libgnunetutil.la \
439   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
440   libgnunetnamestore.la
441
442 test_namestore_api_remove_not_existing_record_flat_SOURCES = \
443  test_namestore_api_remove_not_existing_record.c
444 test_namestore_api_remove_not_existing_record_flat_LDADD = \
445   $(top_builddir)/src/testing/libgnunettesting.la \
446   $(top_builddir)/src/util/libgnunetutil.la \
447   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
448   libgnunetnamestore.la
449
450 test_namestore_api_remove_not_existing_record_sqlite_SOURCES = \
451  test_namestore_api_remove_not_existing_record.c
452 test_namestore_api_remove_not_existing_record_sqlite_LDADD = \
453   $(top_builddir)/src/testing/libgnunettesting.la \
454   $(top_builddir)/src/util/libgnunetutil.la \
455   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
456   libgnunetnamestore.la
457
458 test_namestore_api_remove_not_existing_record_postgres_SOURCES = \
459  test_namestore_api_remove_not_existing_record.c
460 test_namestore_api_remove_not_existing_record_postgres_LDADD = \
461   $(top_builddir)/src/testing/libgnunettesting.la \
462   $(top_builddir)/src/util/libgnunetutil.la \
463   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
464   libgnunetnamestore.la
465
466 test_namestore_api_zone_to_name_flat_SOURCES = \
467  test_namestore_api_zone_to_name.c
468 test_namestore_api_zone_to_name_flat_LDADD = \
469   $(top_builddir)/src/testing/libgnunettesting.la \
470   $(top_builddir)/src/util/libgnunetutil.la \
471   libgnunetnamestore.la
472
473 test_namestore_api_zone_to_name_sqlite_SOURCES = \
474  test_namestore_api_zone_to_name.c
475 test_namestore_api_zone_to_name_sqlite_LDADD = \
476   $(top_builddir)/src/testing/libgnunettesting.la \
477   $(top_builddir)/src/util/libgnunetutil.la \
478   libgnunetnamestore.la
479
480 test_namestore_api_zone_to_name_postgres_SOURCES = \
481  test_namestore_api_zone_to_name.c
482 test_namestore_api_zone_to_name_postgres_LDADD = \
483   $(top_builddir)/src/testing/libgnunettesting.la \
484   $(top_builddir)/src/util/libgnunetutil.la \
485   libgnunetnamestore.la
486
487 test_namestore_api_monitoring_flat_SOURCES = \
488  test_namestore_api_monitoring.c
489 test_namestore_api_monitoring_flat_LDADD = \
490   $(top_builddir)/src/testing/libgnunettesting.la \
491   libgnunetnamestore.la \
492   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
493   $(top_builddir)/src/util/libgnunetutil.la
494
495 test_namestore_api_monitoring_sqlite_SOURCES = \
496  test_namestore_api_monitoring.c
497 test_namestore_api_monitoring_sqlite_LDADD = \
498   $(top_builddir)/src/testing/libgnunettesting.la \
499   libgnunetnamestore.la \
500   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
501   $(top_builddir)/src/util/libgnunetutil.la
502
503 test_namestore_api_monitoring_postgres_SOURCES = \
504  test_namestore_api_monitoring.c
505 test_namestore_api_monitoring_postgres_LDADD = \
506   $(top_builddir)/src/testing/libgnunettesting.la \
507   libgnunetnamestore.la \
508   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
509   $(top_builddir)/src/util/libgnunetutil.la
510
511 test_namestore_api_monitoring_existing_flat_SOURCES = \
512  test_namestore_api_monitoring_existing.c
513 test_namestore_api_monitoring_existing_flat_LDADD = \
514   $(top_builddir)/src/testing/libgnunettesting.la \
515   libgnunetnamestore.la \
516   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
517   $(top_builddir)/src/util/libgnunetutil.la
518
519 test_namestore_api_monitoring_existing_sqlite_SOURCES = \
520  test_namestore_api_monitoring_existing.c
521 test_namestore_api_monitoring_existing_sqlite_LDADD = \
522   $(top_builddir)/src/testing/libgnunettesting.la \
523   libgnunetnamestore.la \
524   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
525   $(top_builddir)/src/util/libgnunetutil.la
526
527 test_namestore_api_monitoring_existing_postgres_SOURCES = \
528  test_namestore_api_monitoring_existing.c
529 test_namestore_api_monitoring_existing_postgres_LDADD = \
530   $(top_builddir)/src/testing/libgnunettesting.la \
531   libgnunetnamestore.la \
532   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
533   $(top_builddir)/src/util/libgnunetutil.la
534
535 test_namestore_api_zone_iteration_flat_SOURCES = \
536  test_namestore_api_zone_iteration.c
537 test_namestore_api_zone_iteration_flat_LDADD = \
538   $(top_builddir)/src/testing/libgnunettesting.la \
539   $(top_builddir)/src/util/libgnunetutil.la \
540   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
541   libgnunetnamestore.la
542
543 test_namestore_api_zone_iteration_sqlite_SOURCES = \
544  test_namestore_api_zone_iteration.c
545 test_namestore_api_zone_iteration_sqlite_LDADD = \
546   $(top_builddir)/src/testing/libgnunettesting.la \
547   $(top_builddir)/src/util/libgnunetutil.la \
548   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
549   libgnunetnamestore.la
550
551 test_namestore_api_zone_iteration_postgres_SOURCES = \
552  test_namestore_api_zone_iteration.c
553 test_namestore_api_zone_iteration_postgres_LDADD = \
554   $(top_builddir)/src/testing/libgnunettesting.la \
555   $(top_builddir)/src/util/libgnunetutil.la \
556   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
557   libgnunetnamestore.la
558
559 perf_namestore_api_zone_iteration_postgres_SOURCES = \
560  perf_namestore_api_zone_iteration.c
561 perf_namestore_api_zone_iteration_postgres_LDADD = \
562   $(top_builddir)/src/testing/libgnunettesting.la \
563   $(top_builddir)/src/util/libgnunetutil.la \
564   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
565   libgnunetnamestore.la
566
567 perf_namestore_api_zone_iteration_sqlite_SOURCES = \
568  perf_namestore_api_zone_iteration.c
569 perf_namestore_api_zone_iteration_sqlite_LDADD = \
570   $(top_builddir)/src/testing/libgnunettesting.la \
571   $(top_builddir)/src/util/libgnunetutil.la \
572   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
573   libgnunetnamestore.la
574
575 perf_namestore_api_zone_iteration_flat_SOURCES = \
576  perf_namestore_api_zone_iteration.c
577 perf_namestore_api_zone_iteration_flat_LDADD = \
578   $(top_builddir)/src/testing/libgnunettesting.la \
579   $(top_builddir)/src/util/libgnunetutil.la \
580   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
581   libgnunetnamestore.la
582
583 test_namestore_api_zone_iteration_nick_flat_SOURCES = \
584  test_namestore_api_zone_iteration_nick.c
585 test_namestore_api_zone_iteration_nick_flat_LDADD = \
586   $(top_builddir)/src/testing/libgnunettesting.la \
587   $(top_builddir)/src/util/libgnunetutil.la \
588   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
589   libgnunetnamestore.la
590
591 test_namestore_api_zone_iteration_nick_sqlite_SOURCES = \
592  test_namestore_api_zone_iteration_nick.c
593 test_namestore_api_zone_iteration_nick_sqlite_LDADD = \
594   $(top_builddir)/src/testing/libgnunettesting.la \
595   $(top_builddir)/src/util/libgnunetutil.la \
596   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
597   libgnunetnamestore.la
598
599 test_namestore_api_zone_iteration_nick_postgres_SOURCES = \
600  test_namestore_api_zone_iteration_nick.c
601 test_namestore_api_zone_iteration_nick_postgres_LDADD = \
602   $(top_builddir)/src/testing/libgnunettesting.la \
603   $(top_builddir)/src/util/libgnunetutil.la \
604   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
605   libgnunetnamestore.la
606
607 test_namestore_api_zone_iteration_specific_zone_flat_SOURCES = \
608  test_namestore_api_zone_iteration_specific_zone.c
609 test_namestore_api_zone_iteration_specific_zone_flat_LDADD = \
610   $(top_builddir)/src/testing/libgnunettesting.la \
611   $(top_builddir)/src/util/libgnunetutil.la \
612   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
613   libgnunetnamestore.la
614
615 test_namestore_api_zone_iteration_specific_zone_sqlite_SOURCES = \
616  test_namestore_api_zone_iteration_specific_zone.c
617 test_namestore_api_zone_iteration_specific_zone_sqlite_LDADD = \
618   $(top_builddir)/src/testing/libgnunettesting.la \
619   $(top_builddir)/src/util/libgnunetutil.la \
620   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
621   libgnunetnamestore.la
622
623 test_namestore_api_zone_iteration_specific_zone_postgres_SOURCES = \
624  test_namestore_api_zone_iteration_specific_zone.c
625 test_namestore_api_zone_iteration_specific_zone_postgres_LDADD = \
626   $(top_builddir)/src/testing/libgnunettesting.la \
627   $(top_builddir)/src/util/libgnunetutil.la \
628   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
629   libgnunetnamestore.la
630
631 test_namestore_api_zone_iteration_stop_flat_SOURCES = \
632  test_namestore_api_zone_iteration_stop.c
633 test_namestore_api_zone_iteration_stop_flat_LDADD = \
634   $(top_builddir)/src/testing/libgnunettesting.la \
635   $(top_builddir)/src/util/libgnunetutil.la \
636   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
637   libgnunetnamestore.la
638
639 test_namestore_api_zone_iteration_stop_sqlite_SOURCES = \
640  test_namestore_api_zone_iteration_stop.c
641 test_namestore_api_zone_iteration_stop_sqlite_LDADD = \
642   $(top_builddir)/src/testing/libgnunettesting.la \
643   $(top_builddir)/src/util/libgnunetutil.la \
644   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
645   libgnunetnamestore.la
646
647 test_namestore_api_zone_iteration_stop_postgres_SOURCES = \
648  test_namestore_api_zone_iteration_stop.c
649 test_namestore_api_zone_iteration_stop_postgres_LDADD = \
650   $(top_builddir)/src/testing/libgnunettesting.la \
651   $(top_builddir)/src/util/libgnunetutil.la \
652   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
653   libgnunetnamestore.la
654
655 test_plugin_namestore_flat_SOURCES = \
656  test_plugin_namestore.c
657 test_plugin_namestore_flat_LDADD = \
658  $(top_builddir)/src/testing/libgnunettesting.la \
659  $(top_builddir)/src/util/libgnunetutil.la
660
661 test_plugin_namestore_sqlite_SOURCES = \
662  test_plugin_namestore.c
663 test_plugin_namestore_sqlite_LDADD = \
664  $(top_builddir)/src/testing/libgnunettesting.la \
665  $(top_builddir)/src/util/libgnunetutil.la
666
667 test_plugin_namestore_postgres_SOURCES = \
668  test_plugin_namestore.c
669 test_plugin_namestore_postgres_LDADD = \
670  $(top_builddir)/src/testing/libgnunettesting.la \
671  $(top_builddir)/src/util/libgnunetutil.la
672
673 check_SCRIPTS = \
674   test_namestore_put.sh \
675   test_namestore_lookup.sh \
676   test_namestore_delete.sh
677
678 check_SCRIPTS += \
679   test_plugin_rest_namestore.sh
680
681 EXTRA_DIST = \
682   test_common.c \
683   test_namestore_api.conf \
684   test_namestore_api_postgres.conf \
685   test_namestore_api_sqlite.conf \
686   test_namestore_api_flat.conf \
687   perf_namestore_api_postgres.conf \
688   perf_namestore_api_sqlite.conf \
689   perf_namestore_api_flat.conf \
690   test_plugin_namestore_sqlite.conf \
691   test_plugin_namestore_postgres.conf \
692   test_plugin_namestore_flat.conf \
693   test_hostkey \
694   zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
695   zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
696   zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
697   zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey \
698   $(check_SCRIPTS)