-use valid ECC keys for testing
[oweals/gnunet.git] / src / gns / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if HAVE_GLIBCNSS
4 NSS_SUBDIR = nss
5 endif
6
7 SUBDIRS = . $(NSS_SUBDIR)
8
9 EXTRA_DIST = \
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/188JSUMKEF25GVU8TTV0PBNNN8JVCPUEDFV1UHJJU884JD25V0T0.zkey \
16   zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
17   zonefiles/test_zonekey
18
19 if MINGW
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
25 else
26   USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
27 endif
28
29 if USE_COVERAGE
30   AM_CFLAGS = --coverage -O0
31 endif
32
33 pkgcfgdir = $(pkgdatadir)/config.d/
34
35 libexecdir= $(pkglibdir)/libexec/
36
37 plugindir = $(libdir)/gnunet
38
39 pkgcfg_DATA = \
40   gns.conf \
41   $(DO_W32_HS_CONF)
42
43 lib_LTLIBRARIES = \
44   $(DO_W32_NSP) \
45   libgnunetgns.la \
46   libgnunetgns_common.la
47
48
49 if HAVE_MHD
50  DO_FCFSD=gnunet-gns-fcfsd
51 if HAVE_GNUTLS
52 if HAVE_LIBCURL
53  DO_PROXY=gnunet-gns-proxy
54 endif
55 endif
56 endif
57
58 libexec_PROGRAMS = \
59   gnunet-service-gns $(DO_FCFSD) \
60   $(DO_PROXY) \
61   $(DO_W32_HELPER) \
62   gnunet-dns2gns
63
64 bin_PROGRAMS = \
65   $(DO_W32_NSPTOOLS) \
66   gnunet-gns 
67
68 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
69
70 plugin_LTLIBRARIES = \
71   libgnunet_plugin_block_gns.la
72
73 gnunet_gns_SOURCES = \
74  gnunet-gns.c
75 gnunet_gns_LDADD = \
76   $(top_builddir)/src/gns/libgnunetgns.la \
77   $(top_builddir)/src/util/libgnunetutil.la \
78   $(top_builddir)/src/namestore/libgnunetnamestore.la \
79   $(GN_LIBINTL)
80 gnunet_gns_DEPENDENCIES = \
81   libgnunetgns.la
82
83 gnunet_dns2gns_SOURCES = \
84  gnunet-dns2gns.c
85 gnunet_dns2gns_LDADD = \
86   $(top_builddir)/src/gns/libgnunetgns.la \
87   $(top_builddir)/src/util/libgnunetutil.la \
88   $(top_builddir)/src/namestore/libgnunetnamestore.la \
89   $(top_builddir)/src/dns/libgnunetdnsparser.la \
90   $(top_builddir)/src/dns/libgnunetdnsstub.la \
91   $(GN_LIBINTL)
92 gnunet_dns2gns_DEPENDENCIES = \
93   $(top_builddir)/src/util/libgnunetutil.la \
94   $(top_builddir)/src/namestore/libgnunetnamestore.la \
95   $(top_builddir)/src/dns/libgnunetdnsparser.la \
96   $(top_builddir)/src/dns/libgnunetdnsstub.la \
97   libgnunetgns.la
98
99 gnunet_gns_proxy_SOURCES = \
100  gnunet-gns-proxy.c gns_proxy_proto.h 
101 gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
102   $(top_builddir)/src/gns/libgnunetgns.la \
103   $(top_builddir)/src/util/libgnunetutil.la \
104   $(GN_LIBINTL)
105 gnunet_gns_proxy_DEPENDENCIES = \
106   libgnunetgns.la
107
108 gnunet_gns_helper_service_w32_SOURCES = \
109   gnunet-gns-helper-service-w32.c
110 gnunet_gns_helper_service_w32_LDADD = \
111   $(top_builddir)/src/gns/libgnunetgns.la \
112   $(top_builddir)/src/util/libgnunetutil.la \
113   $(GN_LIBINTL)
114 gnunet_gns_helper_service_w32_DEPENDENCIES = \
115   libgnunetgns.la
116
117 w32nsp_install_SOURCES = \
118   w32nsp-install.c
119 w32nsp_install_LDADD = -lws2_32
120
121 w32nsp_uninstall_SOURCES = \
122   w32nsp-uninstall.c
123 w32nsp_uninstall_LDADD = -lws2_32
124
125 w32nsp_resolve_SOURCES = \
126   w32nsp-resolve.c
127 w32nsp_resolve_LDADD = -lws2_32
128
129 gnunet_service_gns_SOURCES = \
130  gnunet-service-gns.c \
131  gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
132  gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h 
133 gnunet_service_gns_LDADD = \
134   -lm \
135   $(top_builddir)/src/statistics/libgnunetstatistics.la \
136   $(top_builddir)/src/util/libgnunetutil.la \
137   libgnunetgns_common.la \
138   $(top_builddir)/src/dns/libgnunetdns.la \
139   $(top_builddir)/src/dns/libgnunetdnsparser.la \
140   $(top_builddir)/src/dht/libgnunetdht.la \
141   $(top_builddir)/src/namestore/libgnunetnamestore.la \
142   $(USE_VPN) \
143   $(GN_LIBINTL)
144 gnunet_service_gns_DEPENDENCIES = \
145   $(top_builddir)/src/statistics/libgnunetstatistics.la \
146   $(top_builddir)/src/util/libgnunetutil.la \
147   libgnunetgns_common.la \
148   $(top_builddir)/src/dns/libgnunetdns.la \
149   $(top_builddir)/src/dns/libgnunetdnsparser.la \
150   $(top_builddir)/src/dht/libgnunetdht.la \
151   $(top_builddir)/src/namestore/libgnunetnamestore.la \
152   $(USE_VPN)
153
154
155
156 gnunet_gns_fcfsd_SOURCES = \
157  gnunet-gns-fcfsd.c 
158 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
159   $(top_builddir)/src/util/libgnunetutil.la \
160   $(top_builddir)/src/namestore/libgnunetnamestore.la \
161   $(GN_LIBINTL)
162 gnunet_gns_fcfsd_DEPENDENCIES = \
163   $(top_builddir)/src/util/libgnunetutil.la \
164   $(top_builddir)/src/namestore/libgnunetnamestore.la
165
166 libw32nsp_la_SOURCES = \
167   w32nsp.c
168 libw32nsp_la_LIBADD = \
169   -lole32 -lws2_32
170 libw32nsp_la_LDFLAGS = \
171   -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
172   $(GN_LIB_LDFLAGS)
173
174 libgnunetgns_la_SOURCES = \
175  gns_api.c gns.h
176 libgnunetgns_la_LIBADD = \
177  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
178  $(top_builddir)/src/namestore/libgnunetnamestore.la
179 libgnunetgns_la_LDFLAGS = \
180   $(GN_LIB_LDFLAGS)
181 libgnunetgns_la_DEPENDENCIES = \
182  $(top_builddir)/src/util/libgnunetutil.la \
183  $(top_builddir)/src/namestore/libgnunetnamestore.la
184
185
186 libgnunetgns_common_la_SOURCES = \
187  gns_common.c gns_common.h
188 libgnunetgns_common_la_LDFLAGS = \
189   $(GN_LIB_LDFLAGS)
190 libgnunetgns_common_la_LIBADD = \
191  $(top_builddir)/src/util/libgnunetutil.la 
192 libgnunetgns_common_la_DEPENDENCIES = \
193  $(top_builddir)/src/util/libgnunetutil.la 
194
195
196 libgnunet_plugin_block_gns_la_SOURCES = \
197   plugin_block_gns.c
198 libgnunet_plugin_block_gns_la_LIBADD = \
199   $(top_builddir)/src/util/libgnunetutil.la \
200   $(top_builddir)/src/block/libgnunetblock.la \
201   $(top_builddir)/src/gns/libgnunetgns_common.la \
202   $(top_builddir)/src/namestore/libgnunetnamestore.la
203 libgnunet_plugin_block_gns_la_LDFLAGS = \
204   $(GN_PLUGIN_LDFLAGS)
205 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
206   $(top_builddir)/src/util/libgnunetutil.la \
207   libgnunetgns_common.la \
208   $(top_builddir)/src/block/libgnunetblock.la \
209   $(top_builddir)/src/namestore/libgnunetnamestore.la
210
211 if HAVE_TESTING
212 check_PROGRAMS = \
213   test_gns_simple_shorten \
214   test_gns_simple_get_authority \
215   test_gns_simple_lookup \
216   test_gns_simple_delegated_lookup \
217   test_gns_simple_mx_lookup \
218   test_gns_simple_srv_lookup \
219   test_gns_simple_zkey_lookup \
220   test_gns_dht_delegated_lookup \
221   test_gns_pseu_shorten \
222   test_gns_max_queries \
223   test_gns_cname_lookup \
224   test_gns_ns_lookup \
225   test_gns_revocation \
226   test_gns_dht_three_peers
227  #test_gns_proxy
228 endif
229
230 if ENABLE_TEST_RUN
231 if LINUX
232 if HAVE_SQLITE
233 TESTS = $(check_PROGRAMS)
234 endif
235 endif
236 endif
237
238
239 #test_gns_proxy_SOURCES = \
240 #  test_gns_proxy.c
241 #test_gns_proxy_LDADD = -lmicrohttpd @LIBCURL@ \
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/libgnunettesting.la
246 #test_gns_proxy_DEPENDENCIES = \
247 #  $(top_builddir)/src/util/libgnunetutil.la \
248 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
249 #  libgnunetgns.la \
250 #  $(top_builddir)/src/testing/libgnunettesting.la
251
252 test_gns_dht_three_peers_SOURCES = \
253   test_gns_dht_three_peers.c
254 test_gns_dht_three_peers_LDADD = \
255   $(top_builddir)/src/util/libgnunetutil.la \
256   $(top_builddir)/src/namestore/libgnunetnamestore.la \
257   $(top_builddir)/src/gns/libgnunetgns.la \
258   $(top_builddir)/src/testing/libgnunettesting.la \
259   $(top_builddir)/src/testbed/libgnunettestbed.la
260 test_gns_dht_three_peers_DEPENDENCIES = \
261   $(top_builddir)/src/util/libgnunetutil.la \
262   $(top_builddir)/src/namestore/libgnunetnamestore.la \
263   libgnunetgns.la \
264   $(top_builddir)/src/testing/libgnunettesting.la \
265   $(top_builddir)/src/testbed/libgnunettestbed.la
266
267 test_gns_simple_lookup_SOURCES = \
268   test_gns_simple_lookup.c
269 test_gns_simple_lookup_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/libgnunettesting.la
274 test_gns_simple_lookup_DEPENDENCIES = \
275   $(top_builddir)/src/util/libgnunetutil.la \
276   $(top_builddir)/src/namestore/libgnunetnamestore.la \
277   libgnunetgns.la \
278   $(top_builddir)/src/testing/libgnunettesting.la
279
280 test_gns_simple_delegated_lookup_SOURCES = \
281   test_gns_simple_delegated_lookup.c
282 test_gns_simple_delegated_lookup_LDADD = \
283   $(top_builddir)/src/util/libgnunetutil.la \
284   $(top_builddir)/src/namestore/libgnunetnamestore.la \
285   $(top_builddir)/src/gns/libgnunetgns.la \
286   $(top_builddir)/src/testing/libgnunettesting.la
287 test_gns_simple_delegated_lookup_DEPENDENCIES = \
288   $(top_builddir)/src/util/libgnunetutil.la \
289   $(top_builddir)/src/namestore/libgnunetnamestore.la \
290   libgnunetgns.la \
291   $(top_builddir)/src/testing/libgnunettesting.la
292
293 test_gns_simple_mx_lookup_SOURCES = \
294   test_gns_simple_mx_lookup.c
295 test_gns_simple_mx_lookup_LDADD = \
296   $(top_builddir)/src/util/libgnunetutil.la \
297   $(top_builddir)/src/namestore/libgnunetnamestore.la \
298   $(top_builddir)/src/gns/libgnunetgns.la \
299   $(top_builddir)/src/testing/libgnunettesting.la
300 test_gns_simple_mx_lookup_DEPENDENCIES = \
301   $(top_builddir)/src/util/libgnunetutil.la \
302   $(top_builddir)/src/namestore/libgnunetnamestore.la \
303   libgnunetgns.la \
304   $(top_builddir)/src/testing/libgnunettesting.la
305
306 test_gns_simple_srv_lookup_SOURCES = \
307   test_gns_simple_srv_lookup.c
308 test_gns_simple_srv_lookup_LDADD = \
309   $(top_builddir)/src/util/libgnunetutil.la \
310   $(top_builddir)/src/namestore/libgnunetnamestore.la \
311   $(top_builddir)/src/gns/libgnunetgns.la \
312   $(top_builddir)/src/testing/libgnunettesting.la
313 test_gns_simple_srv_lookup_DEPENDENCIES = \
314   $(top_builddir)/src/util/libgnunetutil.la \
315   $(top_builddir)/src/namestore/libgnunetnamestore.la \
316   libgnunetgns.la \
317   $(top_builddir)/src/testing/libgnunettesting.la
318
319 test_gns_simple_zkey_lookup_SOURCES = \
320   test_gns_simple_zkey_lookup.c
321 test_gns_simple_zkey_lookup_LDADD = \
322   $(top_builddir)/src/util/libgnunetutil.la \
323   $(top_builddir)/src/namestore/libgnunetnamestore.la \
324   $(top_builddir)/src/gns/libgnunetgns.la \
325   $(top_builddir)/src/testing/libgnunettesting.la
326 test_gns_simple_zkey_lookup_DEPENDENCIES = \
327   $(top_builddir)/src/util/libgnunetutil.la \
328   $(top_builddir)/src/namestore/libgnunetnamestore.la \
329   libgnunetgns.la \
330   $(top_builddir)/src/testing/libgnunettesting.la
331
332 test_gns_dht_delegated_lookup_SOURCES = \
333   test_gns_dht_delegated_lookup.c
334 test_gns_dht_delegated_lookup_LDADD = \
335   $(top_builddir)/src/util/libgnunetutil.la \
336   $(top_builddir)/src/namestore/libgnunetnamestore.la \
337   $(top_builddir)/src/dht/libgnunetdht.la \
338   $(top_builddir)/src/gns/libgnunetgns.la \
339   $(top_builddir)/src/testing/libgnunettesting.la
340 test_gns_dht_delegated_lookup_DEPENDENCIES = \
341   $(top_builddir)/src/util/libgnunetutil.la \
342   $(top_builddir)/src/namestore/libgnunetnamestore.la \
343   $(top_builddir)/src/dht/libgnunetdht.la \
344   libgnunetgns.la \
345   $(top_builddir)/src/testing/libgnunettesting.la
346
347 test_gns_simple_shorten_SOURCES = \
348   test_gns_simple_shorten.c
349 test_gns_simple_shorten_LDADD = \
350   $(top_builddir)/src/util/libgnunetutil.la \
351   $(top_builddir)/src/namestore/libgnunetnamestore.la \
352   $(top_builddir)/src/gns/libgnunetgns.la \
353   $(top_builddir)/src/testing/libgnunettesting.la
354 test_gns_simple_shorten_DEPENDENCIES = \
355   $(top_builddir)/src/util/libgnunetutil.la \
356   $(top_builddir)/src/namestore/libgnunetnamestore.la \
357   libgnunetgns.la \
358   $(top_builddir)/src/testing/libgnunettesting.la
359
360 test_gns_simple_get_authority_SOURCES = \
361   test_gns_simple_get_authority.c
362 test_gns_simple_get_authority_LDADD = \
363   $(top_builddir)/src/util/libgnunetutil.la \
364   $(top_builddir)/src/namestore/libgnunetnamestore.la \
365   $(top_builddir)/src/gns/libgnunetgns.la \
366   $(top_builddir)/src/testing/libgnunettesting.la
367 test_gns_simple_get_authority_DEPENDENCIES = \
368   $(top_builddir)/src/util/libgnunetutil.la \
369   $(top_builddir)/src/namestore/libgnunetnamestore.la \
370   libgnunetgns.la \
371   $(top_builddir)/src/testing/libgnunettesting.la
372
373
374 test_gns_pseu_shorten_SOURCES = \
375   test_gns_pseu_shorten.c
376 test_gns_pseu_shorten_LDADD = \
377   $(top_builddir)/src/util/libgnunetutil.la \
378   $(top_builddir)/src/namestore/libgnunetnamestore.la \
379   $(top_builddir)/src/dht/libgnunetdht.la \
380   $(top_builddir)/src/gns/libgnunetgns.la \
381   $(top_builddir)/src/testing/libgnunettesting.la
382 test_gns_pseu_shorten_DEPENDENCIES = \
383   $(top_builddir)/src/util/libgnunetutil.la \
384   $(top_builddir)/src/namestore/libgnunetnamestore.la \
385   $(top_builddir)/src/dht/libgnunetdht.la \
386   libgnunetgns.la \
387   $(top_builddir)/src/testing/libgnunettesting.la
388
389
390 test_gns_max_queries_SOURCES = \
391   test_gns_max_queries.c
392 test_gns_max_queries_LDADD = \
393   $(top_builddir)/src/util/libgnunetutil.la \
394   $(top_builddir)/src/namestore/libgnunetnamestore.la \
395   $(top_builddir)/src/gns/libgnunetgns.la \
396   $(top_builddir)/src/testing/libgnunettesting.la
397 test_gns_max_queries_DEPENDENCIES = \
398   $(top_builddir)/src/util/libgnunetutil.la \
399   $(top_builddir)/src/namestore/libgnunetnamestore.la \
400   libgnunetgns.la \
401   $(top_builddir)/src/testing/libgnunettesting.la
402
403 test_gns_cname_lookup_SOURCES = \
404   test_gns_cname_lookup.c
405 test_gns_cname_lookup_LDADD = \
406   $(top_builddir)/src/util/libgnunetutil.la \
407   $(top_builddir)/src/namestore/libgnunetnamestore.la \
408   $(top_builddir)/src/gns/libgnunetgns.la \
409   $(top_builddir)/src/testing/libgnunettesting.la
410 test_gns_cname_lookup_DEPENDENCIES = \
411   $(top_builddir)/src/util/libgnunetutil.la \
412   $(top_builddir)/src/namestore/libgnunetnamestore.la \
413   libgnunetgns.la \
414   $(top_builddir)/src/testing/libgnunettesting.la
415
416
417 test_gns_ns_lookup_SOURCES = \
418   test_gns_ns_lookup.c
419 test_gns_ns_lookup_LDADD = \
420   $(top_builddir)/src/util/libgnunetutil.la \
421   $(top_builddir)/src/namestore/libgnunetnamestore.la \
422   $(top_builddir)/src/gns/libgnunetgns.la \
423   $(top_builddir)/src/testing/libgnunettesting.la
424 test_gns_ns_lookup_DEPENDENCIES = \
425   $(top_builddir)/src/util/libgnunetutil.la \
426   $(top_builddir)/src/namestore/libgnunetnamestore.la \
427   libgnunetgns.la \
428   $(top_builddir)/src/testing/libgnunettesting.la
429
430
431 test_gns_revocation_SOURCES = \
432   test_gns_revocation.c
433 test_gns_revocation_LDADD = \
434   $(top_builddir)/src/util/libgnunetutil.la \
435   $(top_builddir)/src/namestore/libgnunetnamestore.la \
436   $(top_builddir)/src/gns/libgnunetgns.la \
437   $(top_builddir)/src/testing/libgnunettesting.la
438 test_gns_revocation_DEPENDENCIES = \
439   $(top_builddir)/src/util/libgnunetutil.la \
440   $(top_builddir)/src/namestore/libgnunetnamestore.la \
441   libgnunetgns.la \
442   $(top_builddir)/src/testing/libgnunettesting.la
443
444
445
446 #Build stub api
447 #libgnunetnamestore_la_SOURCES = \
448 # namestore_stub_api.c
449 #libgnunetnamestore_la_LIBADD = \
450 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
451 #libgnunetnamestore_la_LDFLAGS = \
452 #  $(GN_LIB_LDFLAGS)
453 #libgnunetnamestore_la_DEPENDENCIES = \
454 # $(top_builddir)/src/util/libgnunetutil.la
455
456
457