integrate dnsparser and dnsstub and tun with libgnunetutil
[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 FLAT_PLUGIN = libgnunet_plugin_namestore_flat.la
24 if HAVE_TESTING
25 FLAT_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  $(FLAT_TESTS)
98 endif
99
100 if HAVE_MHD
101 if HAVE_JSON
102 REST_PLUGIN=libgnunet_plugin_rest_namestore.la
103 endif
104 endif
105
106 if ENABLE_TEST_RUN
107 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
108 TESTS = \
109   $(check_PROGRAMS) \
110   $(check_SCRIPTS)
111 endif
112
113 lib_LTLIBRARIES = \
114   libgnunetnamestore.la
115
116
117 libgnunetnamestore_la_SOURCES = \
118   namestore_api.c \
119   namestore_api_monitor.c \
120   namestore.h
121 libgnunetnamestore_la_LIBADD = \
122   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
123   $(top_builddir)/src/statistics/libgnunetstatistics.la \
124   $(top_builddir)/src/util/libgnunetutil.la \
125   $(GN_LIBINTL)
126 libgnunetnamestore_la_LDFLAGS = \
127   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
128   -version-info 0:1:0
129
130 libexec_PROGRAMS = \
131  gnunet-service-namestore
132
133 bin_PROGRAMS = \
134  gnunet-namestore \
135  gnunet-zoneimport
136
137 if HAVE_MHD
138 libexec_PROGRAMS += \
139  gnunet-namestore-fcfsd
140 endif
141
142
143 gnunet_zoneimport_SOURCES = \
144  gnunet-zoneimport.c
145 gnunet_zoneimport_LDADD = \
146   libgnunetnamestore.la \
147   $(top_builddir)/src/statistics/libgnunetstatistics.la \
148   $(top_builddir)/src/identity/libgnunetidentity.la \
149   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
150   $(top_builddir)/src/util/libgnunetutil.la \
151   $(GN_LIBINTL)
152
153 gnunet_namestore_SOURCES = \
154  gnunet-namestore.c
155 gnunet_namestore_LDADD = \
156   $(top_builddir)/src/identity/libgnunetidentity.la \
157   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
158   $(top_builddir)/src/util/libgnunetutil.la \
159   libgnunetnamestore.la \
160   $(GN_LIBINTL)
161
162
163 gnunet_namestore_fcfsd_SOURCES = \
164  gnunet-namestore-fcfsd.c
165 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
166   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
167   $(top_builddir)/src/identity/libgnunetidentity.la \
168   libgnunetnamestore.la \
169   $(top_builddir)/src/util/libgnunetutil.la \
170   $(GN_LIBINTL)
171
172
173
174 gnunet_service_namestore_SOURCES = \
175  gnunet-service-namestore.c
176
177 gnunet_service_namestore_LDADD = \
178   $(top_builddir)/src/namecache/libgnunetnamecache.la \
179   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
180   $(top_builddir)/src/statistics/libgnunetstatistics.la \
181   $(top_builddir)/src/util/libgnunetutil.la \
182   libgnunetnamestore.la \
183   $(GN_LIBINTL)
184
185
186 plugin_LTLIBRARIES = \
187   $(SQLITE_PLUGIN) \
188   $(POSTGRES_PLUGIN) \
189         $(FLAT_PLUGIN) \
190         $(REST_PLUGIN)
191
192
193
194 libgnunet_plugin_namestore_flat_la_SOURCES = \
195   plugin_namestore_flat.c
196 libgnunet_plugin_namestore_flat_la_LIBADD = \
197   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
198   $(top_builddir)/src/statistics/libgnunetstatistics.la \
199   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
200   $(LTLIBINTL)
201 libgnunet_plugin_namestore_flat_la_LDFLAGS = \
202  $(GN_PLUGIN_LDFLAGS)
203
204
205 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
206   plugin_namestore_sqlite.c
207 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
208   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
209   $(top_builddir)/src/sq/libgnunetsq.la \
210   $(top_builddir)/src/statistics/libgnunetstatistics.la \
211   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
212   $(LTLIBINTL)
213 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
214  $(GN_PLUGIN_LDFLAGS)
215
216 libgnunet_plugin_namestore_postgres_la_SOURCES = \
217   plugin_namestore_postgres.c
218 libgnunet_plugin_namestore_postgres_la_LIBADD = \
219   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
220   $(top_builddir)/src/pq/libgnunetpq.la  \
221   $(top_builddir)/src/statistics/libgnunetstatistics.la \
222   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
223   $(LTLIBINTL)
224 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
225  $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
226
227 libgnunet_plugin_rest_namestore_la_SOURCES = \
228   plugin_rest_namestore.c
229 libgnunet_plugin_rest_namestore_la_LIBADD = \
230   libgnunetnamestore.la \
231   $(top_builddir)/src/rest/libgnunetrest.la \
232   $(top_builddir)/src/identity/libgnunetidentity.la \
233         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
234   $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
235   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
236   $(LTLIBINTL) -ljansson -lmicrohttpd
237 libgnunet_plugin_rest_namestore_la_LDFLAGS = \
238  $(GN_PLUGIN_LDFLAGS)
239
240
241 test_namestore_api_store_flat_SOURCES = \
242  test_namestore_api_store.c
243 test_namestore_api_store_flat_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_sqlite_SOURCES = \
250  test_namestore_api_store.c
251 test_namestore_api_store_sqlite_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_postgres_SOURCES = \
258  test_namestore_api_store.c
259 test_namestore_api_store_postgres_LDADD = \
260   $(top_builddir)/src/testing/libgnunettesting.la \
261   $(top_builddir)/src/util/libgnunetutil.la \
262   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
263   libgnunetnamestore.la
264
265 test_namestore_api_store_update_flat_SOURCES = \
266  test_namestore_api_store_update.c
267 test_namestore_api_store_update_flat_LDADD = \
268   $(top_builddir)/src/testing/libgnunettesting.la \
269   $(top_builddir)/src/util/libgnunetutil.la \
270   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
271   $(top_builddir)/src/namecache/libgnunetnamecache.la \
272   libgnunetnamestore.la
273
274 test_namestore_api_store_update_sqlite_SOURCES = \
275  test_namestore_api_store_update.c
276 test_namestore_api_store_update_sqlite_LDADD = \
277   $(top_builddir)/src/testing/libgnunettesting.la \
278   $(top_builddir)/src/util/libgnunetutil.la \
279   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
280   $(top_builddir)/src/namecache/libgnunetnamecache.la \
281   libgnunetnamestore.la
282
283 test_namestore_api_store_update_postgres_SOURCES = \
284  test_namestore_api_store_update.c
285 test_namestore_api_store_update_postgres_LDADD = \
286   $(top_builddir)/src/testing/libgnunettesting.la \
287   $(top_builddir)/src/util/libgnunetutil.la \
288   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
289   $(top_builddir)/src/namecache/libgnunetnamecache.la \
290   libgnunetnamestore.la
291
292 test_namestore_api_lookup_public_flat_SOURCES = \
293  test_namestore_api_lookup_public.c
294 test_namestore_api_lookup_public_flat_LDADD = \
295   $(top_builddir)/src/testing/libgnunettesting.la \
296   $(top_builddir)/src/util/libgnunetutil.la \
297   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
298   $(top_builddir)/src/namecache/libgnunetnamecache.la \
299   libgnunetnamestore.la
300
301 test_namestore_api_lookup_public_sqlite_SOURCES = \
302  test_namestore_api_lookup_public.c
303 test_namestore_api_lookup_public_sqlite_LDADD = \
304   $(top_builddir)/src/testing/libgnunettesting.la \
305   $(top_builddir)/src/util/libgnunetutil.la \
306   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
307   $(top_builddir)/src/namecache/libgnunetnamecache.la \
308   libgnunetnamestore.la
309
310 test_namestore_api_lookup_public_postgres_SOURCES = \
311  test_namestore_api_lookup_public.c
312 test_namestore_api_lookup_public_postgres_LDADD = \
313   $(top_builddir)/src/testing/libgnunettesting.la \
314   $(top_builddir)/src/util/libgnunetutil.la \
315   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
316   $(top_builddir)/src/namecache/libgnunetnamecache.la \
317   libgnunetnamestore.la
318
319 test_namestore_api_lookup_nick_sqlite_SOURCES = \
320  test_namestore_api_lookup_nick.c
321 test_namestore_api_lookup_nick_sqlite_LDADD = \
322   $(top_builddir)/src/testing/libgnunettesting.la \
323   $(top_builddir)/src/util/libgnunetutil.la \
324   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
325   $(top_builddir)/src/namecache/libgnunetnamecache.la \
326   libgnunetnamestore.la
327
328 test_namestore_api_lookup_nick_postgres_SOURCES = \
329  test_namestore_api_lookup_nick.c
330 test_namestore_api_lookup_nick_postgres_LDADD = \
331   $(top_builddir)/src/testing/libgnunettesting.la \
332   $(top_builddir)/src/util/libgnunetutil.la \
333   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
334   $(top_builddir)/src/namecache/libgnunetnamecache.la \
335   libgnunetnamestore.la
336
337 test_namestore_api_lookup_nick_flat_SOURCES = \
338  test_namestore_api_lookup_nick.c
339 test_namestore_api_lookup_nick_flat_LDADD = \
340   $(top_builddir)/src/testing/libgnunettesting.la \
341   $(top_builddir)/src/util/libgnunetutil.la \
342   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
343   $(top_builddir)/src/namecache/libgnunetnamecache.la \
344   libgnunetnamestore.la
345
346 test_namestore_api_lookup_private_flat_SOURCES = \
347  test_namestore_api_lookup_private.c
348 test_namestore_api_lookup_private_flat_LDADD = \
349   $(top_builddir)/src/testing/libgnunettesting.la \
350   $(top_builddir)/src/util/libgnunetutil.la \
351   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
352   $(top_builddir)/src/namecache/libgnunetnamecache.la \
353   libgnunetnamestore.la
354
355 test_namestore_api_lookup_private_sqlite_SOURCES = \
356  test_namestore_api_lookup_private.c
357 test_namestore_api_lookup_private_sqlite_LDADD = \
358   $(top_builddir)/src/testing/libgnunettesting.la \
359   $(top_builddir)/src/util/libgnunetutil.la \
360   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
361   $(top_builddir)/src/namecache/libgnunetnamecache.la \
362   libgnunetnamestore.la
363
364 test_namestore_api_lookup_private_postgres_SOURCES = \
365  test_namestore_api_lookup_private.c
366 test_namestore_api_lookup_private_postgres_LDADD = \
367   $(top_builddir)/src/testing/libgnunettesting.la \
368   $(top_builddir)/src/util/libgnunetutil.la \
369   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
370   $(top_builddir)/src/namecache/libgnunetnamecache.la \
371   libgnunetnamestore.la
372
373 test_namestore_api_lookup_shadow_flat_SOURCES = \
374  test_namestore_api_lookup_shadow.c
375 test_namestore_api_lookup_shadow_flat_LDADD = \
376   $(top_builddir)/src/testing/libgnunettesting.la \
377   $(top_builddir)/src/util/libgnunetutil.la \
378   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
379   $(top_builddir)/src/namecache/libgnunetnamecache.la \
380   libgnunetnamestore.la
381
382 test_namestore_api_lookup_shadow_sqlite_SOURCES = \
383  test_namestore_api_lookup_shadow.c
384 test_namestore_api_lookup_shadow_sqlite_LDADD = \
385   $(top_builddir)/src/testing/libgnunettesting.la \
386   $(top_builddir)/src/util/libgnunetutil.la \
387   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
388   $(top_builddir)/src/namecache/libgnunetnamecache.la \
389   libgnunetnamestore.la
390
391 test_namestore_api_lookup_shadow_postgres_SOURCES = \
392  test_namestore_api_lookup_shadow.c
393 test_namestore_api_lookup_shadow_postgres_LDADD = \
394   $(top_builddir)/src/testing/libgnunettesting.la \
395   $(top_builddir)/src/util/libgnunetutil.la \
396   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
397   $(top_builddir)/src/namecache/libgnunetnamecache.la \
398   libgnunetnamestore.la
399
400 test_namestore_api_lookup_shadow_filter_flat_SOURCES = \
401  test_namestore_api_lookup_shadow_filter.c
402 test_namestore_api_lookup_shadow_filter_flat_LDADD = \
403   $(top_builddir)/src/testing/libgnunettesting.la \
404   $(top_builddir)/src/util/libgnunetutil.la \
405   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
406   $(top_builddir)/src/namecache/libgnunetnamecache.la \
407   libgnunetnamestore.la
408
409 test_namestore_api_lookup_shadow_filter_sqlite_SOURCES = \
410  test_namestore_api_lookup_shadow_filter.c
411 test_namestore_api_lookup_shadow_filter_sqlite_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 test_namestore_api_lookup_shadow_filter_postgres_SOURCES = \
418  test_namestore_api_lookup_shadow_filter.c
419 test_namestore_api_lookup_shadow_filter_postgres_LDADD = \
420   $(top_builddir)/src/testing/libgnunettesting.la \
421   $(top_builddir)/src/util/libgnunetutil.la \
422   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
423   $(top_builddir)/src/namecache/libgnunetnamecache.la \
424   libgnunetnamestore.la
425
426 test_namestore_api_remove_sqlite_SOURCES = \
427  test_namestore_api_remove.c
428 test_namestore_api_remove_sqlite_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_postgres_SOURCES = \
435  test_namestore_api_remove.c
436 test_namestore_api_remove_postgres_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_flat_SOURCES = \
443  test_namestore_api_remove.c
444 test_namestore_api_remove_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_flat_SOURCES = \
451  test_namestore_api_remove_not_existing_record.c
452 test_namestore_api_remove_not_existing_record_flat_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_sqlite_SOURCES = \
459  test_namestore_api_remove_not_existing_record.c
460 test_namestore_api_remove_not_existing_record_sqlite_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_remove_not_existing_record_postgres_SOURCES = \
467  test_namestore_api_remove_not_existing_record.c
468 test_namestore_api_remove_not_existing_record_postgres_LDADD = \
469   $(top_builddir)/src/testing/libgnunettesting.la \
470   $(top_builddir)/src/util/libgnunetutil.la \
471   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
472   libgnunetnamestore.la
473
474 test_namestore_api_zone_to_name_flat_SOURCES = \
475  test_namestore_api_zone_to_name.c
476 test_namestore_api_zone_to_name_flat_LDADD = \
477   $(top_builddir)/src/testing/libgnunettesting.la \
478   $(top_builddir)/src/util/libgnunetutil.la \
479   libgnunetnamestore.la
480
481 test_namestore_api_zone_to_name_sqlite_SOURCES = \
482  test_namestore_api_zone_to_name.c
483 test_namestore_api_zone_to_name_sqlite_LDADD = \
484   $(top_builddir)/src/testing/libgnunettesting.la \
485   $(top_builddir)/src/util/libgnunetutil.la \
486   libgnunetnamestore.la
487
488 test_namestore_api_zone_to_name_postgres_SOURCES = \
489  test_namestore_api_zone_to_name.c
490 test_namestore_api_zone_to_name_postgres_LDADD = \
491   $(top_builddir)/src/testing/libgnunettesting.la \
492   $(top_builddir)/src/util/libgnunetutil.la \
493   libgnunetnamestore.la
494
495 test_namestore_api_monitoring_flat_SOURCES = \
496  test_namestore_api_monitoring.c
497 test_namestore_api_monitoring_flat_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_sqlite_SOURCES = \
504  test_namestore_api_monitoring.c
505 test_namestore_api_monitoring_sqlite_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_postgres_SOURCES = \
512  test_namestore_api_monitoring.c
513 test_namestore_api_monitoring_postgres_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_flat_SOURCES = \
520  test_namestore_api_monitoring_existing.c
521 test_namestore_api_monitoring_existing_flat_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_sqlite_SOURCES = \
528  test_namestore_api_monitoring_existing.c
529 test_namestore_api_monitoring_existing_sqlite_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_monitoring_existing_postgres_SOURCES = \
536  test_namestore_api_monitoring_existing.c
537 test_namestore_api_monitoring_existing_postgres_LDADD = \
538   $(top_builddir)/src/testing/libgnunettesting.la \
539   libgnunetnamestore.la \
540   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
541   $(top_builddir)/src/util/libgnunetutil.la
542
543 test_namestore_api_zone_iteration_flat_SOURCES = \
544  test_namestore_api_zone_iteration.c
545 test_namestore_api_zone_iteration_flat_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_sqlite_SOURCES = \
552  test_namestore_api_zone_iteration.c
553 test_namestore_api_zone_iteration_sqlite_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 test_namestore_api_zone_iteration_postgres_SOURCES = \
560  test_namestore_api_zone_iteration.c
561 test_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_postgres_SOURCES = \
568  perf_namestore_api_zone_iteration.c
569 perf_namestore_api_zone_iteration_postgres_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_sqlite_SOURCES = \
576  perf_namestore_api_zone_iteration.c
577 perf_namestore_api_zone_iteration_sqlite_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 perf_namestore_api_zone_iteration_flat_SOURCES = \
584  perf_namestore_api_zone_iteration.c
585 perf_namestore_api_zone_iteration_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_flat_SOURCES = \
592  test_namestore_api_zone_iteration_nick.c
593 test_namestore_api_zone_iteration_nick_flat_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_sqlite_SOURCES = \
600  test_namestore_api_zone_iteration_nick.c
601 test_namestore_api_zone_iteration_nick_sqlite_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_nick_postgres_SOURCES = \
608  test_namestore_api_zone_iteration_nick.c
609 test_namestore_api_zone_iteration_nick_postgres_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_flat_SOURCES = \
616  test_namestore_api_zone_iteration_specific_zone.c
617 test_namestore_api_zone_iteration_specific_zone_flat_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_sqlite_SOURCES = \
624  test_namestore_api_zone_iteration_specific_zone.c
625 test_namestore_api_zone_iteration_specific_zone_sqlite_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_specific_zone_postgres_SOURCES = \
632  test_namestore_api_zone_iteration_specific_zone.c
633 test_namestore_api_zone_iteration_specific_zone_postgres_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_flat_SOURCES = \
640  test_namestore_api_zone_iteration_stop.c
641 test_namestore_api_zone_iteration_stop_flat_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_sqlite_SOURCES = \
648  test_namestore_api_zone_iteration_stop.c
649 test_namestore_api_zone_iteration_stop_sqlite_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_namestore_api_zone_iteration_stop_postgres_SOURCES = \
656  test_namestore_api_zone_iteration_stop.c
657 test_namestore_api_zone_iteration_stop_postgres_LDADD = \
658   $(top_builddir)/src/testing/libgnunettesting.la \
659   $(top_builddir)/src/util/libgnunetutil.la \
660   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
661   libgnunetnamestore.la
662
663 test_plugin_namestore_flat_SOURCES = \
664  test_plugin_namestore.c
665 test_plugin_namestore_flat_LDADD = \
666  $(top_builddir)/src/testing/libgnunettesting.la \
667  $(top_builddir)/src/util/libgnunetutil.la
668
669 test_plugin_namestore_sqlite_SOURCES = \
670  test_plugin_namestore.c
671 test_plugin_namestore_sqlite_LDADD = \
672  $(top_builddir)/src/testing/libgnunettesting.la \
673  $(top_builddir)/src/util/libgnunetutil.la
674
675 test_plugin_namestore_postgres_SOURCES = \
676  test_plugin_namestore.c
677 test_plugin_namestore_postgres_LDADD = \
678  $(top_builddir)/src/testing/libgnunettesting.la \
679  $(top_builddir)/src/util/libgnunetutil.la
680
681 check_SCRIPTS = \
682   test_namestore_put.sh \
683   test_namestore_lookup.sh \
684   test_namestore_delete.sh
685
686 EXTRA_DIST = \
687   test_namestore_api.conf \
688   test_namestore_api_postgres.conf \
689   test_namestore_api_sqlite.conf \
690   test_namestore_api_flat.conf \
691   perf_namestore_api_postgres.conf \
692   perf_namestore_api_sqlite.conf \
693   perf_namestore_api_flat.conf \
694   test_plugin_namestore_sqlite.conf \
695   test_plugin_namestore_postgres.conf \
696   test_plugin_namestore_flat.conf \
697   test_hostkey \
698   zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
699   zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
700   zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
701   zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey \
702   $(check_SCRIPTS)