-test for zkey resolver
[oweals/gnunet.git] / src / gns / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9 endif
10
11 pkgcfgdir= $(pkgdatadir)/config.d/
12
13 plugindir = $(libdir)/gnunet
14
15 pkgcfg_DATA = \
16   gns.conf
17
18 lib_LTLIBRARIES = \
19   libgnunetgns.la
20
21 if HAVE_MHD
22  DO_FCFSD=gnunet-gns-fcfsd
23 endif
24
25 bin_PROGRAMS = \
26   gnunet-service-gns \
27   $(DO_FCFSD) \
28   gnunet-gns
29
30 #noinst_PROGRAMS = \
31 #  gnunet-gns-lookup
32
33 check_PROGRAMS = \
34   test_gns_simple_shorten \
35   test_gns_simple_get_authority \
36   test_gns_simple_lookup \
37   test_gns_simple_delegated_lookup \
38   test_gns_simple_mx_lookup \
39   test_gns_simple_zkey_lookup \
40   test_gns_dht_delegated_lookup \
41   test_gns_pseu_shorten
42
43
44 #  test_gns_simple_lookup
45 #  test_gns_simple_delegated_lookup
46 #  test_gns_dht_delegated_lookup
47
48
49 plugin_LTLIBRARIES = \
50   libgnunet_plugin_block_gns.la
51
52 #test_gns_twopeer_SOURCES = \
53 #  test_gns_twopeer.c
54 #test_gns_twopeer_LDADD = \
55 #  $(top_builddir)/src/util/libgnunetutil.la \
56 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
57 #  $(top_builddir)/src/testing/libgnunettesting.la
58 #test_gns_twopeer_DEPENDENCIES = \
59 #  $(top_builddir)/src/util/libgnunetutil.la \
60 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
61 #  $(top_builddir)/src/testing/libgnunettesting.la
62
63 test_gns_simple_lookup_SOURCES = \
64   test_gns_simple_lookup.c
65 test_gns_simple_lookup_LDADD = \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/namestore/libgnunetnamestore.la \
68   $(top_builddir)/src/gns/libgnunetgns.la \
69   $(top_builddir)/src/testing/libgnunettesting.la
70 test_gns_simple_lookup_DEPENDENCIES = \
71   $(top_builddir)/src/util/libgnunetutil.la \
72   $(top_builddir)/src/namestore/libgnunetnamestore.la \
73   $(top_builddir)/src/gns/libgnunetgns.la \
74   $(top_builddir)/src/testing/libgnunettesting.la
75
76 test_gns_simple_delegated_lookup_SOURCES = \
77   test_gns_simple_delegated_lookup.c
78 test_gns_simple_delegated_lookup_LDADD = \
79   $(top_builddir)/src/util/libgnunetutil.la \
80   $(top_builddir)/src/namestore/libgnunetnamestore.la \
81   $(top_builddir)/src/gns/libgnunetgns.la \
82   $(top_builddir)/src/testing/libgnunettesting.la
83 test_gns_simple_delegated_lookup_DEPENDENCIES = \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   $(top_builddir)/src/namestore/libgnunetnamestore.la \
86   $(top_builddir)/src/gns/libgnunetgns.la \
87   $(top_builddir)/src/testing/libgnunettesting.la
88
89 test_gns_simple_mx_lookup_SOURCES = \
90   test_gns_simple_mx_lookup.c
91 test_gns_simple_mx_lookup_LDADD = \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(top_builddir)/src/namestore/libgnunetnamestore.la \
94   $(top_builddir)/src/gns/libgnunetgns.la \
95   $(top_builddir)/src/testing/libgnunettesting.la
96 test_gns_simple_mx_lookup_DEPENDENCIES = \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   $(top_builddir)/src/namestore/libgnunetnamestore.la \
99   $(top_builddir)/src/gns/libgnunetgns.la \
100   $(top_builddir)/src/testing/libgnunettesting.la
101
102 test_gns_simple_zkey_lookup_SOURCES = \
103   test_gns_simple_zkey_lookup.c
104 test_gns_simple_zkey_lookup_LDADD = \
105   $(top_builddir)/src/util/libgnunetutil.la \
106   $(top_builddir)/src/namestore/libgnunetnamestore.la \
107   $(top_builddir)/src/gns/libgnunetgns.la \
108   $(top_builddir)/src/testing/libgnunettesting.la
109 test_gns_simple_zkey_lookup_DEPENDENCIES = \
110   $(top_builddir)/src/util/libgnunetutil.la \
111   $(top_builddir)/src/namestore/libgnunetnamestore.la \
112   $(top_builddir)/src/gns/libgnunetgns.la \
113   $(top_builddir)/src/testing/libgnunettesting.la
114
115 test_gns_dht_delegated_lookup_SOURCES = \
116   test_gns_dht_delegated_lookup.c
117 test_gns_dht_delegated_lookup_LDADD = \
118   $(top_builddir)/src/util/libgnunetutil.la \
119   $(top_builddir)/src/namestore/libgnunetnamestore.la \
120   $(top_builddir)/src/dht/libgnunetdht.la \
121   $(top_builddir)/src/gns/libgnunetgns.la \
122   $(top_builddir)/src/testing/libgnunettesting.la
123 test_gns_dht_delegated_lookup_DEPENDENCIES = \
124   $(top_builddir)/src/util/libgnunetutil.la \
125   $(top_builddir)/src/namestore/libgnunetnamestore.la \
126   $(top_builddir)/src/dht/libgnunetdht.la \
127   $(top_builddir)/src/gns/libgnunetgns.la \
128   $(top_builddir)/src/testing/libgnunettesting.la
129
130 test_gns_simple_shorten_SOURCES = \
131   test_gns_simple_shorten.c
132 test_gns_simple_shorten_LDADD = \
133   $(top_builddir)/src/util/libgnunetutil.la \
134   $(top_builddir)/src/namestore/libgnunetnamestore.la \
135   $(top_builddir)/src/gns/libgnunetgns.la \
136   $(top_builddir)/src/testing/libgnunettesting.la
137 test_gns_simple_shorten_DEPENDENCIES = \
138   $(top_builddir)/src/util/libgnunetutil.la \
139   $(top_builddir)/src/namestore/libgnunetnamestore.la \
140   $(top_builddir)/src/gns/libgnunetgns.la \
141   $(top_builddir)/src/testing/libgnunettesting.la
142
143 test_gns_simple_get_authority_SOURCES = \
144   test_gns_simple_get_authority.c
145 test_gns_simple_get_authority_LDADD = \
146   $(top_builddir)/src/util/libgnunetutil.la \
147   $(top_builddir)/src/namestore/libgnunetnamestore.la \
148   $(top_builddir)/src/gns/libgnunetgns.la \
149   $(top_builddir)/src/testing/libgnunettesting.la
150 test_gns_simple_get_authority_DEPENDENCIES = \
151   $(top_builddir)/src/util/libgnunetutil.la \
152   $(top_builddir)/src/namestore/libgnunetnamestore.la \
153   $(top_builddir)/src/gns/libgnunetgns.la \
154   $(top_builddir)/src/testing/libgnunettesting.la
155
156
157 test_gns_pseu_shorten_SOURCES = \
158   test_gns_pseu_shorten.c
159 test_gns_pseu_shorten_LDADD = \
160   $(top_builddir)/src/util/libgnunetutil.la \
161   $(top_builddir)/src/namestore/libgnunetnamestore.la \
162   $(top_builddir)/src/dht/libgnunetdht.la \
163   $(top_builddir)/src/gns/libgnunetgns.la \
164   $(top_builddir)/src/testing/libgnunettesting.la
165 test_gns_pseu_shorten_DEPENDENCIES = \
166   $(top_builddir)/src/util/libgnunetutil.la \
167   $(top_builddir)/src/namestore/libgnunetnamestore.la \
168   $(top_builddir)/src/dht/libgnunetdht.la \
169   $(top_builddir)/src/gns/libgnunetgns.la \
170   $(top_builddir)/src/testing/libgnunettesting.la
171
172 gnunet_gns_SOURCES = \
173  gnunet-gns.c
174 gnunet_gns_LDADD = \
175   $(top_builddir)/src/gns/libgnunetgns.la \
176   $(top_builddir)/src/util/libgnunetutil.la \
177   $(top_builddir)/src/namestore/libgnunetnamestore.la \
178   $(GN_LIBINTL)
179 gnunet_gns_DEPENDENCIES = \
180   libgnunetgns.la
181
182 gnunet_service_gns_SOURCES = \
183  gnunet-service-gns.c \
184  gnunet-service-gns_resolver.c \
185  gnunet-service-gns_interceptor.c
186 gnunet_service_gns_LDADD = \
187   $(top_builddir)/src/tun/libgnunettun.la \
188   $(top_builddir)/src/mesh/libgnunetmesh.la \
189   $(top_builddir)/src/statistics/libgnunetstatistics.la \
190   $(top_builddir)/src/util/libgnunetutil.la \
191         $(top_builddir)/src/dns/libgnunetdns.la \
192         $(top_builddir)/src/dns/libgnunetdnsparser.la \
193         $(top_builddir)/src/dht/libgnunetdht.la \
194         $(top_builddir)/src/namestore/libgnunetnamestore.la \
195   $(GN_LIBINTL)
196 gnunet_service_gns_DEPENDENCIES = \
197   $(top_builddir)/src/tun/libgnunettun.la \
198   $(top_builddir)/src/mesh/libgnunetmesh.la \
199   $(top_builddir)/src/statistics/libgnunetstatistics.la \
200   $(top_builddir)/src/util/libgnunetutil.la \
201         $(top_builddir)/src/dns/libgnunetdns.la \
202         $(top_builddir)/src/dns/libgnunetdnsparser.la \
203         $(top_builddir)/src/dht/libgnunetdht.la \
204         $(top_builddir)/src/namestore/libgnunetnamestore.la
205
206
207 gnunet_gns_fcfsd_SOURCES = \
208  gnunet-gns-fcfsd.c 
209 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
210   $(top_builddir)/src/util/libgnunetutil.la \
211   $(top_builddir)/src/namestore/libgnunetnamestore.la \
212   $(GN_LIBINTL)
213 gnunet_gns_fcfsd_DEPENDENCIES = \
214   $(top_builddir)/src/util/libgnunetutil.la \
215   $(top_builddir)/src/namestore/libgnunetnamestore.la
216
217
218 libgnunetgns_la_SOURCES = \
219  gns_api.c gns.h
220 libgnunetgns_la_LIBADD = \
221  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
222  $(top_builddir)/src/namestore/libgnunetnamestore.la
223 libgnunetgns_la_LDFLAGS = \
224   $(GN_LIB_LDFLAGS)
225 libgnunetgns_la_DEPENDENCIES = \
226  $(top_builddir)/src/util/libgnunetutil.la \
227  $(top_builddir)/src/namestore/libgnunetnamestore.la
228
229 libgnunet_plugin_block_gns_la_SOURCES = \
230   plugin_block_gns.c
231 libgnunet_plugin_block_gns_la_LIBADD = \
232   $(top_builddir)/src/util/libgnunetutil.la \
233   $(top_builddir)/src/block/libgnunetblock.la \
234   $(top_builddir)/src/namestore/libgnunetnamestore.la
235 libgnunet_plugin_block_gns_la_LDFLAGS = \
236   $(GN_PLUGIN_LDFLAGS)
237 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
238   $(top_builddir)/src/util/libgnunetutil.la \
239   $(top_builddir)/src/block/libgnunetblock.la \
240   $(top_builddir)/src/namestore/libgnunetnamestore.la
241
242 #Build stub api
243 #libgnunetnamestore_la_SOURCES = \
244 # namestore_stub_api.c
245 #libgnunetnamestore_la_LIBADD = \
246 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
247 #libgnunetnamestore_la_LDFLAGS = \
248 #  $(GN_LIB_LDFLAGS)
249 #libgnunetnamestore_la_DEPENDENCIES = \
250 # $(top_builddir)/src/util/libgnunetutil.la
251
252 if ENABLE_TEST_RUN
253 TESTS = $(check_PROGRAMS)
254 endif
255
256 EXTRA_DIST = \
257   test_gns_simple_lookup.conf