-removing test for dead functionality
[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/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.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_lookup \
215   test_gns_simple_delegated_lookup \
216   test_gns_simple_mx_lookup \
217   test_gns_simple_srv_lookup \
218   test_gns_simple_zkey_lookup \
219   test_gns_dht_delegated_lookup \
220   test_gns_pseu_shorten \
221   test_gns_max_queries \
222   test_gns_cname_lookup \
223   test_gns_ns_lookup \
224   test_gns_revocation \
225   test_gns_dht_three_peers
226  #test_gns_proxy
227 endif
228
229 if ENABLE_TEST_RUN
230 if LINUX
231 if HAVE_SQLITE
232 TESTS = $(check_PROGRAMS)
233 endif
234 endif
235 endif
236
237
238 #test_gns_proxy_SOURCES = \
239 #  test_gns_proxy.c
240 #test_gns_proxy_LDADD = -lmicrohttpd @LIBCURL@ \
241 #  $(top_builddir)/src/util/libgnunetutil.la \
242 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
243 #  $(top_builddir)/src/gns/libgnunetgns.la \
244 #  $(top_builddir)/src/testing/libgnunettesting.la
245 #test_gns_proxy_DEPENDENCIES = \
246 #  $(top_builddir)/src/util/libgnunetutil.la \
247 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
248 #  libgnunetgns.la \
249 #  $(top_builddir)/src/testing/libgnunettesting.la
250
251 test_gns_dht_three_peers_SOURCES = \
252   test_gns_dht_three_peers.c
253 test_gns_dht_three_peers_LDADD = \
254   $(top_builddir)/src/util/libgnunetutil.la \
255   $(top_builddir)/src/namestore/libgnunetnamestore.la \
256   $(top_builddir)/src/gns/libgnunetgns.la \
257   $(top_builddir)/src/testing/libgnunettesting.la \
258   $(top_builddir)/src/testbed/libgnunettestbed.la
259 test_gns_dht_three_peers_DEPENDENCIES = \
260   $(top_builddir)/src/util/libgnunetutil.la \
261   $(top_builddir)/src/namestore/libgnunetnamestore.la \
262   libgnunetgns.la \
263   $(top_builddir)/src/testing/libgnunettesting.la \
264   $(top_builddir)/src/testbed/libgnunettestbed.la
265
266 test_gns_simple_lookup_SOURCES = \
267   test_gns_simple_lookup.c
268 test_gns_simple_lookup_LDADD = \
269   $(top_builddir)/src/util/libgnunetutil.la \
270   $(top_builddir)/src/namestore/libgnunetnamestore.la \
271   $(top_builddir)/src/gns/libgnunetgns.la \
272   $(top_builddir)/src/testing/libgnunettesting.la
273 test_gns_simple_lookup_DEPENDENCIES = \
274   $(top_builddir)/src/util/libgnunetutil.la \
275   $(top_builddir)/src/namestore/libgnunetnamestore.la \
276   libgnunetgns.la \
277   $(top_builddir)/src/testing/libgnunettesting.la
278
279 test_gns_simple_delegated_lookup_SOURCES = \
280   test_gns_simple_delegated_lookup.c
281 test_gns_simple_delegated_lookup_LDADD = \
282   $(top_builddir)/src/util/libgnunetutil.la \
283   $(top_builddir)/src/namestore/libgnunetnamestore.la \
284   $(top_builddir)/src/gns/libgnunetgns.la \
285   $(top_builddir)/src/testing/libgnunettesting.la
286 test_gns_simple_delegated_lookup_DEPENDENCIES = \
287   $(top_builddir)/src/util/libgnunetutil.la \
288   $(top_builddir)/src/namestore/libgnunetnamestore.la \
289   libgnunetgns.la \
290   $(top_builddir)/src/testing/libgnunettesting.la
291
292 test_gns_simple_mx_lookup_SOURCES = \
293   test_gns_simple_mx_lookup.c
294 test_gns_simple_mx_lookup_LDADD = \
295   $(top_builddir)/src/util/libgnunetutil.la \
296   $(top_builddir)/src/namestore/libgnunetnamestore.la \
297   $(top_builddir)/src/gns/libgnunetgns.la \
298   $(top_builddir)/src/testing/libgnunettesting.la
299 test_gns_simple_mx_lookup_DEPENDENCIES = \
300   $(top_builddir)/src/util/libgnunetutil.la \
301   $(top_builddir)/src/namestore/libgnunetnamestore.la \
302   libgnunetgns.la \
303   $(top_builddir)/src/testing/libgnunettesting.la
304
305 test_gns_simple_srv_lookup_SOURCES = \
306   test_gns_simple_srv_lookup.c
307 test_gns_simple_srv_lookup_LDADD = \
308   $(top_builddir)/src/util/libgnunetutil.la \
309   $(top_builddir)/src/namestore/libgnunetnamestore.la \
310   $(top_builddir)/src/gns/libgnunetgns.la \
311   $(top_builddir)/src/testing/libgnunettesting.la
312 test_gns_simple_srv_lookup_DEPENDENCIES = \
313   $(top_builddir)/src/util/libgnunetutil.la \
314   $(top_builddir)/src/namestore/libgnunetnamestore.la \
315   libgnunetgns.la \
316   $(top_builddir)/src/testing/libgnunettesting.la
317
318 test_gns_simple_zkey_lookup_SOURCES = \
319   test_gns_simple_zkey_lookup.c
320 test_gns_simple_zkey_lookup_LDADD = \
321   $(top_builddir)/src/util/libgnunetutil.la \
322   $(top_builddir)/src/namestore/libgnunetnamestore.la \
323   $(top_builddir)/src/gns/libgnunetgns.la \
324   $(top_builddir)/src/testing/libgnunettesting.la
325 test_gns_simple_zkey_lookup_DEPENDENCIES = \
326   $(top_builddir)/src/util/libgnunetutil.la \
327   $(top_builddir)/src/namestore/libgnunetnamestore.la \
328   libgnunetgns.la \
329   $(top_builddir)/src/testing/libgnunettesting.la
330
331 test_gns_dht_delegated_lookup_SOURCES = \
332   test_gns_dht_delegated_lookup.c
333 test_gns_dht_delegated_lookup_LDADD = \
334   $(top_builddir)/src/util/libgnunetutil.la \
335   $(top_builddir)/src/namestore/libgnunetnamestore.la \
336   $(top_builddir)/src/dht/libgnunetdht.la \
337   $(top_builddir)/src/gns/libgnunetgns.la \
338   $(top_builddir)/src/testing/libgnunettesting.la
339 test_gns_dht_delegated_lookup_DEPENDENCIES = \
340   $(top_builddir)/src/util/libgnunetutil.la \
341   $(top_builddir)/src/namestore/libgnunetnamestore.la \
342   $(top_builddir)/src/dht/libgnunetdht.la \
343   libgnunetgns.la \
344   $(top_builddir)/src/testing/libgnunettesting.la
345
346 test_gns_simple_shorten_SOURCES = \
347   test_gns_simple_shorten.c
348 test_gns_simple_shorten_LDADD = \
349   $(top_builddir)/src/util/libgnunetutil.la \
350   $(top_builddir)/src/namestore/libgnunetnamestore.la \
351   $(top_builddir)/src/gns/libgnunetgns.la \
352   $(top_builddir)/src/testing/libgnunettesting.la
353 test_gns_simple_shorten_DEPENDENCIES = \
354   $(top_builddir)/src/util/libgnunetutil.la \
355   $(top_builddir)/src/namestore/libgnunetnamestore.la \
356   libgnunetgns.la \
357   $(top_builddir)/src/testing/libgnunettesting.la
358
359
360 test_gns_pseu_shorten_SOURCES = \
361   test_gns_pseu_shorten.c
362 test_gns_pseu_shorten_LDADD = \
363   $(top_builddir)/src/util/libgnunetutil.la \
364   $(top_builddir)/src/namestore/libgnunetnamestore.la \
365   $(top_builddir)/src/dht/libgnunetdht.la \
366   $(top_builddir)/src/gns/libgnunetgns.la \
367   $(top_builddir)/src/testing/libgnunettesting.la
368 test_gns_pseu_shorten_DEPENDENCIES = \
369   $(top_builddir)/src/util/libgnunetutil.la \
370   $(top_builddir)/src/namestore/libgnunetnamestore.la \
371   $(top_builddir)/src/dht/libgnunetdht.la \
372   libgnunetgns.la \
373   $(top_builddir)/src/testing/libgnunettesting.la
374
375
376 test_gns_max_queries_SOURCES = \
377   test_gns_max_queries.c
378 test_gns_max_queries_LDADD = \
379   $(top_builddir)/src/util/libgnunetutil.la \
380   $(top_builddir)/src/namestore/libgnunetnamestore.la \
381   $(top_builddir)/src/gns/libgnunetgns.la \
382   $(top_builddir)/src/testing/libgnunettesting.la
383 test_gns_max_queries_DEPENDENCIES = \
384   $(top_builddir)/src/util/libgnunetutil.la \
385   $(top_builddir)/src/namestore/libgnunetnamestore.la \
386   libgnunetgns.la \
387   $(top_builddir)/src/testing/libgnunettesting.la
388
389 test_gns_cname_lookup_SOURCES = \
390   test_gns_cname_lookup.c
391 test_gns_cname_lookup_LDADD = \
392   $(top_builddir)/src/util/libgnunetutil.la \
393   $(top_builddir)/src/namestore/libgnunetnamestore.la \
394   $(top_builddir)/src/gns/libgnunetgns.la \
395   $(top_builddir)/src/testing/libgnunettesting.la
396 test_gns_cname_lookup_DEPENDENCIES = \
397   $(top_builddir)/src/util/libgnunetutil.la \
398   $(top_builddir)/src/namestore/libgnunetnamestore.la \
399   libgnunetgns.la \
400   $(top_builddir)/src/testing/libgnunettesting.la
401
402
403 test_gns_ns_lookup_SOURCES = \
404   test_gns_ns_lookup.c
405 test_gns_ns_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_ns_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_revocation_SOURCES = \
418   test_gns_revocation.c
419 test_gns_revocation_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_revocation_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
432 #Build stub api
433 #libgnunetnamestore_la_SOURCES = \
434 # namestore_stub_api.c
435 #libgnunetnamestore_la_LIBADD = \
436 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
437 #libgnunetnamestore_la_LDFLAGS = \
438 #  $(GN_LIB_LDFLAGS)
439 #libgnunetnamestore_la_DEPENDENCIES = \
440 # $(top_builddir)/src/util/libgnunetutil.la
441
442
443