-zone revocation
[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 if MINGW
10   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
11 endif
12
13 if USE_COVERAGE
14   AM_CFLAGS = --coverage -O0
15 endif
16
17 pkgcfgdir= $(pkgdatadir)/config.d/
18
19 plugindir = $(libdir)/gnunet
20
21 pkgcfg_DATA = \
22   gns.conf
23
24 lib_LTLIBRARIES = \
25   libgnunetgns.la
26
27 if HAVE_MHD
28  DO_FCFSD=gnunet-gns-fcfsd
29 if HAVE_GNUTLS
30  DO_PROXY=gnunet-gns-proxy
31 endif
32 endif
33
34 bin_PROGRAMS = \
35   gnunet-service-gns \
36   $(DO_FCFSD) \
37         $(DO_PROXY) \
38   gnunet-gns
39
40 bin_SCRIPTS=gnunet-gns-proxy-setup-ca
41
42 check_PROGRAMS = \
43   test_gns_simple_shorten \
44   test_gns_simple_get_authority \
45   test_gns_simple_lookup \
46   test_gns_simple_delegated_lookup \
47   test_gns_simple_mx_lookup \
48   test_gns_simple_zkey_lookup \
49   test_gns_dht_delegated_lookup \
50   test_gns_pseu_shorten \
51   test_gns_max_queries \
52   test_gns_dht_threepeer \
53         test_gns_cname_lookup \
54         test_gns_ns_lookup \
55         test_gns_revocation
56
57
58 #  test_gns_simple_lookup
59 #  test_gns_simple_delegated_lookup
60 #  test_gns_dht_delegated_lookup
61
62
63 plugin_LTLIBRARIES = \
64   libgnunet_plugin_block_gns.la
65
66 test_gns_dht_threepeer_SOURCES = \
67   test_gns_dht_threepeer.c
68 test_gns_dht_threepeer_LDADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(top_builddir)/src/namestore/libgnunetnamestore.la \
71   $(top_builddir)/src/gns/libgnunetgns.la \
72   $(top_builddir)/src/testing_old/libgnunettesting_old.la
73 test_gns_dht_threepeer_DEPENDENCIES = \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/namestore/libgnunetnamestore.la \
76   $(top_builddir)/src/gns/libgnunetgns.la \
77   $(top_builddir)/src/testing_old/libgnunettesting_old.la
78
79 test_gns_simple_lookup_SOURCES = \
80   test_gns_simple_lookup.c
81 test_gns_simple_lookup_LDADD = \
82   $(top_builddir)/src/util/libgnunetutil.la \
83   $(top_builddir)/src/namestore/libgnunetnamestore.la \
84   $(top_builddir)/src/gns/libgnunetgns.la \
85   $(top_builddir)/src/testing_old/libgnunettesting_old.la
86 test_gns_simple_lookup_DEPENDENCIES = \
87   $(top_builddir)/src/util/libgnunetutil.la \
88   $(top_builddir)/src/namestore/libgnunetnamestore.la \
89   $(top_builddir)/src/gns/libgnunetgns.la \
90   $(top_builddir)/src/testing_old/libgnunettesting_old.la
91
92 test_gns_simple_delegated_lookup_SOURCES = \
93   test_gns_simple_delegated_lookup.c
94 test_gns_simple_delegated_lookup_LDADD = \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   $(top_builddir)/src/namestore/libgnunetnamestore.la \
97   $(top_builddir)/src/gns/libgnunetgns.la \
98   $(top_builddir)/src/testing_old/libgnunettesting_old.la
99 test_gns_simple_delegated_lookup_DEPENDENCIES = \
100   $(top_builddir)/src/util/libgnunetutil.la \
101   $(top_builddir)/src/namestore/libgnunetnamestore.la \
102   $(top_builddir)/src/gns/libgnunetgns.la \
103   $(top_builddir)/src/testing_old/libgnunettesting_old.la
104
105 test_gns_simple_mx_lookup_SOURCES = \
106   test_gns_simple_mx_lookup.c
107 test_gns_simple_mx_lookup_LDADD = \
108   $(top_builddir)/src/util/libgnunetutil.la \
109   $(top_builddir)/src/namestore/libgnunetnamestore.la \
110   $(top_builddir)/src/gns/libgnunetgns.la \
111   $(top_builddir)/src/testing_old/libgnunettesting_old.la
112 test_gns_simple_mx_lookup_DEPENDENCIES = \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   $(top_builddir)/src/namestore/libgnunetnamestore.la \
115   $(top_builddir)/src/gns/libgnunetgns.la \
116   $(top_builddir)/src/testing_old/libgnunettesting_old.la
117
118 test_gns_simple_zkey_lookup_SOURCES = \
119   test_gns_simple_zkey_lookup.c
120 test_gns_simple_zkey_lookup_LDADD = \
121   $(top_builddir)/src/util/libgnunetutil.la \
122   $(top_builddir)/src/namestore/libgnunetnamestore.la \
123   $(top_builddir)/src/gns/libgnunetgns.la \
124   $(top_builddir)/src/testing_old/libgnunettesting_old.la
125 test_gns_simple_zkey_lookup_DEPENDENCIES = \
126   $(top_builddir)/src/util/libgnunetutil.la \
127   $(top_builddir)/src/namestore/libgnunetnamestore.la \
128   $(top_builddir)/src/gns/libgnunetgns.la \
129   $(top_builddir)/src/testing_old/libgnunettesting_old.la
130
131 test_gns_dht_delegated_lookup_SOURCES = \
132   test_gns_dht_delegated_lookup.c
133 test_gns_dht_delegated_lookup_LDADD = \
134   $(top_builddir)/src/util/libgnunetutil.la \
135   $(top_builddir)/src/namestore/libgnunetnamestore.la \
136   $(top_builddir)/src/dht/libgnunetdht.la \
137   $(top_builddir)/src/gns/libgnunetgns.la \
138   $(top_builddir)/src/testing_old/libgnunettesting_old.la
139 test_gns_dht_delegated_lookup_DEPENDENCIES = \
140   $(top_builddir)/src/util/libgnunetutil.la \
141   $(top_builddir)/src/namestore/libgnunetnamestore.la \
142   $(top_builddir)/src/dht/libgnunetdht.la \
143   $(top_builddir)/src/gns/libgnunetgns.la \
144   $(top_builddir)/src/testing_old/libgnunettesting_old.la
145
146 test_gns_simple_shorten_SOURCES = \
147   test_gns_simple_shorten.c
148 test_gns_simple_shorten_LDADD = \
149   $(top_builddir)/src/util/libgnunetutil.la \
150   $(top_builddir)/src/namestore/libgnunetnamestore.la \
151   $(top_builddir)/src/gns/libgnunetgns.la \
152   $(top_builddir)/src/testing_old/libgnunettesting_old.la
153 test_gns_simple_shorten_DEPENDENCIES = \
154   $(top_builddir)/src/util/libgnunetutil.la \
155   $(top_builddir)/src/namestore/libgnunetnamestore.la \
156   $(top_builddir)/src/gns/libgnunetgns.la \
157   $(top_builddir)/src/testing_old/libgnunettesting_old.la
158
159 test_gns_simple_get_authority_SOURCES = \
160   test_gns_simple_get_authority.c
161 test_gns_simple_get_authority_LDADD = \
162   $(top_builddir)/src/util/libgnunetutil.la \
163   $(top_builddir)/src/namestore/libgnunetnamestore.la \
164   $(top_builddir)/src/gns/libgnunetgns.la \
165   $(top_builddir)/src/testing_old/libgnunettesting_old.la
166 test_gns_simple_get_authority_DEPENDENCIES = \
167   $(top_builddir)/src/util/libgnunetutil.la \
168   $(top_builddir)/src/namestore/libgnunetnamestore.la \
169   $(top_builddir)/src/gns/libgnunetgns.la \
170   $(top_builddir)/src/testing_old/libgnunettesting_old.la
171
172
173 test_gns_pseu_shorten_SOURCES = \
174   test_gns_pseu_shorten.c
175 test_gns_pseu_shorten_LDADD = \
176   $(top_builddir)/src/util/libgnunetutil.la \
177   $(top_builddir)/src/namestore/libgnunetnamestore.la \
178   $(top_builddir)/src/dht/libgnunetdht.la \
179   $(top_builddir)/src/gns/libgnunetgns.la \
180   $(top_builddir)/src/testing_old/libgnunettesting_old.la
181 test_gns_pseu_shorten_DEPENDENCIES = \
182   $(top_builddir)/src/util/libgnunetutil.la \
183   $(top_builddir)/src/namestore/libgnunetnamestore.la \
184   $(top_builddir)/src/dht/libgnunetdht.la \
185   $(top_builddir)/src/gns/libgnunetgns.la \
186   $(top_builddir)/src/testing_old/libgnunettesting_old.la
187
188
189 test_gns_max_queries_SOURCES = \
190   test_gns_max_queries.c
191 test_gns_max_queries_LDADD = \
192   $(top_builddir)/src/util/libgnunetutil.la \
193   $(top_builddir)/src/namestore/libgnunetnamestore.la \
194   $(top_builddir)/src/gns/libgnunetgns.la \
195   $(top_builddir)/src/testing_old/libgnunettesting_old.la
196 test_gns_max_queries_DEPENDENCIES = \
197   $(top_builddir)/src/util/libgnunetutil.la \
198   $(top_builddir)/src/namestore/libgnunetnamestore.la \
199   $(top_builddir)/src/gns/libgnunetgns.la \
200   $(top_builddir)/src/testing_old/libgnunettesting_old.la
201
202 test_gns_cname_lookup_SOURCES = \
203   test_gns_cname_lookup.c
204 test_gns_cname_lookup_LDADD = \
205   $(top_builddir)/src/util/libgnunetutil.la \
206   $(top_builddir)/src/namestore/libgnunetnamestore.la \
207   $(top_builddir)/src/gns/libgnunetgns.la \
208   $(top_builddir)/src/testing_old/libgnunettesting_old.la
209 test_gns_cname_lookup_DEPENDENCIES = \
210   $(top_builddir)/src/util/libgnunetutil.la \
211   $(top_builddir)/src/namestore/libgnunetnamestore.la \
212   $(top_builddir)/src/gns/libgnunetgns.la \
213   $(top_builddir)/src/testing_old/libgnunettesting_old.la
214
215
216 test_gns_ns_lookup_SOURCES = \
217   test_gns_ns_lookup.c
218 test_gns_ns_lookup_LDADD = \
219   $(top_builddir)/src/util/libgnunetutil.la \
220   $(top_builddir)/src/namestore/libgnunetnamestore.la \
221   $(top_builddir)/src/gns/libgnunetgns.la \
222   $(top_builddir)/src/testing_old/libgnunettesting_old.la
223 test_gns_ns_lookup_DEPENDENCIES = \
224   $(top_builddir)/src/util/libgnunetutil.la \
225   $(top_builddir)/src/namestore/libgnunetnamestore.la \
226   $(top_builddir)/src/gns/libgnunetgns.la \
227   $(top_builddir)/src/testing_old/libgnunettesting_old.la
228
229
230 test_gns_revocation_SOURCES = \
231   test_gns_revocation.c
232 test_gns_revocation_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_old/libgnunettesting_old.la
237 test_gns_revocation_DEPENDENCIES = \
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_old/libgnunettesting_old.la
242
243
244 gnunet_gns_SOURCES = \
245  gnunet-gns.c
246 gnunet_gns_LDADD = \
247   $(top_builddir)/src/gns/libgnunetgns.la \
248   $(top_builddir)/src/util/libgnunetutil.la \
249   $(top_builddir)/src/namestore/libgnunetnamestore.la \
250   $(GN_LIBINTL)
251 gnunet_gns_DEPENDENCIES = \
252   libgnunetgns.la
253
254 gnunet_gns_proxy_SOURCES = \
255  gnunet-gns-proxy.c gns_proxy_proto.h 
256 gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
257   $(top_builddir)/src/gns/libgnunetgns.la \
258   $(top_builddir)/src/util/libgnunetutil.la \
259   $(GN_LIBINTL)
260 gnunet_gns_proxy_DEPENDENCIES = \
261   libgnunetgns.la
262
263 gnunet_service_gns_SOURCES = \
264  gnunet-service-gns.c \
265  gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
266  gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h 
267 gnunet_service_gns_LDADD = \
268   $(top_builddir)/src/statistics/libgnunetstatistics.la \
269   $(top_builddir)/src/util/libgnunetutil.la \
270         $(top_builddir)/src/dns/libgnunetdns.la \
271         $(top_builddir)/src/dns/libgnunetdnsparser.la \
272         $(top_builddir)/src/dht/libgnunetdht.la \
273         $(top_builddir)/src/namestore/libgnunetnamestore.la \
274         $(top_builddir)/src/vpn/libgnunetvpn.la \
275   $(GN_LIBINTL)
276 gnunet_service_gns_DEPENDENCIES = \
277   $(top_builddir)/src/statistics/libgnunetstatistics.la \
278   $(top_builddir)/src/util/libgnunetutil.la \
279         $(top_builddir)/src/dns/libgnunetdns.la \
280         $(top_builddir)/src/dns/libgnunetdnsparser.la \
281         $(top_builddir)/src/dht/libgnunetdht.la \
282         $(top_builddir)/src/namestore/libgnunetnamestore.la \
283         $(top_builddir)/src/vpn/libgnunetvpn.la
284
285
286 gnunet_gns_fcfsd_SOURCES = \
287  gnunet-gns-fcfsd.c 
288 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
289   $(top_builddir)/src/util/libgnunetutil.la \
290   $(top_builddir)/src/namestore/libgnunetnamestore.la \
291   $(GN_LIBINTL)
292 gnunet_gns_fcfsd_DEPENDENCIES = \
293   $(top_builddir)/src/util/libgnunetutil.la \
294   $(top_builddir)/src/namestore/libgnunetnamestore.la
295
296
297 libgnunetgns_la_SOURCES = \
298  gns_api.c gns.h
299 libgnunetgns_la_LIBADD = \
300  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
301  $(top_builddir)/src/namestore/libgnunetnamestore.la
302 libgnunetgns_la_LDFLAGS = \
303   $(GN_LIB_LDFLAGS)
304 libgnunetgns_la_DEPENDENCIES = \
305  $(top_builddir)/src/util/libgnunetutil.la \
306  $(top_builddir)/src/namestore/libgnunetnamestore.la
307
308 libgnunet_plugin_block_gns_la_SOURCES = \
309   plugin_block_gns.c
310 libgnunet_plugin_block_gns_la_LIBADD = \
311   $(top_builddir)/src/util/libgnunetutil.la \
312   $(top_builddir)/src/block/libgnunetblock.la \
313   $(top_builddir)/src/namestore/libgnunetnamestore.la
314 libgnunet_plugin_block_gns_la_LDFLAGS = \
315   $(GN_PLUGIN_LDFLAGS)
316 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
317   $(top_builddir)/src/util/libgnunetutil.la \
318   $(top_builddir)/src/block/libgnunetblock.la \
319   $(top_builddir)/src/namestore/libgnunetnamestore.la
320
321 #Build stub api
322 #libgnunetnamestore_la_SOURCES = \
323 # namestore_stub_api.c
324 #libgnunetnamestore_la_LIBADD = \
325 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
326 #libgnunetnamestore_la_LDFLAGS = \
327 #  $(GN_LIB_LDFLAGS)
328 #libgnunetnamestore_la_DEPENDENCIES = \
329 # $(top_builddir)/src/util/libgnunetutil.la
330
331 if ENABLE_TEST_RUN
332 if LINUX
333 TESTS = $(check_PROGRAMS)
334 endif
335 endif
336
337 EXTRA_DIST = \
338   test_gns_defaults.conf \
339   test_gns_simple_lookup.conf \
340   test_gns_dht_default.conf \
341         zonefiles/188JSUMKEF25GVU8TTV0PBNNN8JVCPUEDFV1UHJJU884JD25V0T0.zkey \
342         zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey
343