1 INCLUDES = -I$(top_srcdir)/src/include
7 SUBDIRS = . $(NSS_SUBDIR)
10 test_gns_defaults.conf \
11 test_gns_simple_lookup.conf \
12 test_gns_dht_default.conf \
13 gns-helper-service-w32.conf \
14 gnunet-gns-proxy-setup-ca \
15 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
16 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
17 zonefiles/test_zonekey
20 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
21 DO_W32_HELPER = gnunet-gns-helper-service-w32
22 DO_W32_NSP = libw32nsp.la
23 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
24 DO_W32_HS_CONF = gns-helper-service-w32.conf
26 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
29 AM_CFLAGS = --coverage -O0
32 pkgcfgdir = $(pkgdatadir)/config.d/
34 libexecdir= $(pkglibdir)/libexec/
36 plugindir = $(libdir)/gnunet
50 # does not compile right now...
52 # DO_PROXY=gnunet-gns-proxy
68 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
70 plugin_LTLIBRARIES = \
71 libgnunet_plugin_block_gns.la
73 gnunet_gns_SOURCES = \
76 $(top_builddir)/src/gns/libgnunetgns.la \
77 $(top_builddir)/src/namestore/libgnunetnamestore.la \
78 $(top_builddir)/src/identity/libgnunetidentity.la \
79 $(top_builddir)/src/util/libgnunetutil.la \
81 gnunet_gns_DEPENDENCIES = \
84 gnunet_dns2gns_SOURCES = \
86 gnunet_dns2gns_LDADD = \
87 $(top_builddir)/src/gns/libgnunetgns.la \
88 $(top_builddir)/src/util/libgnunetutil.la \
89 $(top_builddir)/src/namestore/libgnunetnamestore.la \
90 $(top_builddir)/src/dns/libgnunetdnsparser.la \
91 $(top_builddir)/src/dns/libgnunetdnsstub.la \
93 gnunet_dns2gns_DEPENDENCIES = \
94 $(top_builddir)/src/util/libgnunetutil.la \
95 $(top_builddir)/src/namestore/libgnunetnamestore.la \
96 $(top_builddir)/src/dns/libgnunetdnsparser.la \
97 $(top_builddir)/src/dns/libgnunetdnsstub.la \
100 #gnunet_gns_proxy_SOURCES = \
101 # gnunet-gns-proxy.c gns_proxy_proto.h
102 #gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
103 # $(top_builddir)/src/gns/libgnunetgns.la \
104 # $(top_builddir)/src/util/libgnunetutil.la \
106 #gnunet_gns_proxy_DEPENDENCIES = \
109 gnunet_gns_helper_service_w32_SOURCES = \
110 gnunet-gns-helper-service-w32.c
111 gnunet_gns_helper_service_w32_LDADD = \
112 $(top_builddir)/src/gns/libgnunetgns.la \
113 $(top_builddir)/src/util/libgnunetutil.la \
115 gnunet_gns_helper_service_w32_DEPENDENCIES = \
118 w32nsp_install_SOURCES = \
120 w32nsp_install_LDADD = -lws2_32
122 w32nsp_uninstall_SOURCES = \
124 w32nsp_uninstall_LDADD = -lws2_32
126 w32nsp_resolve_SOURCES = \
128 w32nsp_resolve_LDADD = -lws2_32
130 gnunet_service_gns_SOURCES = \
131 gnunet-service-gns.c \
132 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
133 gnunet-service-gns_shorten.c gnunet-service-gns_shorten.h \
134 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
135 gnunet_service_gns_LDADD = \
137 $(top_builddir)/src/statistics/libgnunetstatistics.la \
138 $(top_builddir)/src/util/libgnunetutil.la \
139 $(top_builddir)/src/dns/libgnunetdns.la \
140 $(top_builddir)/src/dns/libgnunetdnsparser.la \
141 $(top_builddir)/src/dns/libgnunetdnsstub.la \
142 $(top_builddir)/src/dht/libgnunetdht.la \
143 $(top_builddir)/src/namestore/libgnunetnamestore.la \
146 gnunet_service_gns_DEPENDENCIES = \
147 $(top_builddir)/src/statistics/libgnunetstatistics.la \
148 $(top_builddir)/src/util/libgnunetutil.la \
149 $(top_builddir)/src/dns/libgnunetdns.la \
150 $(top_builddir)/src/dns/libgnunetdnsparser.la \
151 $(top_builddir)/src/dht/libgnunetdht.la \
152 $(top_builddir)/src/namestore/libgnunetnamestore.la \
157 libw32nsp_la_SOURCES = \
159 libw32nsp_la_LIBADD = \
161 libw32nsp_la_LDFLAGS = \
162 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
165 libgnunetgns_la_SOURCES = \
167 libgnunetgns_la_LIBADD = \
168 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
169 $(top_builddir)/src/namestore/libgnunetnamestore.la
170 libgnunetgns_la_LDFLAGS = \
172 libgnunetgns_la_DEPENDENCIES = \
173 $(top_builddir)/src/util/libgnunetutil.la \
174 $(top_builddir)/src/namestore/libgnunetnamestore.la
177 libgnunet_plugin_block_gns_la_SOURCES = \
179 libgnunet_plugin_block_gns_la_LIBADD = \
180 $(top_builddir)/src/util/libgnunetutil.la \
181 $(top_builddir)/src/block/libgnunetblock.la \
182 $(top_builddir)/src/namestore/libgnunetnamestore.la
183 libgnunet_plugin_block_gns_la_LDFLAGS = \
185 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
186 $(top_builddir)/src/util/libgnunetutil.la \
187 $(top_builddir)/src/block/libgnunetblock.la \
188 $(top_builddir)/src/namestore/libgnunetnamestore.la
192 test_gns_simple_shorten \
193 test_gns_simple_lookup \
194 test_gns_simple_delegated_lookup \
195 test_gns_simple_mx_lookup \
196 test_gns_simple_srv_lookup \
197 test_gns_simple_zkey_lookup \
198 test_gns_dht_delegated_lookup \
199 test_gns_pseu_shorten \
200 test_gns_max_queries \
201 test_gns_cname_lookup \
203 test_gns_revocation \
204 test_gns_dht_three_peers
211 TESTS = $(check_PROGRAMS)
217 #test_gns_proxy_SOURCES = \
219 #test_gns_proxy_LDADD = -lmicrohttpd @LIBCURL@ \
220 # $(top_builddir)/src/util/libgnunetutil.la \
221 # $(top_builddir)/src/namestore/libgnunetnamestore.la \
222 # $(top_builddir)/src/gns/libgnunetgns.la \
223 # $(top_builddir)/src/testing/libgnunettesting.la
224 #test_gns_proxy_DEPENDENCIES = \
225 # $(top_builddir)/src/util/libgnunetutil.la \
226 # $(top_builddir)/src/namestore/libgnunetnamestore.la \
228 # $(top_builddir)/src/testing/libgnunettesting.la
230 test_gns_dht_three_peers_SOURCES = \
231 test_gns_dht_three_peers.c
232 test_gns_dht_three_peers_LDADD = \
233 $(top_builddir)/src/util/libgnunetutil.la \
234 $(top_builddir)/src/namestore/libgnunetnamestore.la \
235 $(top_builddir)/src/gns/libgnunetgns.la \
236 $(top_builddir)/src/testing/libgnunettesting.la \
237 $(top_builddir)/src/testbed/libgnunettestbed.la
238 test_gns_dht_three_peers_DEPENDENCIES = \
239 $(top_builddir)/src/util/libgnunetutil.la \
240 $(top_builddir)/src/namestore/libgnunetnamestore.la \
242 $(top_builddir)/src/testing/libgnunettesting.la \
243 $(top_builddir)/src/testbed/libgnunettestbed.la
245 test_gns_simple_lookup_SOURCES = \
246 test_gns_simple_lookup.c
247 test_gns_simple_lookup_LDADD = \
248 $(top_builddir)/src/util/libgnunetutil.la \
249 $(top_builddir)/src/namestore/libgnunetnamestore.la \
250 $(top_builddir)/src/gns/libgnunetgns.la \
251 $(top_builddir)/src/testing/libgnunettesting.la
252 test_gns_simple_lookup_DEPENDENCIES = \
253 $(top_builddir)/src/util/libgnunetutil.la \
254 $(top_builddir)/src/namestore/libgnunetnamestore.la \
256 $(top_builddir)/src/testing/libgnunettesting.la
258 test_gns_simple_delegated_lookup_SOURCES = \
259 test_gns_simple_delegated_lookup.c
260 test_gns_simple_delegated_lookup_LDADD = \
261 $(top_builddir)/src/util/libgnunetutil.la \
262 $(top_builddir)/src/namestore/libgnunetnamestore.la \
263 $(top_builddir)/src/gns/libgnunetgns.la \
264 $(top_builddir)/src/testing/libgnunettesting.la
265 test_gns_simple_delegated_lookup_DEPENDENCIES = \
266 $(top_builddir)/src/util/libgnunetutil.la \
267 $(top_builddir)/src/namestore/libgnunetnamestore.la \
269 $(top_builddir)/src/testing/libgnunettesting.la
271 test_gns_simple_mx_lookup_SOURCES = \
272 test_gns_simple_mx_lookup.c
273 test_gns_simple_mx_lookup_LDADD = \
274 $(top_builddir)/src/util/libgnunetutil.la \
275 $(top_builddir)/src/namestore/libgnunetnamestore.la \
276 $(top_builddir)/src/gns/libgnunetgns.la \
277 $(top_builddir)/src/testing/libgnunettesting.la
278 test_gns_simple_mx_lookup_DEPENDENCIES = \
279 $(top_builddir)/src/util/libgnunetutil.la \
280 $(top_builddir)/src/namestore/libgnunetnamestore.la \
282 $(top_builddir)/src/testing/libgnunettesting.la
284 test_gns_simple_srv_lookup_SOURCES = \
285 test_gns_simple_srv_lookup.c
286 test_gns_simple_srv_lookup_LDADD = \
287 $(top_builddir)/src/util/libgnunetutil.la \
288 $(top_builddir)/src/namestore/libgnunetnamestore.la \
289 $(top_builddir)/src/gns/libgnunetgns.la \
290 $(top_builddir)/src/testing/libgnunettesting.la
291 test_gns_simple_srv_lookup_DEPENDENCIES = \
292 $(top_builddir)/src/util/libgnunetutil.la \
293 $(top_builddir)/src/namestore/libgnunetnamestore.la \
295 $(top_builddir)/src/testing/libgnunettesting.la
297 test_gns_simple_zkey_lookup_SOURCES = \
298 test_gns_simple_zkey_lookup.c
299 test_gns_simple_zkey_lookup_LDADD = \
300 $(top_builddir)/src/util/libgnunetutil.la \
301 $(top_builddir)/src/namestore/libgnunetnamestore.la \
302 $(top_builddir)/src/gns/libgnunetgns.la \
303 $(top_builddir)/src/testing/libgnunettesting.la
304 test_gns_simple_zkey_lookup_DEPENDENCIES = \
305 $(top_builddir)/src/util/libgnunetutil.la \
306 $(top_builddir)/src/namestore/libgnunetnamestore.la \
308 $(top_builddir)/src/testing/libgnunettesting.la
310 test_gns_dht_delegated_lookup_SOURCES = \
311 test_gns_dht_delegated_lookup.c
312 test_gns_dht_delegated_lookup_LDADD = \
313 $(top_builddir)/src/util/libgnunetutil.la \
314 $(top_builddir)/src/namestore/libgnunetnamestore.la \
315 $(top_builddir)/src/dht/libgnunetdht.la \
316 $(top_builddir)/src/gns/libgnunetgns.la \
317 $(top_builddir)/src/testing/libgnunettesting.la
318 test_gns_dht_delegated_lookup_DEPENDENCIES = \
319 $(top_builddir)/src/util/libgnunetutil.la \
320 $(top_builddir)/src/namestore/libgnunetnamestore.la \
321 $(top_builddir)/src/dht/libgnunetdht.la \
323 $(top_builddir)/src/testing/libgnunettesting.la
325 test_gns_simple_shorten_SOURCES = \
326 test_gns_simple_shorten.c
327 test_gns_simple_shorten_LDADD = \
328 $(top_builddir)/src/util/libgnunetutil.la \
329 $(top_builddir)/src/namestore/libgnunetnamestore.la \
330 $(top_builddir)/src/gns/libgnunetgns.la \
331 $(top_builddir)/src/testing/libgnunettesting.la
332 test_gns_simple_shorten_DEPENDENCIES = \
333 $(top_builddir)/src/util/libgnunetutil.la \
334 $(top_builddir)/src/namestore/libgnunetnamestore.la \
336 $(top_builddir)/src/testing/libgnunettesting.la
339 test_gns_pseu_shorten_SOURCES = \
340 test_gns_pseu_shorten.c
341 test_gns_pseu_shorten_LDADD = \
342 $(top_builddir)/src/util/libgnunetutil.la \
343 $(top_builddir)/src/namestore/libgnunetnamestore.la \
344 $(top_builddir)/src/dht/libgnunetdht.la \
345 $(top_builddir)/src/gns/libgnunetgns.la \
346 $(top_builddir)/src/testing/libgnunettesting.la
347 test_gns_pseu_shorten_DEPENDENCIES = \
348 $(top_builddir)/src/util/libgnunetutil.la \
349 $(top_builddir)/src/namestore/libgnunetnamestore.la \
350 $(top_builddir)/src/dht/libgnunetdht.la \
352 $(top_builddir)/src/testing/libgnunettesting.la
355 test_gns_max_queries_SOURCES = \
356 test_gns_max_queries.c
357 test_gns_max_queries_LDADD = \
358 $(top_builddir)/src/util/libgnunetutil.la \
359 $(top_builddir)/src/namestore/libgnunetnamestore.la \
360 $(top_builddir)/src/gns/libgnunetgns.la \
361 $(top_builddir)/src/testing/libgnunettesting.la
362 test_gns_max_queries_DEPENDENCIES = \
363 $(top_builddir)/src/util/libgnunetutil.la \
364 $(top_builddir)/src/namestore/libgnunetnamestore.la \
366 $(top_builddir)/src/testing/libgnunettesting.la
368 test_gns_cname_lookup_SOURCES = \
369 test_gns_cname_lookup.c
370 test_gns_cname_lookup_LDADD = \
371 $(top_builddir)/src/util/libgnunetutil.la \
372 $(top_builddir)/src/namestore/libgnunetnamestore.la \
373 $(top_builddir)/src/gns/libgnunetgns.la \
374 $(top_builddir)/src/testing/libgnunettesting.la
375 test_gns_cname_lookup_DEPENDENCIES = \
376 $(top_builddir)/src/util/libgnunetutil.la \
377 $(top_builddir)/src/namestore/libgnunetnamestore.la \
379 $(top_builddir)/src/testing/libgnunettesting.la
382 test_gns_ns_lookup_SOURCES = \
384 test_gns_ns_lookup_LDADD = \
385 $(top_builddir)/src/util/libgnunetutil.la \
386 $(top_builddir)/src/namestore/libgnunetnamestore.la \
387 $(top_builddir)/src/gns/libgnunetgns.la \
388 $(top_builddir)/src/testing/libgnunettesting.la
389 test_gns_ns_lookup_DEPENDENCIES = \
390 $(top_builddir)/src/util/libgnunetutil.la \
391 $(top_builddir)/src/namestore/libgnunetnamestore.la \
393 $(top_builddir)/src/testing/libgnunettesting.la
396 test_gns_revocation_SOURCES = \
397 test_gns_revocation.c
398 test_gns_revocation_LDADD = \
399 $(top_builddir)/src/util/libgnunetutil.la \
400 $(top_builddir)/src/namestore/libgnunetnamestore.la \
401 $(top_builddir)/src/gns/libgnunetgns.la \
402 $(top_builddir)/src/testing/libgnunettesting.la
403 test_gns_revocation_DEPENDENCIES = \
404 $(top_builddir)/src/util/libgnunetutil.la \
405 $(top_builddir)/src/namestore/libgnunetnamestore.la \
407 $(top_builddir)/src/testing/libgnunettesting.la
412 #libgnunetnamestore_la_SOURCES = \
413 # namestore_stub_api.c
414 #libgnunetnamestore_la_LIBADD = \
415 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
416 #libgnunetnamestore_la_LDFLAGS = \
418 #libgnunetnamestore_la_DEPENDENCIES = \
419 # $(top_builddir)/src/util/libgnunetutil.la