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 \
140 HIJACKBIN = gnunet-dns2gns
142 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
147 gnunet_gns_proxy_SOURCES = \
149 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
150 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
152 $(top_builddir)/src/identity/libgnunetidentity.la \
153 $(top_builddir)/src/util/libgnunetutil.la \
156 gnunet_gns_proxy_LDADD += -lgnutls-dane
159 gnunet_gns_helper_service_w32_SOURCES = \
160 gnunet-gns-helper-service-w32.c
161 gnunet_gns_helper_service_w32_LDADD = \
163 $(top_builddir)/src/identity/libgnunetidentity.la \
164 $(top_builddir)/src/util/libgnunetutil.la \
167 gnunet_gns_import_SOURCES = \
169 gnunet_gns_import_LDADD = \
170 $(top_builddir)/src/identity/libgnunetidentity.la \
171 $(top_builddir)/src/namestore/libgnunetnamestore.la \
172 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
173 $(top_builddir)/src/util/libgnunetutil.la \
177 w32nsp_install_SOURCES = \
179 w32nsp_install_LDADD = -lws2_32
181 w32nsp_uninstall_SOURCES = \
183 w32nsp_uninstall_LDADD = -lws2_32
185 w32nsp_resolve_SOURCES = \
187 w32nsp_resolve_LDADD = -lws2_32
189 gnunet_service_gns_SOURCES = \
190 gnunet-service-gns.c \
191 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
192 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
193 gnunet_service_gns_LDADD = \
195 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
196 $(top_builddir)/src/identity/libgnunetidentity.la \
197 $(top_builddir)/src/revocation/libgnunetrevocation.la \
198 $(top_builddir)/src/statistics/libgnunetstatistics.la \
199 $(top_builddir)/src/util/libgnunetutil.la \
200 $(top_builddir)/src/dns/libgnunetdns.la \
201 $(top_builddir)/src/dns/libgnunetdnsparser.la \
202 $(top_builddir)/src/dns/libgnunetdnsstub.la \
203 $(top_builddir)/src/dht/libgnunetdht.la \
204 $(top_builddir)/src/tun/libgnunettun.la \
205 $(top_builddir)/src/namecache/libgnunetnamecache.la \
210 libw32nsp_la_SOURCES = \
212 libw32nsp_la_LIBADD = \
214 libw32nsp_la_LDFLAGS = \
215 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
216 -no-undefined -static-libgcc
218 libgnunetgns_la_SOURCES = \
220 libgnunetgns_la_LIBADD = \
221 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
222 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
223 libgnunetgns_la_LDFLAGS = \
227 libgnunet_plugin_block_gns_la_SOURCES = \
229 libgnunet_plugin_block_gns_la_LIBADD = \
230 $(top_builddir)/src/util/libgnunetutil.la \
231 $(top_builddir)/src/block/libgnunetblock.la \
232 $(top_builddir)/src/block/libgnunetblockgroup.la \
233 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
234 libgnunet_plugin_block_gns_la_LDFLAGS = \
237 libgnunet_plugin_rest_gns_la_SOURCES = \
239 libgnunet_plugin_rest_gns_la_LIBADD = \
241 $(top_builddir)/src/rest/libgnunetrest.la \
242 $(top_builddir)/src/identity/libgnunetidentity.la \
243 $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
244 $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
245 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
246 $(LTLIBINTL) -ljansson -lmicrohttpd
247 libgnunet_plugin_rest_gns_la_LDFLAGS = \
253 test_gns_ipv6_lookup.sh\
254 test_gns_txt_lookup.sh\
255 test_gns_mx_lookup.sh \
256 test_gns_gns2dns_lookup.sh \
257 test_gns_dht_lookup.sh\
258 test_gns_delegated_lookup.sh \
259 test_gns_plus_lookup.sh\
260 test_gns_zkey_lookup.sh\
261 test_gns_rel_expiration.sh\
262 test_gns_soa_lookup.sh\
263 test_gns_revocation.sh\
264 test_gns_cname_lookup.sh
268 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
269 TESTS = $(check_SCRIPTS)