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) \
88 bin_PROGRAMS += gnunet-bcd
92 plugin_LTLIBRARIES = \
93 libgnunet_plugin_block_gns.la \
94 libgnunet_plugin_gnsrecord_gns.la
98 gnunet-gns-proxy-setup-ca
100 # See: https://www.gnu.org/software/automake/manual/html_node/Scripts.html#Scripts
101 do_subst = sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
103 gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
104 $(do_subst) < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
105 chmod +x gnunet-gns-proxy-setup-ca
107 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
108 plugin_gnsrecord_gns.c
109 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
110 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
111 $(top_builddir)/src/util/libgnunetutil.la \
113 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
117 gnunet_gns_SOURCES = \
121 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
122 $(top_builddir)/src/util/libgnunetutil.la \
125 gnunet_gns_benchmark_SOURCES = \
126 gnunet-gns-benchmark.c
127 gnunet_gns_benchmark_LDADD = \
129 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
134 gnunet_bcd_SOURCES = \
137 $(top_builddir)/src/util/libgnunetutil.la \
138 $(GN_LIBINTL) -lmicrohttpd
141 gnunet_dns2gns_SOURCES = \
143 gnunet_dns2gns_LDADD = \
144 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
146 $(top_builddir)/src/util/libgnunetutil.la \
147 $(top_builddir)/src/identity/libgnunetidentity.la \
151 HIJACKBIN = gnunet-dns2gns
153 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
158 gnunet_gns_proxy_SOURCES = \
160 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
161 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
163 $(top_builddir)/src/identity/libgnunetidentity.la \
164 $(top_builddir)/src/util/libgnunetutil.la \
167 gnunet_gns_proxy_LDADD += -lgnutls-dane
170 test_gns_proxy_SOURCES = \
172 test_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
173 $(top_builddir)/src/util/libgnunetutil.la \
176 gnunet_gns_helper_service_w32_SOURCES = \
177 gnunet-gns-helper-service-w32.c
178 gnunet_gns_helper_service_w32_LDADD = \
180 $(top_builddir)/src/identity/libgnunetidentity.la \
181 $(top_builddir)/src/util/libgnunetutil.la \
184 gnunet_gns_import_SOURCES = \
186 gnunet_gns_import_LDADD = \
187 $(top_builddir)/src/identity/libgnunetidentity.la \
188 $(top_builddir)/src/namestore/libgnunetnamestore.la \
189 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
190 $(top_builddir)/src/util/libgnunetutil.la \
194 w32nsp_install_SOURCES = \
196 w32nsp_install_LDADD = -lws2_32
198 w32nsp_uninstall_SOURCES = \
200 w32nsp_uninstall_LDADD = -lws2_32
202 w32nsp_resolve_SOURCES = \
204 w32nsp_resolve_LDADD = -lws2_32
206 gnunet_service_gns_SOURCES = \
207 gnunet-service-gns.c gnunet-service-gns.h \
208 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
209 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
210 gnunet_service_gns_LDADD = \
212 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
213 $(top_builddir)/src/identity/libgnunetidentity.la \
214 $(top_builddir)/src/revocation/libgnunetrevocation.la \
215 $(top_builddir)/src/statistics/libgnunetstatistics.la \
216 $(top_builddir)/src/util/libgnunetutil.la \
217 $(top_builddir)/src/dns/libgnunetdns.la \
218 $(top_builddir)/src/dht/libgnunetdht.la \
219 $(top_builddir)/src/namecache/libgnunetnamecache.la \
224 libw32nsp_la_SOURCES = \
226 libw32nsp_la_LIBADD = \
228 libw32nsp_la_LDFLAGS = \
229 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
230 -no-undefined -static-libgcc
232 libgnunetgns_la_SOURCES = \
233 gns_api.c gns_api.h \
235 libgnunetgns_la_LIBADD = \
236 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
237 $(top_builddir)/src/identity/libgnunetidentity.la \
238 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
239 libgnunetgns_la_LDFLAGS = \
243 libgnunet_plugin_block_gns_la_SOURCES = \
245 libgnunet_plugin_block_gns_la_LIBADD = \
246 $(top_builddir)/src/util/libgnunetutil.la \
247 $(top_builddir)/src/block/libgnunetblock.la \
248 $(top_builddir)/src/block/libgnunetblockgroup.la \
249 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
250 libgnunet_plugin_block_gns_la_LDFLAGS = \
258 test_gns_config_lookup.sh \
259 test_gns_ipv6_lookup.sh\
260 test_gns_txt_lookup.sh\
261 test_gns_mx_lookup.sh \
262 test_gns_gns2dns_lookup.sh \
263 test_gns_gns2dns_cname_lookup.sh \
264 test_gns_dht_lookup.sh\
265 test_gns_delegated_lookup.sh \
266 test_gns_at_lookup.sh\
267 test_gns_zkey_lookup.sh\
268 test_gns_rel_expiration.sh\
269 test_gns_soa_lookup.sh\
270 test_gns_revocation.sh\
271 test_gns_cname_lookup.sh \
276 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
277 TESTS = $(check_SCRIPTS)