reduce loop counters to more practical levels
[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/dns/libgnunetdnsparser.la \
151   $(top_builddir)/src/dns/libgnunetdnsstub.la \
152   $(top_builddir)/src/util/libgnunetutil.la \
153   $(GN_LIBINTL)
154
155 gnunet_namestore_SOURCES = \
156  gnunet-namestore.c
157 gnunet_namestore_LDADD = \
158   $(top_builddir)/src/identity/libgnunetidentity.la \
159   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
160   $(top_builddir)/src/util/libgnunetutil.la \
161   libgnunetnamestore.la \
162   $(GN_LIBINTL)
163
164
165 gnunet_namestore_fcfsd_SOURCES = \
166  gnunet-namestore-fcfsd.c
167 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
168   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
169   $(top_builddir)/src/identity/libgnunetidentity.la \
170   libgnunetnamestore.la \
171   $(top_builddir)/src/util/libgnunetutil.la \
172   $(GN_LIBINTL)
173
174
175
176 gnunet_service_namestore_SOURCES = \
177  gnunet-service-namestore.c
178
179 gnunet_service_namestore_LDADD = \
180   $(top_builddir)/src/namecache/libgnunetnamecache.la \
181   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
182   $(top_builddir)/src/statistics/libgnunetstatistics.la \
183   $(top_builddir)/src/util/libgnunetutil.la \
184   libgnunetnamestore.la \
185   $(GN_LIBINTL)
186
187
188 plugin_LTLIBRARIES = \
189   $(SQLITE_PLUGIN) \
190   $(POSTGRES_PLUGIN) \
191         $(FLAT_PLUGIN) \
192         $(REST_PLUGIN)
193
194
195
196 libgnunet_plugin_namestore_flat_la_SOURCES = \
197   plugin_namestore_flat.c
198 libgnunet_plugin_namestore_flat_la_LIBADD = \
199   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
200   $(top_builddir)/src/statistics/libgnunetstatistics.la \
201   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
202   $(LTLIBINTL)
203 libgnunet_plugin_namestore_flat_la_LDFLAGS = \
204  $(GN_PLUGIN_LDFLAGS)
205
206
207 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
208   plugin_namestore_sqlite.c
209 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
210   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
211   $(top_builddir)/src/sq/libgnunetsq.la \
212   $(top_builddir)/src/statistics/libgnunetstatistics.la \
213   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
214   $(LTLIBINTL)
215 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
216  $(GN_PLUGIN_LDFLAGS)
217
218 libgnunet_plugin_namestore_postgres_la_SOURCES = \
219   plugin_namestore_postgres.c
220 libgnunet_plugin_namestore_postgres_la_LIBADD = \
221   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la  \
222   $(top_builddir)/src/pq/libgnunetpq.la  \
223   $(top_builddir)/src/statistics/libgnunetstatistics.la \
224   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
225   $(LTLIBINTL)
226 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
227  $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
228
229 libgnunet_plugin_rest_namestore_la_SOURCES = \
230   plugin_rest_namestore.c
231 libgnunet_plugin_rest_namestore_la_LIBADD = \
232   libgnunetnamestore.la \
233   $(top_builddir)/src/rest/libgnunetrest.la \
234   $(top_builddir)/src/identity/libgnunetidentity.la \
235         $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
236   $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
237   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
238   $(LTLIBINTL) -ljansson -lmicrohttpd
239 libgnunet_plugin_rest_namestore_la_LDFLAGS = \
240  $(GN_PLUGIN_LDFLAGS)
241
242
243 test_namestore_api_store_flat_SOURCES = \
244  test_namestore_api_store.c
245 test_namestore_api_store_flat_LDADD = \
246   $(top_builddir)/src/testing/libgnunettesting.la \
247   $(top_builddir)/src/util/libgnunetutil.la \
248   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
249   libgnunetnamestore.la
250
251 test_namestore_api_store_sqlite_SOURCES = \
252  test_namestore_api_store.c
253 test_namestore_api_store_sqlite_LDADD = \
254   $(top_builddir)/src/testing/libgnunettesting.la \
255   $(top_builddir)/src/util/libgnunetutil.la \
256   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
257   libgnunetnamestore.la
258
259 test_namestore_api_store_postgres_SOURCES = \
260  test_namestore_api_store.c
261 test_namestore_api_store_postgres_LDADD = \
262   $(top_builddir)/src/testing/libgnunettesting.la \
263   $(top_builddir)/src/util/libgnunetutil.la \
264   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
265   libgnunetnamestore.la
266
267 test_namestore_api_store_update_flat_SOURCES = \
268  test_namestore_api_store_update.c
269 test_namestore_api_store_update_flat_LDADD = \
270   $(top_builddir)/src/testing/libgnunettesting.la \
271   $(top_builddir)/src/util/libgnunetutil.la \
272   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
273   $(top_builddir)/src/namecache/libgnunetnamecache.la \
274   libgnunetnamestore.la
275
276 test_namestore_api_store_update_sqlite_SOURCES = \
277  test_namestore_api_store_update.c
278 test_namestore_api_store_update_sqlite_LDADD = \
279   $(top_builddir)/src/testing/libgnunettesting.la \
280   $(top_builddir)/src/util/libgnunetutil.la \
281   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
282   $(top_builddir)/src/namecache/libgnunetnamecache.la \
283   libgnunetnamestore.la
284
285 test_namestore_api_store_update_postgres_SOURCES = \
286  test_namestore_api_store_update.c
287 test_namestore_api_store_update_postgres_LDADD = \
288   $(top_builddir)/src/testing/libgnunettesting.la \
289   $(top_builddir)/src/util/libgnunetutil.la \
290   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
291   $(top_builddir)/src/namecache/libgnunetnamecache.la \
292   libgnunetnamestore.la
293
294 test_namestore_api_lookup_public_flat_SOURCES = \
295  test_namestore_api_lookup_public.c
296 test_namestore_api_lookup_public_flat_LDADD = \
297   $(top_builddir)/src/testing/libgnunettesting.la \
298   $(top_builddir)/src/util/libgnunetutil.la \
299   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
300   $(top_builddir)/src/namecache/libgnunetnamecache.la \
301   libgnunetnamestore.la
302
303 test_namestore_api_lookup_public_sqlite_SOURCES = \
304  test_namestore_api_lookup_public.c
305 test_namestore_api_lookup_public_sqlite_LDADD = \
306   $(top_builddir)/src/testing/libgnunettesting.la \
307   $(top_builddir)/src/util/libgnunetutil.la \
308   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
309   $(top_builddir)/src/namecache/libgnunetnamecache.la \
310   libgnunetnamestore.la
311
312 test_namestore_api_lookup_public_postgres_SOURCES = \
313  test_namestore_api_lookup_public.c
314 test_namestore_api_lookup_public_postgres_LDADD = \
315   $(top_builddir)/src/testing/libgnunettesting.la \
316   $(top_builddir)/src/util/libgnunetutil.la \
317   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
318   $(top_builddir)/src/namecache/libgnunetnamecache.la \
319   libgnunetnamestore.la
320
321 test_namestore_api_lookup_nick_sqlite_SOURCES = \
322  test_namestore_api_lookup_nick.c
323 test_namestore_api_lookup_nick_sqlite_LDADD = \
324   $(top_builddir)/src/testing/libgnunettesting.la \
325   $(top_builddir)/src/util/libgnunetutil.la \
326   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
327   $(top_builddir)/src/namecache/libgnunetnamecache.la \
328   libgnunetnamestore.la
329
330 test_namestore_api_lookup_nick_postgres_SOURCES = \
331  test_namestore_api_lookup_nick.c
332 test_namestore_api_lookup_nick_postgres_LDADD = \
333   $(top_builddir)/src/testing/libgnunettesting.la \
334   $(top_builddir)/src/util/libgnunetutil.la \
335   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
336   $(top_builddir)/src/namecache/libgnunetnamecache.la \
337   libgnunetnamestore.la
338
339 test_namestore_api_lookup_nick_flat_SOURCES = \
340  test_namestore_api_lookup_nick.c
341 test_namestore_api_lookup_nick_flat_LDADD = \
342   $(top_builddir)/src/testing/libgnunettesting.la \
343   $(top_builddir)/src/util/libgnunetutil.la \
344   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
345   $(top_builddir)/src/namecache/libgnunetnamecache.la \
346   libgnunetnamestore.la
347
348 test_namestore_api_lookup_private_flat_SOURCES = \
349  test_namestore_api_lookup_private.c
350 test_namestore_api_lookup_private_flat_LDADD = \
351   $(top_builddir)/src/testing/libgnunettesting.la \
352   $(top_builddir)/src/util/libgnunetutil.la \
353   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
354   $(top_builddir)/src/namecache/libgnunetnamecache.la \
355   libgnunetnamestore.la
356
357 test_namestore_api_lookup_private_sqlite_SOURCES = \
358  test_namestore_api_lookup_private.c
359 test_namestore_api_lookup_private_sqlite_LDADD = \
360   $(top_builddir)/src/testing/libgnunettesting.la \
361   $(top_builddir)/src/util/libgnunetutil.la \
362   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
363   $(top_builddir)/src/namecache/libgnunetnamecache.la \
364   libgnunetnamestore.la
365
366 test_namestore_api_lookup_private_postgres_SOURCES = \
367  test_namestore_api_lookup_private.c
368 test_namestore_api_lookup_private_postgres_LDADD = \
369   $(top_builddir)/src/testing/libgnunettesting.la \
370   $(top_builddir)/src/util/libgnunetutil.la \
371   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
372   $(top_builddir)/src/namecache/libgnunetnamecache.la \
373   libgnunetnamestore.la
374
375 test_namestore_api_lookup_shadow_flat_SOURCES = \
376  test_namestore_api_lookup_shadow.c
377 test_namestore_api_lookup_shadow_flat_LDADD = \
378   $(top_builddir)/src/testing/libgnunettesting.la \
379   $(top_builddir)/src/util/libgnunetutil.la \
380   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
381   $(top_builddir)/src/namecache/libgnunetnamecache.la \
382   libgnunetnamestore.la
383
384 test_namestore_api_lookup_shadow_sqlite_SOURCES = \
385  test_namestore_api_lookup_shadow.c
386 test_namestore_api_lookup_shadow_sqlite_LDADD = \
387   $(top_builddir)/src/testing/libgnunettesting.la \
388   $(top_builddir)/src/util/libgnunetutil.la \
389   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
390   $(top_builddir)/src/namecache/libgnunetnamecache.la \
391   libgnunetnamestore.la
392
393 test_namestore_api_lookup_shadow_postgres_SOURCES = \
394  test_namestore_api_lookup_shadow.c
395 test_namestore_api_lookup_shadow_postgres_LDADD = \
396   $(top_builddir)/src/testing/libgnunettesting.la \
397   $(top_builddir)/src/util/libgnunetutil.la \
398   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
399   $(top_builddir)/src/namecache/libgnunetnamecache.la \
400   libgnunetnamestore.la
401
402 test_namestore_api_lookup_shadow_filter_flat_SOURCES = \
403  test_namestore_api_lookup_shadow_filter.c
404 test_namestore_api_lookup_shadow_filter_flat_LDADD = \
405   $(top_builddir)/src/testing/libgnunettesting.la \
406   $(top_builddir)/src/util/libgnunetutil.la \
407   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
408   $(top_builddir)/src/namecache/libgnunetnamecache.la \
409   libgnunetnamestore.la
410
411 test_namestore_api_lookup_shadow_filter_sqlite_SOURCES = \
412  test_namestore_api_lookup_shadow_filter.c
413 test_namestore_api_lookup_shadow_filter_sqlite_LDADD = \
414   $(top_builddir)/src/testing/libgnunettesting.la \
415   $(top_builddir)/src/util/libgnunetutil.la \
416   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
417   $(top_builddir)/src/namecache/libgnunetnamecache.la \
418   libgnunetnamestore.la
419 test_namestore_api_lookup_shadow_filter_postgres_SOURCES = \
420  test_namestore_api_lookup_shadow_filter.c
421 test_namestore_api_lookup_shadow_filter_postgres_LDADD = \
422   $(top_builddir)/src/testing/libgnunettesting.la \
423   $(top_builddir)/src/util/libgnunetutil.la \
424   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
425   $(top_builddir)/src/namecache/libgnunetnamecache.la \
426   libgnunetnamestore.la
427
428 test_namestore_api_remove_sqlite_SOURCES = \
429  test_namestore_api_remove.c
430 test_namestore_api_remove_sqlite_LDADD = \
431   $(top_builddir)/src/testing/libgnunettesting.la \
432   $(top_builddir)/src/util/libgnunetutil.la \
433   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
434   libgnunetnamestore.la
435
436 test_namestore_api_remove_postgres_SOURCES = \
437  test_namestore_api_remove.c
438 test_namestore_api_remove_postgres_LDADD = \
439   $(top_builddir)/src/testing/libgnunettesting.la \
440   $(top_builddir)/src/util/libgnunetutil.la \
441   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
442   libgnunetnamestore.la
443
444 test_namestore_api_remove_flat_SOURCES = \
445  test_namestore_api_remove.c
446 test_namestore_api_remove_flat_LDADD = \
447   $(top_builddir)/src/testing/libgnunettesting.la \
448   $(top_builddir)/src/util/libgnunetutil.la \
449   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
450   libgnunetnamestore.la
451
452 test_namestore_api_remove_not_existing_record_flat_SOURCES = \
453  test_namestore_api_remove_not_existing_record.c
454 test_namestore_api_remove_not_existing_record_flat_LDADD = \
455   $(top_builddir)/src/testing/libgnunettesting.la \
456   $(top_builddir)/src/util/libgnunetutil.la \
457   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
458   libgnunetnamestore.la
459
460 test_namestore_api_remove_not_existing_record_sqlite_SOURCES = \
461  test_namestore_api_remove_not_existing_record.c
462 test_namestore_api_remove_not_existing_record_sqlite_LDADD = \
463   $(top_builddir)/src/testing/libgnunettesting.la \
464   $(top_builddir)/src/util/libgnunetutil.la \
465   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
466   libgnunetnamestore.la
467
468 test_namestore_api_remove_not_existing_record_postgres_SOURCES = \
469  test_namestore_api_remove_not_existing_record.c
470 test_namestore_api_remove_not_existing_record_postgres_LDADD = \
471   $(top_builddir)/src/testing/libgnunettesting.la \
472   $(top_builddir)/src/util/libgnunetutil.la \
473   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
474   libgnunetnamestore.la
475
476 test_namestore_api_zone_to_name_flat_SOURCES = \
477  test_namestore_api_zone_to_name.c
478 test_namestore_api_zone_to_name_flat_LDADD = \
479   $(top_builddir)/src/testing/libgnunettesting.la \
480   $(top_builddir)/src/util/libgnunetutil.la \
481   libgnunetnamestore.la
482
483 test_namestore_api_zone_to_name_sqlite_SOURCES = \
484  test_namestore_api_zone_to_name.c
485 test_namestore_api_zone_to_name_sqlite_LDADD = \
486   $(top_builddir)/src/testing/libgnunettesting.la \
487   $(top_builddir)/src/util/libgnunetutil.la \
488   libgnunetnamestore.la
489
490 test_namestore_api_zone_to_name_postgres_SOURCES = \
491  test_namestore_api_zone_to_name.c
492 test_namestore_api_zone_to_name_postgres_LDADD = \
493   $(top_builddir)/src/testing/libgnunettesting.la \
494   $(top_builddir)/src/util/libgnunetutil.la \
495   libgnunetnamestore.la
496
497 test_namestore_api_monitoring_flat_SOURCES = \
498  test_namestore_api_monitoring.c
499 test_namestore_api_monitoring_flat_LDADD = \
500   $(top_builddir)/src/testing/libgnunettesting.la \
501   libgnunetnamestore.la \
502   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
503   $(top_builddir)/src/util/libgnunetutil.la
504
505 test_namestore_api_monitoring_sqlite_SOURCES = \
506  test_namestore_api_monitoring.c
507 test_namestore_api_monitoring_sqlite_LDADD = \
508   $(top_builddir)/src/testing/libgnunettesting.la \
509   libgnunetnamestore.la \
510   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
511   $(top_builddir)/src/util/libgnunetutil.la
512
513 test_namestore_api_monitoring_postgres_SOURCES = \
514  test_namestore_api_monitoring.c
515 test_namestore_api_monitoring_postgres_LDADD = \
516   $(top_builddir)/src/testing/libgnunettesting.la \
517   libgnunetnamestore.la \
518   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
519   $(top_builddir)/src/util/libgnunetutil.la
520
521 test_namestore_api_monitoring_existing_flat_SOURCES = \
522  test_namestore_api_monitoring_existing.c
523 test_namestore_api_monitoring_existing_flat_LDADD = \
524   $(top_builddir)/src/testing/libgnunettesting.la \
525   libgnunetnamestore.la \
526   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
527   $(top_builddir)/src/util/libgnunetutil.la
528
529 test_namestore_api_monitoring_existing_sqlite_SOURCES = \
530  test_namestore_api_monitoring_existing.c
531 test_namestore_api_monitoring_existing_sqlite_LDADD = \
532   $(top_builddir)/src/testing/libgnunettesting.la \
533   libgnunetnamestore.la \
534   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
535   $(top_builddir)/src/util/libgnunetutil.la
536
537 test_namestore_api_monitoring_existing_postgres_SOURCES = \
538  test_namestore_api_monitoring_existing.c
539 test_namestore_api_monitoring_existing_postgres_LDADD = \
540   $(top_builddir)/src/testing/libgnunettesting.la \
541   libgnunetnamestore.la \
542   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
543   $(top_builddir)/src/util/libgnunetutil.la
544
545 test_namestore_api_zone_iteration_flat_SOURCES = \
546  test_namestore_api_zone_iteration.c
547 test_namestore_api_zone_iteration_flat_LDADD = \
548   $(top_builddir)/src/testing/libgnunettesting.la \
549   $(top_builddir)/src/util/libgnunetutil.la \
550   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
551   libgnunetnamestore.la
552
553 test_namestore_api_zone_iteration_sqlite_SOURCES = \
554  test_namestore_api_zone_iteration.c
555 test_namestore_api_zone_iteration_sqlite_LDADD = \
556   $(top_builddir)/src/testing/libgnunettesting.la \
557   $(top_builddir)/src/util/libgnunetutil.la \
558   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
559   libgnunetnamestore.la
560
561 test_namestore_api_zone_iteration_postgres_SOURCES = \
562  test_namestore_api_zone_iteration.c
563 test_namestore_api_zone_iteration_postgres_LDADD = \
564   $(top_builddir)/src/testing/libgnunettesting.la \
565   $(top_builddir)/src/util/libgnunetutil.la \
566   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
567   libgnunetnamestore.la
568
569 perf_namestore_api_zone_iteration_postgres_SOURCES = \
570  perf_namestore_api_zone_iteration.c
571 perf_namestore_api_zone_iteration_postgres_LDADD = \
572   $(top_builddir)/src/testing/libgnunettesting.la \
573   $(top_builddir)/src/util/libgnunetutil.la \
574   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
575   libgnunetnamestore.la
576
577 perf_namestore_api_zone_iteration_sqlite_SOURCES = \
578  perf_namestore_api_zone_iteration.c
579 perf_namestore_api_zone_iteration_sqlite_LDADD = \
580   $(top_builddir)/src/testing/libgnunettesting.la \
581   $(top_builddir)/src/util/libgnunetutil.la \
582   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
583   libgnunetnamestore.la
584
585 perf_namestore_api_zone_iteration_flat_SOURCES = \
586  perf_namestore_api_zone_iteration.c
587 perf_namestore_api_zone_iteration_flat_LDADD = \
588   $(top_builddir)/src/testing/libgnunettesting.la \
589   $(top_builddir)/src/util/libgnunetutil.la \
590   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
591   libgnunetnamestore.la
592
593 test_namestore_api_zone_iteration_nick_flat_SOURCES = \
594  test_namestore_api_zone_iteration_nick.c
595 test_namestore_api_zone_iteration_nick_flat_LDADD = \
596   $(top_builddir)/src/testing/libgnunettesting.la \
597   $(top_builddir)/src/util/libgnunetutil.la \
598   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
599   libgnunetnamestore.la
600
601 test_namestore_api_zone_iteration_nick_sqlite_SOURCES = \
602  test_namestore_api_zone_iteration_nick.c
603 test_namestore_api_zone_iteration_nick_sqlite_LDADD = \
604   $(top_builddir)/src/testing/libgnunettesting.la \
605   $(top_builddir)/src/util/libgnunetutil.la \
606   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
607   libgnunetnamestore.la
608
609 test_namestore_api_zone_iteration_nick_postgres_SOURCES = \
610  test_namestore_api_zone_iteration_nick.c
611 test_namestore_api_zone_iteration_nick_postgres_LDADD = \
612   $(top_builddir)/src/testing/libgnunettesting.la \
613   $(top_builddir)/src/util/libgnunetutil.la \
614   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
615   libgnunetnamestore.la
616
617 test_namestore_api_zone_iteration_specific_zone_flat_SOURCES = \
618  test_namestore_api_zone_iteration_specific_zone.c
619 test_namestore_api_zone_iteration_specific_zone_flat_LDADD = \
620   $(top_builddir)/src/testing/libgnunettesting.la \
621   $(top_builddir)/src/util/libgnunetutil.la \
622   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
623   libgnunetnamestore.la
624
625 test_namestore_api_zone_iteration_specific_zone_sqlite_SOURCES = \
626  test_namestore_api_zone_iteration_specific_zone.c
627 test_namestore_api_zone_iteration_specific_zone_sqlite_LDADD = \
628   $(top_builddir)/src/testing/libgnunettesting.la \
629   $(top_builddir)/src/util/libgnunetutil.la \
630   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
631   libgnunetnamestore.la
632
633 test_namestore_api_zone_iteration_specific_zone_postgres_SOURCES = \
634  test_namestore_api_zone_iteration_specific_zone.c
635 test_namestore_api_zone_iteration_specific_zone_postgres_LDADD = \
636   $(top_builddir)/src/testing/libgnunettesting.la \
637   $(top_builddir)/src/util/libgnunetutil.la \
638   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
639   libgnunetnamestore.la
640
641 test_namestore_api_zone_iteration_stop_flat_SOURCES = \
642  test_namestore_api_zone_iteration_stop.c
643 test_namestore_api_zone_iteration_stop_flat_LDADD = \
644   $(top_builddir)/src/testing/libgnunettesting.la \
645   $(top_builddir)/src/util/libgnunetutil.la \
646   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
647   libgnunetnamestore.la
648
649 test_namestore_api_zone_iteration_stop_sqlite_SOURCES = \
650  test_namestore_api_zone_iteration_stop.c
651 test_namestore_api_zone_iteration_stop_sqlite_LDADD = \
652   $(top_builddir)/src/testing/libgnunettesting.la \
653   $(top_builddir)/src/util/libgnunetutil.la \
654   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
655   libgnunetnamestore.la
656
657 test_namestore_api_zone_iteration_stop_postgres_SOURCES = \
658  test_namestore_api_zone_iteration_stop.c
659 test_namestore_api_zone_iteration_stop_postgres_LDADD = \
660   $(top_builddir)/src/testing/libgnunettesting.la \
661   $(top_builddir)/src/util/libgnunetutil.la \
662   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
663   libgnunetnamestore.la
664
665 test_plugin_namestore_flat_SOURCES = \
666  test_plugin_namestore.c
667 test_plugin_namestore_flat_LDADD = \
668  $(top_builddir)/src/testing/libgnunettesting.la \
669  $(top_builddir)/src/util/libgnunetutil.la
670
671 test_plugin_namestore_sqlite_SOURCES = \
672  test_plugin_namestore.c
673 test_plugin_namestore_sqlite_LDADD = \
674  $(top_builddir)/src/testing/libgnunettesting.la \
675  $(top_builddir)/src/util/libgnunetutil.la
676
677 test_plugin_namestore_postgres_SOURCES = \
678  test_plugin_namestore.c
679 test_plugin_namestore_postgres_LDADD = \
680  $(top_builddir)/src/testing/libgnunettesting.la \
681  $(top_builddir)/src/util/libgnunetutil.la
682
683 check_SCRIPTS = \
684   test_namestore_put.sh \
685   test_namestore_lookup.sh \
686   test_namestore_delete.sh
687
688 EXTRA_DIST = \
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)