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