1 INCLUDES = -I$(top_srcdir)/src/include
7 SUBDIRS = . $(NSS_SUBDIR)
10 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
11 DO_W32_HELPER = gnunet-gns-helper-service-w32
12 DO_W32_NSP = libw32nsp.la
13 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
14 DO_W32_HS_CONF = gns-helper-service-w32.conf
18 AM_CFLAGS = --coverage -O0
21 pkgcfgdir= $(pkgdatadir)/config.d/
23 plugindir = $(libdir)/gnunet
34 DO_FCFSD=gnunet-gns-fcfsd
36 DO_PROXY=gnunet-gns-proxy
49 bin_SCRIPTS=gnunet-gns-proxy-setup-ca
52 test_gns_simple_shorten \
53 test_gns_simple_get_authority \
54 test_gns_simple_lookup \
55 test_gns_simple_delegated_lookup \
56 test_gns_simple_mx_lookup \
57 test_gns_simple_srv_lookup \
58 test_gns_simple_zkey_lookup \
59 test_gns_dht_delegated_lookup \
60 test_gns_pseu_shorten \
61 test_gns_max_queries \
62 test_gns_dht_threepeer \
63 test_gns_cname_lookup \
69 # test_gns_simple_lookup
70 # test_gns_simple_delegated_lookup
71 # test_gns_dht_delegated_lookup
74 plugin_LTLIBRARIES = \
75 libgnunet_plugin_block_gns.la
77 test_gns_proxy_SOURCES = \
79 test_gns_proxy_LDADD = -lmicrohttpd @LIBCURL@ \
80 $(top_builddir)/src/util/libgnunetutil.la \
81 $(top_builddir)/src/namestore/libgnunetnamestore.la \
82 $(top_builddir)/src/gns/libgnunetgns.la \
83 $(top_builddir)/src/testing/libgnunettesting.la
84 test_gns_proxy_DEPENDENCIES = \
85 $(top_builddir)/src/util/libgnunetutil.la \
86 $(top_builddir)/src/namestore/libgnunetnamestore.la \
87 $(top_builddir)/src/gns/libgnunetgns.la \
88 $(top_builddir)/src/testing/libgnunettesting.la
90 test_gns_dht_threepeer_SOURCES = \
91 test_gns_dht_threepeer.c
92 test_gns_dht_threepeer_LDADD = \
93 $(top_builddir)/src/util/libgnunetutil.la \
94 $(top_builddir)/src/namestore/libgnunetnamestore.la \
95 $(top_builddir)/src/gns/libgnunetgns.la \
96 $(top_builddir)/src/testing_old/libgnunettesting_old.la
97 test_gns_dht_threepeer_DEPENDENCIES = \
98 $(top_builddir)/src/util/libgnunetutil.la \
99 $(top_builddir)/src/namestore/libgnunetnamestore.la \
100 $(top_builddir)/src/gns/libgnunetgns.la \
101 $(top_builddir)/src/testing_old/libgnunettesting_old.la
103 test_gns_simple_lookup_SOURCES = \
104 test_gns_simple_lookup.c
105 test_gns_simple_lookup_LDADD = \
106 $(top_builddir)/src/util/libgnunetutil.la \
107 $(top_builddir)/src/namestore/libgnunetnamestore.la \
108 $(top_builddir)/src/gns/libgnunetgns.la \
109 $(top_builddir)/src/testing_old/libgnunettesting_old.la
110 test_gns_simple_lookup_DEPENDENCIES = \
111 $(top_builddir)/src/util/libgnunetutil.la \
112 $(top_builddir)/src/namestore/libgnunetnamestore.la \
113 $(top_builddir)/src/gns/libgnunetgns.la \
114 $(top_builddir)/src/testing_old/libgnunettesting_old.la
116 test_gns_simple_delegated_lookup_SOURCES = \
117 test_gns_simple_delegated_lookup.c
118 test_gns_simple_delegated_lookup_LDADD = \
119 $(top_builddir)/src/util/libgnunetutil.la \
120 $(top_builddir)/src/namestore/libgnunetnamestore.la \
121 $(top_builddir)/src/gns/libgnunetgns.la \
122 $(top_builddir)/src/testing_old/libgnunettesting_old.la
123 test_gns_simple_delegated_lookup_DEPENDENCIES = \
124 $(top_builddir)/src/util/libgnunetutil.la \
125 $(top_builddir)/src/namestore/libgnunetnamestore.la \
126 $(top_builddir)/src/gns/libgnunetgns.la \
127 $(top_builddir)/src/testing_old/libgnunettesting_old.la
129 test_gns_simple_mx_lookup_SOURCES = \
130 test_gns_simple_mx_lookup.c
131 test_gns_simple_mx_lookup_LDADD = \
132 $(top_builddir)/src/util/libgnunetutil.la \
133 $(top_builddir)/src/namestore/libgnunetnamestore.la \
134 $(top_builddir)/src/gns/libgnunetgns.la \
135 $(top_builddir)/src/testing_old/libgnunettesting_old.la
136 test_gns_simple_mx_lookup_DEPENDENCIES = \
137 $(top_builddir)/src/util/libgnunetutil.la \
138 $(top_builddir)/src/namestore/libgnunetnamestore.la \
139 $(top_builddir)/src/gns/libgnunetgns.la \
140 $(top_builddir)/src/testing_old/libgnunettesting_old.la
142 test_gns_simple_srv_lookup_SOURCES = \
143 test_gns_simple_srv_lookup.c
144 test_gns_simple_srv_lookup_LDADD = \
145 $(top_builddir)/src/util/libgnunetutil.la \
146 $(top_builddir)/src/namestore/libgnunetnamestore.la \
147 $(top_builddir)/src/gns/libgnunetgns.la \
148 $(top_builddir)/src/testing_old/libgnunettesting_old.la
149 test_gns_simple_srv_lookup_DEPENDENCIES = \
150 $(top_builddir)/src/util/libgnunetutil.la \
151 $(top_builddir)/src/namestore/libgnunetnamestore.la \
152 $(top_builddir)/src/gns/libgnunetgns.la \
153 $(top_builddir)/src/testing_old/libgnunettesting_old.la
155 test_gns_simple_zkey_lookup_SOURCES = \
156 test_gns_simple_zkey_lookup.c
157 test_gns_simple_zkey_lookup_LDADD = \
158 $(top_builddir)/src/util/libgnunetutil.la \
159 $(top_builddir)/src/namestore/libgnunetnamestore.la \
160 $(top_builddir)/src/gns/libgnunetgns.la \
161 $(top_builddir)/src/testing_old/libgnunettesting_old.la
162 test_gns_simple_zkey_lookup_DEPENDENCIES = \
163 $(top_builddir)/src/util/libgnunetutil.la \
164 $(top_builddir)/src/namestore/libgnunetnamestore.la \
165 $(top_builddir)/src/gns/libgnunetgns.la \
166 $(top_builddir)/src/testing_old/libgnunettesting_old.la
168 test_gns_dht_delegated_lookup_SOURCES = \
169 test_gns_dht_delegated_lookup.c
170 test_gns_dht_delegated_lookup_LDADD = \
171 $(top_builddir)/src/util/libgnunetutil.la \
172 $(top_builddir)/src/namestore/libgnunetnamestore.la \
173 $(top_builddir)/src/dht/libgnunetdht.la \
174 $(top_builddir)/src/gns/libgnunetgns.la \
175 $(top_builddir)/src/testing_old/libgnunettesting_old.la
176 test_gns_dht_delegated_lookup_DEPENDENCIES = \
177 $(top_builddir)/src/util/libgnunetutil.la \
178 $(top_builddir)/src/namestore/libgnunetnamestore.la \
179 $(top_builddir)/src/dht/libgnunetdht.la \
180 $(top_builddir)/src/gns/libgnunetgns.la \
181 $(top_builddir)/src/testing_old/libgnunettesting_old.la
183 test_gns_simple_shorten_SOURCES = \
184 test_gns_simple_shorten.c
185 test_gns_simple_shorten_LDADD = \
186 $(top_builddir)/src/util/libgnunetutil.la \
187 $(top_builddir)/src/namestore/libgnunetnamestore.la \
188 $(top_builddir)/src/gns/libgnunetgns.la \
189 $(top_builddir)/src/testing_old/libgnunettesting_old.la
190 test_gns_simple_shorten_DEPENDENCIES = \
191 $(top_builddir)/src/util/libgnunetutil.la \
192 $(top_builddir)/src/namestore/libgnunetnamestore.la \
193 $(top_builddir)/src/gns/libgnunetgns.la \
194 $(top_builddir)/src/testing_old/libgnunettesting_old.la
196 test_gns_simple_get_authority_SOURCES = \
197 test_gns_simple_get_authority.c
198 test_gns_simple_get_authority_LDADD = \
199 $(top_builddir)/src/util/libgnunetutil.la \
200 $(top_builddir)/src/namestore/libgnunetnamestore.la \
201 $(top_builddir)/src/gns/libgnunetgns.la \
202 $(top_builddir)/src/testing_old/libgnunettesting_old.la
203 test_gns_simple_get_authority_DEPENDENCIES = \
204 $(top_builddir)/src/util/libgnunetutil.la \
205 $(top_builddir)/src/namestore/libgnunetnamestore.la \
206 $(top_builddir)/src/gns/libgnunetgns.la \
207 $(top_builddir)/src/testing_old/libgnunettesting_old.la
210 test_gns_pseu_shorten_SOURCES = \
211 test_gns_pseu_shorten.c
212 test_gns_pseu_shorten_LDADD = \
213 $(top_builddir)/src/util/libgnunetutil.la \
214 $(top_builddir)/src/namestore/libgnunetnamestore.la \
215 $(top_builddir)/src/dht/libgnunetdht.la \
216 $(top_builddir)/src/gns/libgnunetgns.la \
217 $(top_builddir)/src/testing_old/libgnunettesting_old.la
218 test_gns_pseu_shorten_DEPENDENCIES = \
219 $(top_builddir)/src/util/libgnunetutil.la \
220 $(top_builddir)/src/namestore/libgnunetnamestore.la \
221 $(top_builddir)/src/dht/libgnunetdht.la \
222 $(top_builddir)/src/gns/libgnunetgns.la \
223 $(top_builddir)/src/testing_old/libgnunettesting_old.la
226 test_gns_max_queries_SOURCES = \
227 test_gns_max_queries.c
228 test_gns_max_queries_LDADD = \
229 $(top_builddir)/src/util/libgnunetutil.la \
230 $(top_builddir)/src/namestore/libgnunetnamestore.la \
231 $(top_builddir)/src/gns/libgnunetgns.la \
232 $(top_builddir)/src/testing_old/libgnunettesting_old.la
233 test_gns_max_queries_DEPENDENCIES = \
234 $(top_builddir)/src/util/libgnunetutil.la \
235 $(top_builddir)/src/namestore/libgnunetnamestore.la \
236 $(top_builddir)/src/gns/libgnunetgns.la \
237 $(top_builddir)/src/testing_old/libgnunettesting_old.la
239 test_gns_cname_lookup_SOURCES = \
240 test_gns_cname_lookup.c
241 test_gns_cname_lookup_LDADD = \
242 $(top_builddir)/src/util/libgnunetutil.la \
243 $(top_builddir)/src/namestore/libgnunetnamestore.la \
244 $(top_builddir)/src/gns/libgnunetgns.la \
245 $(top_builddir)/src/testing_old/libgnunettesting_old.la
246 test_gns_cname_lookup_DEPENDENCIES = \
247 $(top_builddir)/src/util/libgnunetutil.la \
248 $(top_builddir)/src/namestore/libgnunetnamestore.la \
249 $(top_builddir)/src/gns/libgnunetgns.la \
250 $(top_builddir)/src/testing_old/libgnunettesting_old.la
253 test_gns_ns_lookup_SOURCES = \
255 test_gns_ns_lookup_LDADD = \
256 $(top_builddir)/src/util/libgnunetutil.la \
257 $(top_builddir)/src/namestore/libgnunetnamestore.la \
258 $(top_builddir)/src/gns/libgnunetgns.la \
259 $(top_builddir)/src/testing_old/libgnunettesting_old.la
260 test_gns_ns_lookup_DEPENDENCIES = \
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_old/libgnunettesting_old.la
267 test_gns_revocation_SOURCES = \
268 test_gns_revocation.c
269 test_gns_revocation_LDADD = \
270 $(top_builddir)/src/util/libgnunetutil.la \
271 $(top_builddir)/src/namestore/libgnunetnamestore.la \
272 $(top_builddir)/src/gns/libgnunetgns.la \
273 $(top_builddir)/src/testing_old/libgnunettesting_old.la
274 test_gns_revocation_DEPENDENCIES = \
275 $(top_builddir)/src/util/libgnunetutil.la \
276 $(top_builddir)/src/namestore/libgnunetnamestore.la \
277 $(top_builddir)/src/gns/libgnunetgns.la \
278 $(top_builddir)/src/testing_old/libgnunettesting_old.la
281 gnunet_gns_SOURCES = \
284 $(top_builddir)/src/gns/libgnunetgns.la \
285 $(top_builddir)/src/util/libgnunetutil.la \
286 $(top_builddir)/src/namestore/libgnunetnamestore.la \
288 gnunet_gns_DEPENDENCIES = \
291 gnunet_dns2gns_SOURCES = \
293 gnunet_dns2gns_LDADD = \
294 $(top_builddir)/src/gns/libgnunetgns.la \
295 $(top_builddir)/src/util/libgnunetutil.la \
296 $(top_builddir)/src/namestore/libgnunetnamestore.la \
297 $(top_builddir)/src/dns/libgnunetdnsparser.la \
299 gnunet_dns2gns_DEPENDENCIES = \
302 gnunet_gns_proxy_SOURCES = \
303 gnunet-gns-proxy.c gns_proxy_proto.h
304 gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
305 $(top_builddir)/src/gns/libgnunetgns.la \
306 $(top_builddir)/src/util/libgnunetutil.la \
308 gnunet_gns_proxy_DEPENDENCIES = \
311 gnunet_gns_helper_service_w32_SOURCES = \
312 gnunet-gns-helper-service-w32.c
313 gnunet_gns_helper_service_w32_LDADD = \
314 $(top_builddir)/src/gns/libgnunetgns.la \
315 $(top_builddir)/src/util/libgnunetutil.la \
317 gnunet_gns_helper_service_w32_DEPENDENCIES = \
320 w32nsp_install_SOURCES = \
322 w32nsp_install_LDADD = -lws2_32
324 w32nsp_uninstall_SOURCES = \
326 w32nsp_uninstall_LDADD = -lws2_32
328 w32nsp_resolve_SOURCES = \
330 w32nsp_resolve_LDADD = -lws2_32
332 gnunet_service_gns_SOURCES = \
333 gnunet-service-gns.c \
334 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
335 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
336 gnunet_service_gns_LDADD = \
338 $(top_builddir)/src/statistics/libgnunetstatistics.la \
339 $(top_builddir)/src/util/libgnunetutil.la \
340 $(top_builddir)/src/dns/libgnunetdns.la \
341 $(top_builddir)/src/dns/libgnunetdnsparser.la \
342 $(top_builddir)/src/dht/libgnunetdht.la \
343 $(top_builddir)/src/namestore/libgnunetnamestore.la \
344 $(top_builddir)/src/vpn/libgnunetvpn.la \
346 gnunet_service_gns_DEPENDENCIES = \
347 $(top_builddir)/src/statistics/libgnunetstatistics.la \
348 $(top_builddir)/src/util/libgnunetutil.la \
349 $(top_builddir)/src/dns/libgnunetdns.la \
350 $(top_builddir)/src/dns/libgnunetdnsparser.la \
351 $(top_builddir)/src/dht/libgnunetdht.la \
352 $(top_builddir)/src/namestore/libgnunetnamestore.la \
353 $(top_builddir)/src/vpn/libgnunetvpn.la
356 gnunet_gns_fcfsd_SOURCES = \
358 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
359 $(top_builddir)/src/util/libgnunetutil.la \
360 $(top_builddir)/src/namestore/libgnunetnamestore.la \
362 gnunet_gns_fcfsd_DEPENDENCIES = \
363 $(top_builddir)/src/util/libgnunetutil.la \
364 $(top_builddir)/src/namestore/libgnunetnamestore.la
366 libw32nsp_la_SOURCES = \
368 libw32nsp_la_LIBADD = \
370 libw32nsp_la_LDFLAGS = \
371 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
374 libgnunetgns_la_SOURCES = \
376 libgnunetgns_la_LIBADD = \
377 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
378 $(top_builddir)/src/namestore/libgnunetnamestore.la
379 libgnunetgns_la_LDFLAGS = \
381 libgnunetgns_la_DEPENDENCIES = \
382 $(top_builddir)/src/util/libgnunetutil.la \
383 $(top_builddir)/src/namestore/libgnunetnamestore.la
385 libgnunet_plugin_block_gns_la_SOURCES = \
387 libgnunet_plugin_block_gns_la_LIBADD = \
388 $(top_builddir)/src/util/libgnunetutil.la \
389 $(top_builddir)/src/block/libgnunetblock.la \
390 $(top_builddir)/src/namestore/libgnunetnamestore.la
391 libgnunet_plugin_block_gns_la_LDFLAGS = \
393 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
394 $(top_builddir)/src/util/libgnunetutil.la \
395 $(top_builddir)/src/block/libgnunetblock.la \
396 $(top_builddir)/src/namestore/libgnunetnamestore.la
399 #libgnunetnamestore_la_SOURCES = \
400 # namestore_stub_api.c
401 #libgnunetnamestore_la_LIBADD = \
402 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
403 #libgnunetnamestore_la_LDFLAGS = \
405 #libgnunetnamestore_la_DEPENDENCIES = \
406 # $(top_builddir)/src/util/libgnunetutil.la
410 TESTS = $(check_PROGRAMS)
415 test_gns_defaults.conf \
416 test_gns_simple_lookup.conf \
417 test_gns_dht_default.conf \
418 zonefiles/188JSUMKEF25GVU8TTV0PBNNN8JVCPUEDFV1UHJJU884JD25V0T0.zkey \
419 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
420 zonefiles/test_zonekey