1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
7 libexecdir= $(pkglibdir)/libexec/
14 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
18 AM_CFLAGS = --coverage -O0
23 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
25 SQLITE_TESTS = test_plugin_namestore_sqlite
30 # postgres doesn't even build yet; thus: experimental!
31 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
33 POSTGRES_TESTS = test_plugin_namestore_postgres
37 # testcases do not even build yet; thus: experimental!
40 test_namestore_api_store \
41 test_namestore_api_store_update \
42 test_namestore_api_lookup_public \
43 test_namestore_api_lookup_private \
44 test_namestore_api_lookup_nick \
45 test_namestore_api_lookup_shadow \
46 test_namestore_api_lookup_shadow_filter \
47 test_namestore_api_remove \
48 test_namestore_api_remove_not_existing_record \
49 test_namestore_api_zone_iteration \
50 test_namestore_api_zone_iteration_nick \
51 test_namestore_api_zone_iteration_specific_zone \
52 test_namestore_api_zone_iteration_stop \
53 test_namestore_api_monitoring \
54 test_namestore_api_monitoring_existing
55 #test_namestore_api_zone_to_name
66 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
75 libgnunetnamestore_la_SOURCES = \
77 namestore_api_monitor.c \
79 libgnunetnamestore_la_LIBADD = \
80 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
81 $(top_builddir)/src/statistics/libgnunetstatistics.la \
82 $(top_builddir)/src/dns/libgnunetdnsparser.la \
83 $(top_builddir)/src/util/libgnunetutil.la \
85 libgnunetnamestore_la_LDFLAGS = \
86 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
90 gnunet-service-namestore
97 gnunet-namestore-fcfsd
100 gnunet_namestore_SOURCES = \
102 gnunet_namestore_LDADD = \
103 $(top_builddir)/src/identity/libgnunetidentity.la \
104 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
106 libgnunetnamestore.la \
108 gnunet_namestore_DEPENDENCIES = \
109 $(top_builddir)/src/identity/libgnunetidentity.la \
110 $(top_builddir)/src/util/libgnunetutil.la \
111 libgnunetnamestore.la
114 gnunet_namestore_fcfsd_SOURCES = \
115 gnunet-namestore-fcfsd.c
116 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
117 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
118 $(top_builddir)/src/identity/libgnunetidentity.la \
119 $(top_builddir)/src/namestore/libgnunetnamestore.la \
120 $(top_builddir)/src/util/libgnunetutil.la \
122 gnunet_namestore_fcfsd_DEPENDENCIES = \
123 $(top_builddir)/src/util/libgnunetutil.la \
124 libgnunetnamestore.la
128 gnunet_service_namestore_SOURCES = \
129 gnunet-service-namestore.c
131 gnunet_service_namestore_LDADD = \
132 $(top_builddir)/src/namecache/libgnunetnamecache.la \
133 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
134 $(top_builddir)/src/statistics/libgnunetstatistics.la \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 libgnunetnamestore.la \
138 gnunet_service_namestore_DEPENDENCIES = \
139 $(top_builddir)/src/statistics/libgnunetstatistics.la \
140 $(top_builddir)/src/util/libgnunetutil.la \
141 libgnunetnamestore.la
144 plugin_LTLIBRARIES = \
148 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
149 plugin_namestore_sqlite.c
150 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
151 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
152 $(top_builddir)/src/statistics/libgnunetstatistics.la \
153 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
155 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
157 libgnunet_plugin_namestore_sqlite_la_DEPENDENCIES = \
158 $(top_builddir)/src/statistics/libgnunetstatistics.la \
159 $(top_builddir)/src/util/libgnunetutil.la \
160 libgnunetnamestore.la
163 libgnunet_plugin_namestore_postgres_la_SOURCES = \
164 plugin_namestore_postgres.c
165 libgnunet_plugin_namestore_postgres_la_LIBADD = \
166 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
167 $(top_builddir)/src/postgres/libgnunetpostgres.la \
168 $(top_builddir)/src/statistics/libgnunetstatistics.la \
169 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
171 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
173 libgnunet_plugin_namestore_postgres_la_DEPENDENCIES = \
174 $(top_builddir)/src/postgres/libgnunetpostgres.la \
175 $(top_builddir)/src/statistics/libgnunetstatistics.la \
176 $(top_builddir)/src/util/libgnunetutil.la \
177 libgnunetnamestore.la
179 test_namestore_api_store_SOURCES = \
180 test_namestore_api_store.c
181 test_namestore_api_store_LDADD = \
182 $(top_builddir)/src/testing/libgnunettesting.la \
183 $(top_builddir)/src/util/libgnunetutil.la \
184 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
185 $(top_builddir)/src/namestore/libgnunetnamestore.la
187 test_namestore_api_store_update_SOURCES = \
188 test_namestore_api_store_update.c
189 test_namestore_api_store_update_LDADD = \
190 $(top_builddir)/src/testing/libgnunettesting.la \
191 $(top_builddir)/src/util/libgnunetutil.la \
192 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
193 $(top_builddir)/src/namecache/libgnunetnamecache.la \
194 $(top_builddir)/src/namestore/libgnunetnamestore.la
196 test_namestore_api_lookup_public_SOURCES = \
197 test_namestore_api_lookup_public.c
198 test_namestore_api_lookup_public_LDADD = \
199 $(top_builddir)/src/testing/libgnunettesting.la \
200 $(top_builddir)/src/util/libgnunetutil.la \
201 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
202 $(top_builddir)/src/namecache/libgnunetnamecache.la \
203 $(top_builddir)/src/namestore/libgnunetnamestore.la
205 test_namestore_api_lookup_nick_SOURCES = \
206 test_namestore_api_lookup_nick.c
207 test_namestore_api_lookup_nick_LDADD = \
208 $(top_builddir)/src/testing/libgnunettesting.la \
209 $(top_builddir)/src/util/libgnunetutil.la \
210 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
211 $(top_builddir)/src/namecache/libgnunetnamecache.la \
212 $(top_builddir)/src/namestore/libgnunetnamestore.la
214 test_namestore_api_lookup_private_SOURCES = \
215 test_namestore_api_lookup_private.c
216 test_namestore_api_lookup_private_LDADD = \
217 $(top_builddir)/src/testing/libgnunettesting.la \
218 $(top_builddir)/src/util/libgnunetutil.la \
219 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
220 $(top_builddir)/src/namecache/libgnunetnamecache.la \
221 $(top_builddir)/src/namestore/libgnunetnamestore.la
223 test_namestore_api_lookup_shadow_SOURCES = \
224 test_namestore_api_lookup_shadow.c
225 test_namestore_api_lookup_shadow_LDADD = \
226 $(top_builddir)/src/testing/libgnunettesting.la \
227 $(top_builddir)/src/util/libgnunetutil.la \
228 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
229 $(top_builddir)/src/namecache/libgnunetnamecache.la \
230 $(top_builddir)/src/namestore/libgnunetnamestore.la
232 test_namestore_api_lookup_shadow_filter_SOURCES = \
233 test_namestore_api_lookup_shadow_filter.c
234 test_namestore_api_lookup_shadow_filter_LDADD = \
235 $(top_builddir)/src/testing/libgnunettesting.la \
236 $(top_builddir)/src/util/libgnunetutil.la \
237 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
238 $(top_builddir)/src/namecache/libgnunetnamecache.la \
239 $(top_builddir)/src/namestore/libgnunetnamestore.la
241 test_namestore_api_remove_SOURCES = \
242 test_namestore_api_remove.c
243 test_namestore_api_remove_LDADD = \
244 $(top_builddir)/src/testing/libgnunettesting.la \
245 $(top_builddir)/src/util/libgnunetutil.la \
246 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
247 $(top_builddir)/src/namestore/libgnunetnamestore.la
249 test_namestore_api_remove_not_existing_record_SOURCES = \
250 test_namestore_api_remove_not_existing_record.c
251 test_namestore_api_remove_not_existing_record_LDADD = \
252 $(top_builddir)/src/testing/libgnunettesting.la \
253 $(top_builddir)/src/util/libgnunetutil.la \
254 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
255 $(top_builddir)/src/namestore/libgnunetnamestore.la
257 test_namestore_api_zone_to_name_SOURCES = \
258 test_namestore_api_zone_to_name.c
259 test_namestore_api_zone_to_name_LDADD = \
260 $(top_builddir)/src/testing/libgnunettesting.la \
261 $(top_builddir)/src/util/libgnunetutil.la \
262 $(top_builddir)/src/namestore/libgnunetnamestore.la
264 test_namestore_api_monitoring_SOURCES = \
265 test_namestore_api_monitoring.c
266 test_namestore_api_monitoring_LDADD = \
267 $(top_builddir)/src/testing/libgnunettesting.la \
268 $(top_builddir)/src/namestore/libgnunetnamestore.la \
269 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
270 $(top_builddir)/src/util/libgnunetutil.la
272 test_namestore_api_monitoring_existing_SOURCES = \
273 test_namestore_api_monitoring_existing.c
274 test_namestore_api_monitoring_existing_LDADD = \
275 $(top_builddir)/src/testing/libgnunettesting.la \
276 $(top_builddir)/src/namestore/libgnunetnamestore.la \
277 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
278 $(top_builddir)/src/util/libgnunetutil.la
280 test_namestore_api_zone_iteration_SOURCES = \
281 test_namestore_api_zone_iteration.c
282 test_namestore_api_zone_iteration_LDADD = \
283 $(top_builddir)/src/testing/libgnunettesting.la \
284 $(top_builddir)/src/util/libgnunetutil.la \
285 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
286 $(top_builddir)/src/namestore/libgnunetnamestore.la
288 test_namestore_api_zone_iteration_nick_SOURCES = \
289 test_namestore_api_zone_iteration_nick.c
290 test_namestore_api_zone_iteration_nick_LDADD = \
291 $(top_builddir)/src/testing/libgnunettesting.la \
292 $(top_builddir)/src/util/libgnunetutil.la \
293 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
294 $(top_builddir)/src/namestore/libgnunetnamestore.la
297 test_namestore_api_zone_iteration_specific_zone_SOURCES = \
298 test_namestore_api_zone_iteration_specific_zone.c
299 test_namestore_api_zone_iteration_specific_zone_LDADD = \
300 $(top_builddir)/src/testing/libgnunettesting.la \
301 $(top_builddir)/src/util/libgnunetutil.la \
302 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
303 $(top_builddir)/src/namestore/libgnunetnamestore.la
305 test_namestore_api_zone_iteration_stop_SOURCES = \
306 test_namestore_api_zone_iteration_stop.c
307 test_namestore_api_zone_iteration_stop_LDADD = \
308 $(top_builddir)/src/testing/libgnunettesting.la \
309 $(top_builddir)/src/util/libgnunetutil.la \
310 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
311 $(top_builddir)/src/namestore/libgnunetnamestore.la
313 test_plugin_namestore_sqlite_SOURCES = \
314 test_plugin_namestore.c
315 test_plugin_namestore_sqlite_LDADD = \
316 $(top_builddir)/src/testing/libgnunettesting.la \
317 $(top_builddir)/src/util/libgnunetutil.la
319 test_plugin_namestore_postgres_SOURCES = \
320 test_plugin_namestore.c
321 test_plugin_namestore_postgres_LDADD = \
322 $(top_builddir)/src/testing/libgnunettesting.la \
323 $(top_builddir)/src/util/libgnunetutil.la
326 test_namestore_put.sh \
327 test_namestore_lookup.sh \
328 test_namestore_delete.sh
331 test_namestore_api.conf \
332 test_plugin_namestore_sqlite.conf \
333 test_plugin_namestore_postgres.conf \
335 zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
336 zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
337 zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
338 zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey \