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