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 \
17 gnunet-gns-proxy-setup-ca \
18 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
19 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
20 zonefiles/test_zonekey \
24 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
25 DO_W32_HELPER = gnunet-gns-helper-service-w32
26 DO_W32_NSP = libw32nsp.la
27 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
28 DO_W32_HS_CONF = gns-helper-service-w32.conf
29 DO_NONPOSIX_GNSIMPORT = gnunet-gns-import
31 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
34 AM_CFLAGS = --coverage -O0
37 pkgcfgdir = $(pkgdatadir)/config.d/
39 libexecdir= $(pkglibdir)/libexec/
41 plugindir = $(libdir)/gnunet
55 DO_PROXY=gnunet-gns-proxy
57 CPP_GNURL=@LIBGNURL_CPPFLAGS@
60 DO_PROXY=gnunet-gns-proxy
62 CPP_GNURL=@LIBCURL_CPPFLAGS@
76 $(DO_NONPOSIX_GNSIMPORT) \
87 bin_PROGRAMS += gnunet-bcd
91 plugin_LTLIBRARIES = \
92 libgnunet_plugin_block_gns.la \
93 libgnunet_plugin_gnsrecord_gns.la
97 xOPENSSL=$(shell which openssl)
98 do_subst_openssl = $(SED) -e 's,[@]OPENSSLBIN[@],${xOPENSSL},g'
102 xCERTUTIL=$(shell which certutil)
103 do_subst_certutil = $(SED) -e 's,[@]CERTUTILBIN[@],${xCERTUTIL},g'
106 xPFX=$(pkgdatadir)/openssl.cnf
107 do_subst = $(SED) -e 's,[@]PREFIX[@],${xPFX},g'
109 gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in
110 $(do_subst) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
111 chmod +x gnunet-gns-proxy-setup-ca
113 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
115 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
116 plugin_gnsrecord_gns.c
117 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
118 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
119 $(top_builddir)/src/util/libgnunetutil.la \
121 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
125 gnunet_gns_SOURCES = \
129 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
133 gnunet_gns_benchmark_SOURCES = \
134 gnunet-gns-benchmark.c
135 gnunet_gns_benchmark_LDADD = \
137 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
138 $(top_builddir)/src/util/libgnunetutil.la \
142 gnunet_bcd_SOURCES = \
145 $(top_builddir)/src/util/libgnunetutil.la \
146 $(GN_LIBINTL) -lmicrohttpd
149 gnunet_dns2gns_SOURCES = \
151 gnunet_dns2gns_LDADD = \
152 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
154 $(top_builddir)/src/util/libgnunetutil.la \
155 $(top_builddir)/src/identity/libgnunetidentity.la \
159 HIJACKBIN = gnunet-dns2gns
161 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
166 gnunet_gns_proxy_SOURCES = \
168 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
169 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
171 $(top_builddir)/src/identity/libgnunetidentity.la \
172 $(top_builddir)/src/util/libgnunetutil.la \
175 gnunet_gns_proxy_LDADD += -lgnutls-dane
178 test_gns_proxy_SOURCES = \
180 test_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
181 $(top_builddir)/src/util/libgnunetutil.la \
184 gnunet_gns_helper_service_w32_SOURCES = \
185 gnunet-gns-helper-service-w32.c
186 gnunet_gns_helper_service_w32_LDADD = \
188 $(top_builddir)/src/identity/libgnunetidentity.la \
189 $(top_builddir)/src/util/libgnunetutil.la \
192 gnunet_gns_import_SOURCES = \
194 gnunet_gns_import_LDADD = \
195 $(top_builddir)/src/identity/libgnunetidentity.la \
196 $(top_builddir)/src/namestore/libgnunetnamestore.la \
197 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
198 $(top_builddir)/src/util/libgnunetutil.la \
202 w32nsp_install_SOURCES = \
204 w32nsp_install_LDADD = -lws2_32
206 w32nsp_uninstall_SOURCES = \
208 w32nsp_uninstall_LDADD = -lws2_32
210 w32nsp_resolve_SOURCES = \
212 w32nsp_resolve_LDADD = -lws2_32
214 gnunet_service_gns_SOURCES = \
215 gnunet-service-gns.c gnunet-service-gns.h \
216 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
217 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
218 gnunet_service_gns_LDADD = \
220 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
221 $(top_builddir)/src/identity/libgnunetidentity.la \
222 $(top_builddir)/src/revocation/libgnunetrevocation.la \
223 $(top_builddir)/src/statistics/libgnunetstatistics.la \
224 $(top_builddir)/src/util/libgnunetutil.la \
225 $(top_builddir)/src/dns/libgnunetdns.la \
226 $(top_builddir)/src/dht/libgnunetdht.la \
227 $(top_builddir)/src/namecache/libgnunetnamecache.la \
232 libw32nsp_la_SOURCES = \
234 libw32nsp_la_LIBADD = \
236 libw32nsp_la_LDFLAGS = \
237 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
238 -no-undefined -static-libgcc
240 libgnunetgns_la_SOURCES = \
241 gns_api.c gns_api.h \
243 libgnunetgns_la_LIBADD = \
244 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
245 $(top_builddir)/src/identity/libgnunetidentity.la \
246 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
247 libgnunetgns_la_LDFLAGS = \
251 libgnunet_plugin_block_gns_la_SOURCES = \
253 libgnunet_plugin_block_gns_la_LIBADD = \
254 $(top_builddir)/src/util/libgnunetutil.la \
255 $(top_builddir)/src/block/libgnunetblock.la \
256 $(top_builddir)/src/block/libgnunetblockgroup.la \
257 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
258 libgnunet_plugin_block_gns_la_LDFLAGS = \
266 test_gns_config_lookup.sh \
267 test_gns_ipv6_lookup.sh\
268 test_gns_txt_lookup.sh\
269 test_gns_mx_lookup.sh \
270 test_gns_gns2dns_lookup.sh \
271 test_gns_gns2dns_cname_lookup.sh \
272 test_gns_dht_lookup.sh\
273 test_gns_delegated_lookup.sh \
274 test_gns_at_lookup.sh\
275 test_gns_zkey_lookup.sh\
276 test_gns_rel_expiration.sh\
277 test_gns_soa_lookup.sh\
278 test_gns_revocation.sh\
279 test_gns_cname_lookup.sh \
284 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
285 TESTS = $(check_SCRIPTS)