1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
10 SUBDIRS = . $(NSS_SUBDIR)
13 test_gns_defaults.conf \
14 test_gns_lookup.conf \
15 test_gns_nick_shorten.conf \
17 test_gns_simple_lookup.conf \
18 gns-helper-service-w32.conf \
20 gnunet-gns-proxy-setup-ca \
21 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
22 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
23 zonefiles/test_zonekey \
27 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
28 DO_W32_HELPER = gnunet-gns-helper-service-w32
29 DO_W32_NSP = libw32nsp.la
30 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
31 DO_W32_HS_CONF = gns-helper-service-w32.conf
32 DO_NONPOSIX_GNSIMPORT = gnunet-gns-import
34 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
37 AM_CFLAGS = --coverage -O0
40 pkgcfgdir = $(pkgdatadir)/config.d/
42 libexecdir= $(pkglibdir)/libexec/
44 plugindir = $(libdir)/gnunet
58 DO_PROXY=gnunet-gns-proxy
60 CPP_GNURL=@LIBGNURL_CPPFLAGS@
63 DO_PROXY=gnunet-gns-proxy
65 CPP_GNURL=@LIBCURL_CPPFLAGS@
79 $(DO_NONPOSIX_GNSIMPORT) \
84 bin_PROGRAMS += gnunet-bcd
89 REST_PLUGIN = libgnunet_plugin_rest_gns.la
92 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
94 plugin_LTLIBRARIES = \
95 libgnunet_plugin_block_gns.la \
96 libgnunet_plugin_gnsrecord_gns.la \
99 libgnunet_plugin_rest_gns_la_SOURCES = \
101 libgnunet_plugin_rest_gns_la_LIBADD = \
102 $(top_builddir)/src/gns/libgnunetgns.la \
103 $(top_builddir)/src/identity/libgnunetidentity.la \
104 $(top_builddir)/src/rest/libgnunetrest.la \
105 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
106 $(LTLIBINTL) -ljansson -lmicrohttpd
107 libgnunet_plugin_rest_gns_la_LDFLAGS = \
110 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
111 plugin_gnsrecord_gns.c
112 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
113 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
114 $(top_builddir)/src/dns/libgnunetdnsparser.la \
115 $(top_builddir)/src/util/libgnunetutil.la \
117 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
121 gnunet_gns_SOURCES = \
125 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
126 $(top_builddir)/src/namestore/libgnunetnamestore.la \
127 $(top_builddir)/src/identity/libgnunetidentity.la \
128 $(top_builddir)/src/util/libgnunetutil.la \
132 gnunet_bcd_SOURCES = \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 $(GN_LIBINTL) -lmicrohttpd
139 gnunet_dns2gns_SOURCES = \
141 gnunet_dns2gns_LDADD = \
142 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
144 $(top_builddir)/src/util/libgnunetutil.la \
145 $(top_builddir)/src/identity/libgnunetidentity.la \
146 $(top_builddir)/src/namestore/libgnunetnamestore.la \
147 $(top_builddir)/src/dns/libgnunetdnsparser.la \
148 $(top_builddir)/src/dns/libgnunetdnsstub.la \
151 gnunet_gns_proxy_SOURCES = \
153 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
154 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
156 $(top_builddir)/src/identity/libgnunetidentity.la \
157 $(top_builddir)/src/util/libgnunetutil.la \
160 gnunet_gns_proxy_LDADD += -lgnutls-dane
163 gnunet_gns_helper_service_w32_SOURCES = \
164 gnunet-gns-helper-service-w32.c
165 gnunet_gns_helper_service_w32_LDADD = \
167 $(top_builddir)/src/identity/libgnunetidentity.la \
168 $(top_builddir)/src/util/libgnunetutil.la \
171 gnunet_gns_import_SOURCES = \
173 gnunet_gns_import_LDADD = \
174 $(top_builddir)/src/identity/libgnunetidentity.la \
175 $(top_builddir)/src/namestore/libgnunetnamestore.la \
176 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
177 $(top_builddir)/src/util/libgnunetutil.la \
181 w32nsp_install_SOURCES = \
183 w32nsp_install_LDADD = -lws2_32
185 w32nsp_uninstall_SOURCES = \
187 w32nsp_uninstall_LDADD = -lws2_32
189 w32nsp_resolve_SOURCES = \
191 w32nsp_resolve_LDADD = -lws2_32
193 gnunet_service_gns_SOURCES = \
194 gnunet-service-gns.c \
195 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
196 gnunet-service-gns_shorten.c gnunet-service-gns_shorten.h \
197 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
198 gnunet_service_gns_LDADD = \
200 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
201 $(top_builddir)/src/identity/libgnunetidentity.la \
202 $(top_builddir)/src/revocation/libgnunetrevocation.la \
203 $(top_builddir)/src/statistics/libgnunetstatistics.la \
204 $(top_builddir)/src/util/libgnunetutil.la \
205 $(top_builddir)/src/dns/libgnunetdns.la \
206 $(top_builddir)/src/dns/libgnunetdnsparser.la \
207 $(top_builddir)/src/dns/libgnunetdnsstub.la \
208 $(top_builddir)/src/dht/libgnunetdht.la \
209 $(top_builddir)/src/tun/libgnunettun.la \
210 $(top_builddir)/src/namecache/libgnunetnamecache.la \
211 $(top_builddir)/src/namestore/libgnunetnamestore.la \
216 libw32nsp_la_SOURCES = \
218 libw32nsp_la_LIBADD = \
220 libw32nsp_la_LDFLAGS = \
221 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
222 -no-undefined -static-libgcc
224 libgnunetgns_la_SOURCES = \
226 libgnunetgns_la_LIBADD = \
227 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
228 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
229 libgnunetgns_la_LDFLAGS = \
233 libgnunet_plugin_block_gns_la_SOURCES = \
235 libgnunet_plugin_block_gns_la_LIBADD = \
236 $(top_builddir)/src/util/libgnunetutil.la \
237 $(top_builddir)/src/block/libgnunetblock.la \
238 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
239 libgnunet_plugin_block_gns_la_LDFLAGS = \
245 test_gns_ipv6_lookup.sh\
246 test_gns_txt_lookup.sh\
247 test_gns_mx_lookup.sh \
248 test_gns_gns2dns_lookup.sh \
249 test_gns_dht_lookup.sh\
250 test_gns_delegated_lookup.sh \
251 test_gns_nick_shorten.sh\
252 test_gns_plus_lookup.sh\
253 test_gns_zkey_lookup.sh\
254 test_gns_rel_expiration.sh\
255 test_gns_soa_lookup.sh\
256 test_gns_revocation.sh\
257 test_gns_cname_lookup.sh
261 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
262 TESTS = $(check_SCRIPTS)