1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
8 SUBDIRS = . $(NSS_SUBDIR)
11 test_gns_defaults.conf \
12 test_gns_lookup.conf \
14 test_gns_simple_lookup.conf \
15 gns-helper-service-w32.conf \
18 gnunet-gns-proxy-setup-ca.in \
19 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
20 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
21 zonefiles/test_zonekey \
25 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
26 DO_W32_HELPER = gnunet-gns-helper-service-w32
27 DO_W32_NSP = libw32nsp.la
28 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
29 DO_W32_HS_CONF = gns-helper-service-w32.conf
30 DO_NONPOSIX_GNSIMPORT = gnunet-gns-import
32 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
35 AM_CFLAGS = --coverage -O0
38 pkgcfgdir = $(pkgdatadir)/config.d/
40 libexecdir= $(pkglibdir)/libexec/
42 plugindir = $(libdir)/gnunet
56 DO_PROXY=gnunet-gns-proxy
58 CPP_GNURL=@LIBGNURL_CPPFLAGS@
61 DO_PROXY=gnunet-gns-proxy
63 CPP_GNURL=@LIBCURL_CPPFLAGS@
77 $(DO_NONPOSIX_GNSIMPORT) \
84 gnunet-gns-proxy-ca.template
88 bin_PROGRAMS += gnunet-bcd
94 REST_PLUGIN = libgnunet_plugin_rest_gns.la
98 plugin_LTLIBRARIES = \
99 libgnunet_plugin_block_gns.la \
100 libgnunet_plugin_gnsrecord_gns.la \
105 gnunet-gns-proxy-setup-ca
107 # See: https://www.gnu.org/software/automake/manual/html_node/Scripts.html#Scripts
108 do_subst = sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
110 gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
111 $(do_subst) < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
112 chmod +x gnunet-gns-proxy-setup-ca
115 libgnunet_plugin_rest_gns_la_SOURCES = \
117 libgnunet_plugin_rest_gns_la_LIBADD = \
118 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
120 $(top_builddir)/src/rest/libgnunetrest.la \
121 $(top_builddir)/src/identity/libgnunetidentity.la \
122 $(top_builddir)/src/json/libgnunetjson.la \
123 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
124 $(LTLIBINTL) -ljansson -lmicrohttpd
125 libgnunet_plugin_rest_gns_la_LDFLAGS = \
129 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
130 plugin_gnsrecord_gns.c
131 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
132 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
133 $(top_builddir)/src/util/libgnunetutil.la \
135 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
139 gnunet_gns_SOURCES = \
143 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
144 $(top_builddir)/src/util/libgnunetutil.la \
147 gnunet_gns_benchmark_SOURCES = \
148 gnunet-gns-benchmark.c
149 gnunet_gns_benchmark_LDADD = \
151 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
152 $(top_builddir)/src/util/libgnunetutil.la \
156 gnunet_bcd_SOURCES = \
159 $(top_builddir)/src/util/libgnunetutil.la \
160 $(GN_LIBINTL) -lmicrohttpd
163 gnunet_dns2gns_SOURCES = \
165 gnunet_dns2gns_LDADD = \
166 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
168 $(top_builddir)/src/util/libgnunetutil.la \
169 $(top_builddir)/src/identity/libgnunetidentity.la \
173 HIJACKBIN = gnunet-dns2gns
175 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
180 gnunet_gns_proxy_SOURCES = \
182 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
183 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
185 $(top_builddir)/src/identity/libgnunetidentity.la \
186 $(top_builddir)/src/util/libgnunetutil.la \
189 gnunet_gns_proxy_LDADD += -lgnutls-dane
192 test_gns_proxy_SOURCES = \
194 test_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
195 $(top_builddir)/src/util/libgnunetutil.la \
198 gnunet_gns_helper_service_w32_SOURCES = \
199 gnunet-gns-helper-service-w32.c
200 gnunet_gns_helper_service_w32_LDADD = \
202 $(top_builddir)/src/identity/libgnunetidentity.la \
203 $(top_builddir)/src/util/libgnunetutil.la \
206 gnunet_gns_import_SOURCES = \
208 gnunet_gns_import_LDADD = \
209 $(top_builddir)/src/identity/libgnunetidentity.la \
210 $(top_builddir)/src/namestore/libgnunetnamestore.la \
211 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
212 $(top_builddir)/src/util/libgnunetutil.la \
216 w32nsp_install_SOURCES = \
218 w32nsp_install_LDADD = -lws2_32
220 w32nsp_uninstall_SOURCES = \
222 w32nsp_uninstall_LDADD = -lws2_32
224 w32nsp_resolve_SOURCES = \
226 w32nsp_resolve_LDADD = -lws2_32
228 gnunet_service_gns_SOURCES = \
229 gnunet-service-gns.c gnunet-service-gns.h \
230 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
231 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
232 gnunet_service_gns_LDADD = \
234 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
235 $(top_builddir)/src/identity/libgnunetidentity.la \
236 $(top_builddir)/src/revocation/libgnunetrevocation.la \
237 $(top_builddir)/src/statistics/libgnunetstatistics.la \
238 $(top_builddir)/src/util/libgnunetutil.la \
239 $(top_builddir)/src/dns/libgnunetdns.la \
240 $(top_builddir)/src/dht/libgnunetdht.la \
241 $(top_builddir)/src/namecache/libgnunetnamecache.la \
246 libw32nsp_la_SOURCES = \
248 libw32nsp_la_LIBADD = \
250 libw32nsp_la_LDFLAGS = \
251 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
252 -no-undefined -static-libgcc
254 libgnunetgns_la_SOURCES = \
255 gns_api.c gns_api.h \
257 libgnunetgns_la_LIBADD = \
258 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
259 $(top_builddir)/src/identity/libgnunetidentity.la \
260 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
261 libgnunetgns_la_LDFLAGS = \
265 libgnunet_plugin_block_gns_la_SOURCES = \
267 libgnunet_plugin_block_gns_la_LIBADD = \
268 $(top_builddir)/src/util/libgnunetutil.la \
269 $(top_builddir)/src/block/libgnunetblock.la \
270 $(top_builddir)/src/block/libgnunetblockgroup.la \
271 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
272 libgnunet_plugin_block_gns_la_LDFLAGS = \
286 test_gns_config_lookup.sh \
287 test_gns_ipv6_lookup.sh\
288 test_gns_txt_lookup.sh\
289 test_gns_caa_lookup.sh\
290 test_gns_mx_lookup.sh \
291 test_gns_gns2dns_lookup.sh \
292 test_gns_gns2dns_cname_lookup.sh \
293 test_gns_dht_lookup.sh\
294 test_gns_delegated_lookup.sh \
295 test_gns_at_lookup.sh\
296 test_gns_zkey_lookup.sh\
297 test_gns_rel_expiration.sh\
298 test_gns_soa_lookup.sh\
299 test_gns_revocation.sh\
300 test_gns_cname_lookup.sh
314 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
315 TESTS = $(check_SCRIPTS)