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 \
16 test_gns_simple_lookup.conf \
17 gns-helper-service-w32.conf \
19 gnunet-gns-proxy-setup-ca \
20 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
21 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
22 zonefiles/test_zonekey \
26 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
27 DO_W32_HELPER = gnunet-gns-helper-service-w32
28 DO_W32_NSP = libw32nsp.la
29 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
30 DO_W32_HS_CONF = gns-helper-service-w32.conf
31 DO_NONPOSIX_GNSIMPORT = gnunet-gns-import
33 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
36 AM_CFLAGS = --coverage -O0
39 pkgcfgdir = $(pkgdatadir)/config.d/
41 libexecdir= $(pkglibdir)/libexec/
43 plugindir = $(libdir)/gnunet
57 DO_PROXY=gnunet-gns-proxy
59 CPP_GNURL=@LIBGNURL_CPPFLAGS@
62 DO_PROXY=gnunet-gns-proxy
64 CPP_GNURL=@LIBCURL_CPPFLAGS@
78 $(DO_NONPOSIX_GNSIMPORT) \
83 bin_PROGRAMS += gnunet-bcd
87 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
89 plugin_LTLIBRARIES = \
90 libgnunet_plugin_block_gns.la \
91 libgnunet_plugin_gnsrecord_gns.la
96 plugin_LTLIBRARIES += libgnunet_plugin_rest_gns.la
100 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
101 plugin_gnsrecord_gns.c
102 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
103 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
104 $(top_builddir)/src/dns/libgnunetdnsparser.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
107 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
111 gnunet_gns_SOURCES = \
115 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
116 $(top_builddir)/src/identity/libgnunetidentity.la \
117 $(top_builddir)/src/util/libgnunetutil.la \
121 gnunet_bcd_SOURCES = \
124 $(top_builddir)/src/util/libgnunetutil.la \
125 $(GN_LIBINTL) -lmicrohttpd
128 gnunet_dns2gns_SOURCES = \
130 gnunet_dns2gns_LDADD = \
131 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
133 $(top_builddir)/src/util/libgnunetutil.la \
134 $(top_builddir)/src/identity/libgnunetidentity.la \
135 $(top_builddir)/src/dns/libgnunetdnsparser.la \
136 $(top_builddir)/src/dns/libgnunetdnsstub.la \
139 gnunet_gns_proxy_SOURCES = \
141 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
142 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
144 $(top_builddir)/src/identity/libgnunetidentity.la \
145 $(top_builddir)/src/util/libgnunetutil.la \
148 gnunet_gns_proxy_LDADD += -lgnutls-dane
151 gnunet_gns_helper_service_w32_SOURCES = \
152 gnunet-gns-helper-service-w32.c
153 gnunet_gns_helper_service_w32_LDADD = \
155 $(top_builddir)/src/identity/libgnunetidentity.la \
156 $(top_builddir)/src/util/libgnunetutil.la \
159 gnunet_gns_import_SOURCES = \
161 gnunet_gns_import_LDADD = \
162 $(top_builddir)/src/identity/libgnunetidentity.la \
163 $(top_builddir)/src/namestore/libgnunetnamestore.la \
164 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
165 $(top_builddir)/src/util/libgnunetutil.la \
169 w32nsp_install_SOURCES = \
171 w32nsp_install_LDADD = -lws2_32
173 w32nsp_uninstall_SOURCES = \
175 w32nsp_uninstall_LDADD = -lws2_32
177 w32nsp_resolve_SOURCES = \
179 w32nsp_resolve_LDADD = -lws2_32
181 gnunet_service_gns_SOURCES = \
182 gnunet-service-gns.c \
183 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
184 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
185 gnunet_service_gns_LDADD = \
187 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
188 $(top_builddir)/src/identity/libgnunetidentity.la \
189 $(top_builddir)/src/revocation/libgnunetrevocation.la \
190 $(top_builddir)/src/statistics/libgnunetstatistics.la \
191 $(top_builddir)/src/util/libgnunetutil.la \
192 $(top_builddir)/src/dns/libgnunetdns.la \
193 $(top_builddir)/src/dns/libgnunetdnsparser.la \
194 $(top_builddir)/src/dns/libgnunetdnsstub.la \
195 $(top_builddir)/src/dht/libgnunetdht.la \
196 $(top_builddir)/src/tun/libgnunettun.la \
197 $(top_builddir)/src/namecache/libgnunetnamecache.la \
202 libw32nsp_la_SOURCES = \
204 libw32nsp_la_LIBADD = \
206 libw32nsp_la_LDFLAGS = \
207 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
208 -no-undefined -static-libgcc
210 libgnunetgns_la_SOURCES = \
212 libgnunetgns_la_LIBADD = \
213 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
214 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
215 libgnunetgns_la_LDFLAGS = \
219 libgnunet_plugin_block_gns_la_SOURCES = \
221 libgnunet_plugin_block_gns_la_LIBADD = \
222 $(top_builddir)/src/util/libgnunetutil.la \
223 $(top_builddir)/src/block/libgnunetblock.la \
224 $(top_builddir)/src/block/libgnunetblockgroup.la \
225 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
226 libgnunet_plugin_block_gns_la_LDFLAGS = \
229 libgnunet_plugin_rest_gns_la_SOURCES = \
231 libgnunet_plugin_rest_gns_la_LIBADD = \
233 $(top_builddir)/src/rest/libgnunetrest.la \
234 $(top_builddir)/src/identity/libgnunetidentity.la \
235 $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
236 $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
237 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
238 $(LTLIBINTL) -ljansson -lmicrohttpd
239 libgnunet_plugin_rest_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_plus_lookup.sh\
252 test_gns_zkey_lookup.sh\
253 test_gns_rel_expiration.sh\
254 test_gns_soa_lookup.sh\
255 test_gns_revocation.sh\
256 test_gns_cname_lookup.sh
260 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
261 TESTS = $(check_SCRIPTS)