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) \
84 bin_PROGRAMS += gnunet-bcd
88 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
90 plugin_LTLIBRARIES = \
91 libgnunet_plugin_block_gns.la \
92 libgnunet_plugin_gnsrecord_gns.la
95 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
96 plugin_gnsrecord_gns.c
97 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
98 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
99 $(top_builddir)/src/util/libgnunetutil.la \
101 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
105 gnunet_gns_SOURCES = \
109 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
110 $(top_builddir)/src/util/libgnunetutil.la \
113 gnunet_gns_benchmark_SOURCES = \
114 gnunet-gns-benchmark.c
115 gnunet_gns_benchmark_LDADD = \
117 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
118 $(top_builddir)/src/util/libgnunetutil.la \
122 gnunet_bcd_SOURCES = \
125 $(top_builddir)/src/util/libgnunetutil.la \
126 $(GN_LIBINTL) -lmicrohttpd
129 gnunet_dns2gns_SOURCES = \
131 gnunet_dns2gns_LDADD = \
132 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
134 $(top_builddir)/src/util/libgnunetutil.la \
135 $(top_builddir)/src/identity/libgnunetidentity.la \
139 HIJACKBIN = gnunet-dns2gns
141 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
146 gnunet_gns_proxy_SOURCES = \
148 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
149 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
151 $(top_builddir)/src/identity/libgnunetidentity.la \
152 $(top_builddir)/src/util/libgnunetutil.la \
155 gnunet_gns_proxy_LDADD += -lgnutls-dane
158 test_gns_proxy_SOURCES = \
160 test_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
161 $(top_builddir)/src/util/libgnunetutil.la \
164 gnunet_gns_helper_service_w32_SOURCES = \
165 gnunet-gns-helper-service-w32.c
166 gnunet_gns_helper_service_w32_LDADD = \
168 $(top_builddir)/src/identity/libgnunetidentity.la \
169 $(top_builddir)/src/util/libgnunetutil.la \
172 gnunet_gns_import_SOURCES = \
174 gnunet_gns_import_LDADD = \
175 $(top_builddir)/src/identity/libgnunetidentity.la \
176 $(top_builddir)/src/namestore/libgnunetnamestore.la \
177 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
178 $(top_builddir)/src/util/libgnunetutil.la \
182 w32nsp_install_SOURCES = \
184 w32nsp_install_LDADD = -lws2_32
186 w32nsp_uninstall_SOURCES = \
188 w32nsp_uninstall_LDADD = -lws2_32
190 w32nsp_resolve_SOURCES = \
192 w32nsp_resolve_LDADD = -lws2_32
194 gnunet_service_gns_SOURCES = \
195 gnunet-service-gns.c gnunet-service-gns.h \
196 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.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/dht/libgnunetdht.la \
207 $(top_builddir)/src/namecache/libgnunetnamecache.la \
212 libw32nsp_la_SOURCES = \
214 libw32nsp_la_LIBADD = \
216 libw32nsp_la_LDFLAGS = \
217 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
218 -no-undefined -static-libgcc
220 libgnunetgns_la_SOURCES = \
221 gns_api.c gns_api.h \
223 libgnunetgns_la_LIBADD = \
224 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
225 $(top_builddir)/src/identity/libgnunetidentity.la \
226 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
227 libgnunetgns_la_LDFLAGS = \
231 libgnunet_plugin_block_gns_la_SOURCES = \
233 libgnunet_plugin_block_gns_la_LIBADD = \
234 $(top_builddir)/src/util/libgnunetutil.la \
235 $(top_builddir)/src/block/libgnunetblock.la \
236 $(top_builddir)/src/block/libgnunetblockgroup.la \
237 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
238 libgnunet_plugin_block_gns_la_LDFLAGS = \
246 test_gns_config_lookup.sh \
247 test_gns_ipv6_lookup.sh\
248 test_gns_txt_lookup.sh\
249 test_gns_mx_lookup.sh \
250 test_gns_gns2dns_lookup.sh \
251 test_gns_gns2dns_cname_lookup.sh \
252 test_gns_dht_lookup.sh\
253 test_gns_delegated_lookup.sh \
254 test_gns_at_lookup.sh\
255 test_gns_zkey_lookup.sh\
256 test_gns_rel_expiration.sh\
257 test_gns_soa_lookup.sh\
258 test_gns_revocation.sh\
259 test_gns_cname_lookup.sh \
264 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
265 TESTS = $(check_SCRIPTS)