-mx,cname,ns postprocessing + test
[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_dht_delegated_lookup \
40   test_gns_pseu_shorten
41
42
43 #  test_gns_simple_lookup
44 #  test_gns_simple_delegated_lookup
45 #  test_gns_dht_delegated_lookup
46
47
48 plugin_LTLIBRARIES = \
49   libgnunet_plugin_block_gns.la
50
51 #test_gns_twopeer_SOURCES = \
52 #  test_gns_twopeer.c
53 #test_gns_twopeer_LDADD = \
54 #  $(top_builddir)/src/util/libgnunetutil.la \
55 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
56 #  $(top_builddir)/src/testing/libgnunettesting.la
57 #test_gns_twopeer_DEPENDENCIES = \
58 #  $(top_builddir)/src/util/libgnunetutil.la \
59 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
60 #  $(top_builddir)/src/testing/libgnunettesting.la
61
62 test_gns_simple_lookup_SOURCES = \
63   test_gns_simple_lookup.c
64 test_gns_simple_lookup_LDADD = \
65   $(top_builddir)/src/util/libgnunetutil.la \
66   $(top_builddir)/src/namestore/libgnunetnamestore.la \
67   $(top_builddir)/src/gns/libgnunetgns.la \
68   $(top_builddir)/src/testing/libgnunettesting.la
69 test_gns_simple_lookup_DEPENDENCIES = \
70   $(top_builddir)/src/util/libgnunetutil.la \
71   $(top_builddir)/src/namestore/libgnunetnamestore.la \
72   $(top_builddir)/src/gns/libgnunetgns.la \
73   $(top_builddir)/src/testing/libgnunettesting.la
74
75 test_gns_simple_delegated_lookup_SOURCES = \
76   test_gns_simple_delegated_lookup.c
77 test_gns_simple_delegated_lookup_LDADD = \
78   $(top_builddir)/src/util/libgnunetutil.la \
79   $(top_builddir)/src/namestore/libgnunetnamestore.la \
80   $(top_builddir)/src/gns/libgnunetgns.la \
81   $(top_builddir)/src/testing/libgnunettesting.la
82 test_gns_simple_delegated_lookup_DEPENDENCIES = \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(top_builddir)/src/namestore/libgnunetnamestore.la \
85   $(top_builddir)/src/gns/libgnunetgns.la \
86   $(top_builddir)/src/testing/libgnunettesting.la
87
88 test_gns_simple_mx_lookup_SOURCES = \
89   test_gns_simple_mx_lookup.c
90 test_gns_simple_mx_lookup_LDADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   $(top_builddir)/src/namestore/libgnunetnamestore.la \
93   $(top_builddir)/src/gns/libgnunetgns.la \
94   $(top_builddir)/src/testing/libgnunettesting.la
95 test_gns_simple_mx_lookup_DEPENDENCIES = \
96   $(top_builddir)/src/util/libgnunetutil.la \
97   $(top_builddir)/src/namestore/libgnunetnamestore.la \
98   $(top_builddir)/src/gns/libgnunetgns.la \
99   $(top_builddir)/src/testing/libgnunettesting.la
100
101 test_gns_dht_delegated_lookup_SOURCES = \
102   test_gns_dht_delegated_lookup.c
103 test_gns_dht_delegated_lookup_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   $(top_builddir)/src/namestore/libgnunetnamestore.la \
106   $(top_builddir)/src/dht/libgnunetdht.la \
107   $(top_builddir)/src/gns/libgnunetgns.la \
108   $(top_builddir)/src/testing/libgnunettesting.la
109 test_gns_dht_delegated_lookup_DEPENDENCIES = \
110   $(top_builddir)/src/util/libgnunetutil.la \
111   $(top_builddir)/src/namestore/libgnunetnamestore.la \
112   $(top_builddir)/src/dht/libgnunetdht.la \
113   $(top_builddir)/src/gns/libgnunetgns.la \
114   $(top_builddir)/src/testing/libgnunettesting.la
115
116 test_gns_simple_shorten_SOURCES = \
117   test_gns_simple_shorten.c
118 test_gns_simple_shorten_LDADD = \
119   $(top_builddir)/src/util/libgnunetutil.la \
120   $(top_builddir)/src/namestore/libgnunetnamestore.la \
121   $(top_builddir)/src/gns/libgnunetgns.la \
122   $(top_builddir)/src/testing/libgnunettesting.la
123 test_gns_simple_shorten_DEPENDENCIES = \
124   $(top_builddir)/src/util/libgnunetutil.la \
125   $(top_builddir)/src/namestore/libgnunetnamestore.la \
126   $(top_builddir)/src/gns/libgnunetgns.la \
127   $(top_builddir)/src/testing/libgnunettesting.la
128
129 test_gns_simple_get_authority_SOURCES = \
130   test_gns_simple_get_authority.c
131 test_gns_simple_get_authority_LDADD = \
132   $(top_builddir)/src/util/libgnunetutil.la \
133   $(top_builddir)/src/namestore/libgnunetnamestore.la \
134   $(top_builddir)/src/gns/libgnunetgns.la \
135   $(top_builddir)/src/testing/libgnunettesting.la
136 test_gns_simple_get_authority_DEPENDENCIES = \
137   $(top_builddir)/src/util/libgnunetutil.la \
138   $(top_builddir)/src/namestore/libgnunetnamestore.la \
139   $(top_builddir)/src/gns/libgnunetgns.la \
140   $(top_builddir)/src/testing/libgnunettesting.la
141
142
143 test_gns_pseu_shorten_SOURCES = \
144   test_gns_pseu_shorten.c
145 test_gns_pseu_shorten_LDADD = \
146   $(top_builddir)/src/util/libgnunetutil.la \
147   $(top_builddir)/src/namestore/libgnunetnamestore.la \
148   $(top_builddir)/src/dht/libgnunetdht.la \
149   $(top_builddir)/src/gns/libgnunetgns.la \
150   $(top_builddir)/src/testing/libgnunettesting.la
151 test_gns_pseu_shorten_DEPENDENCIES = \
152   $(top_builddir)/src/util/libgnunetutil.la \
153   $(top_builddir)/src/namestore/libgnunetnamestore.la \
154   $(top_builddir)/src/dht/libgnunetdht.la \
155   $(top_builddir)/src/gns/libgnunetgns.la \
156   $(top_builddir)/src/testing/libgnunettesting.la
157
158 gnunet_gns_SOURCES = \
159  gnunet-gns.c
160 gnunet_gns_LDADD = \
161   $(top_builddir)/src/gns/libgnunetgns.la \
162   $(top_builddir)/src/util/libgnunetutil.la \
163   $(top_builddir)/src/namestore/libgnunetnamestore.la \
164   $(GN_LIBINTL)
165 gnunet_gns_DEPENDENCIES = \
166   libgnunetgns.la
167
168 gnunet_service_gns_SOURCES = \
169  gnunet-service-gns.c \
170  gnunet-service-gns_resolver.c \
171  gnunet-service-gns_interceptor.c
172 gnunet_service_gns_LDADD = \
173   $(top_builddir)/src/tun/libgnunettun.la \
174   $(top_builddir)/src/mesh/libgnunetmesh.la \
175   $(top_builddir)/src/statistics/libgnunetstatistics.la \
176   $(top_builddir)/src/util/libgnunetutil.la \
177         $(top_builddir)/src/dns/libgnunetdns.la \
178         $(top_builddir)/src/dns/libgnunetdnsparser.la \
179         $(top_builddir)/src/dht/libgnunetdht.la \
180         $(top_builddir)/src/namestore/libgnunetnamestore.la \
181   $(GN_LIBINTL)
182 gnunet_service_gns_DEPENDENCIES = \
183   $(top_builddir)/src/tun/libgnunettun.la \
184   $(top_builddir)/src/mesh/libgnunetmesh.la \
185   $(top_builddir)/src/statistics/libgnunetstatistics.la \
186   $(top_builddir)/src/util/libgnunetutil.la \
187         $(top_builddir)/src/dns/libgnunetdns.la \
188         $(top_builddir)/src/dns/libgnunetdnsparser.la \
189         $(top_builddir)/src/dht/libgnunetdht.la \
190         $(top_builddir)/src/namestore/libgnunetnamestore.la
191
192
193 gnunet_gns_fcfsd_SOURCES = \
194  gnunet-gns-fcfsd.c 
195 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
196   $(top_builddir)/src/util/libgnunetutil.la \
197   $(top_builddir)/src/namestore/libgnunetnamestore.la \
198   $(GN_LIBINTL)
199 gnunet_gns_fcfsd_DEPENDENCIES = \
200   $(top_builddir)/src/util/libgnunetutil.la \
201   $(top_builddir)/src/namestore/libgnunetnamestore.la
202
203
204 libgnunetgns_la_SOURCES = \
205  gns_api.c gns.h
206 libgnunetgns_la_LIBADD = \
207  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
208  $(top_builddir)/src/namestore/libgnunetnamestore.la
209 libgnunetgns_la_LDFLAGS = \
210   $(GN_LIB_LDFLAGS)
211 libgnunetgns_la_DEPENDENCIES = \
212  $(top_builddir)/src/util/libgnunetutil.la \
213  $(top_builddir)/src/namestore/libgnunetnamestore.la
214
215 libgnunet_plugin_block_gns_la_SOURCES = \
216   plugin_block_gns.c
217 libgnunet_plugin_block_gns_la_LIBADD = \
218   $(top_builddir)/src/util/libgnunetutil.la \
219   $(top_builddir)/src/block/libgnunetblock.la \
220   $(top_builddir)/src/namestore/libgnunetnamestore.la
221 libgnunet_plugin_block_gns_la_LDFLAGS = \
222   $(GN_PLUGIN_LDFLAGS)
223 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
224   $(top_builddir)/src/util/libgnunetutil.la \
225   $(top_builddir)/src/block/libgnunetblock.la \
226   $(top_builddir)/src/namestore/libgnunetnamestore.la
227
228 #Build stub api
229 #libgnunetnamestore_la_SOURCES = \
230 # namestore_stub_api.c
231 #libgnunetnamestore_la_LIBADD = \
232 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
233 #libgnunetnamestore_la_LDFLAGS = \
234 #  $(GN_LIB_LDFLAGS)
235 #libgnunetnamestore_la_DEPENDENCIES = \
236 # $(top_builddir)/src/util/libgnunetutil.la
237
238 if ENABLE_TEST_RUN
239 TESTS = $(check_PROGRAMS)
240 endif
241
242 EXTRA_DIST = \
243   test_gns_simple_lookup.conf