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) \
81 bin_PROGRAMS += gnunet-bcd
85 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
87 plugin_LTLIBRARIES = \
88 libgnunet_plugin_block_gns.la \
89 libgnunet_plugin_gnsrecord_gns.la
94 plugin_LTLIBRARIES += libgnunet_plugin_rest_gns.la
98 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
99 plugin_gnsrecord_gns.c
100 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
101 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
102 $(top_builddir)/src/dns/libgnunetdnsparser.la \
103 $(top_builddir)/src/util/libgnunetutil.la \
105 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
109 gnunet_gns_SOURCES = \
113 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
114 $(top_builddir)/src/identity/libgnunetidentity.la \
115 $(top_builddir)/src/util/libgnunetutil.la \
119 gnunet_bcd_SOURCES = \
122 $(top_builddir)/src/util/libgnunetutil.la \
123 $(GN_LIBINTL) -lmicrohttpd
126 gnunet_dns2gns_SOURCES = \
128 gnunet_dns2gns_LDADD = \
129 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
131 $(top_builddir)/src/util/libgnunetutil.la \
132 $(top_builddir)/src/identity/libgnunetidentity.la \
133 $(top_builddir)/src/dns/libgnunetdnsparser.la \
134 $(top_builddir)/src/dns/libgnunetdnsstub.la \
138 HIJACKBIN = gnunet-dns2gns
140 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
145 gnunet_gns_proxy_SOURCES = \
147 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
148 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
150 $(top_builddir)/src/identity/libgnunetidentity.la \
151 $(top_builddir)/src/util/libgnunetutil.la \
154 gnunet_gns_proxy_LDADD += -lgnutls-dane
157 gnunet_gns_helper_service_w32_SOURCES = \
158 gnunet-gns-helper-service-w32.c
159 gnunet_gns_helper_service_w32_LDADD = \
161 $(top_builddir)/src/identity/libgnunetidentity.la \
162 $(top_builddir)/src/util/libgnunetutil.la \
165 gnunet_gns_import_SOURCES = \
167 gnunet_gns_import_LDADD = \
168 $(top_builddir)/src/identity/libgnunetidentity.la \
169 $(top_builddir)/src/namestore/libgnunetnamestore.la \
170 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
171 $(top_builddir)/src/util/libgnunetutil.la \
175 w32nsp_install_SOURCES = \
177 w32nsp_install_LDADD = -lws2_32
179 w32nsp_uninstall_SOURCES = \
181 w32nsp_uninstall_LDADD = -lws2_32
183 w32nsp_resolve_SOURCES = \
185 w32nsp_resolve_LDADD = -lws2_32
187 gnunet_service_gns_SOURCES = \
188 gnunet-service-gns.c gnunet-service-gns.h \
189 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
190 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
191 gnunet_service_gns_LDADD = \
193 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
194 $(top_builddir)/src/identity/libgnunetidentity.la \
195 $(top_builddir)/src/revocation/libgnunetrevocation.la \
196 $(top_builddir)/src/statistics/libgnunetstatistics.la \
197 $(top_builddir)/src/util/libgnunetutil.la \
198 $(top_builddir)/src/dns/libgnunetdns.la \
199 $(top_builddir)/src/dns/libgnunetdnsparser.la \
200 $(top_builddir)/src/dns/libgnunetdnsstub.la \
201 $(top_builddir)/src/dht/libgnunetdht.la \
202 $(top_builddir)/src/tun/libgnunettun.la \
203 $(top_builddir)/src/namecache/libgnunetnamecache.la \
208 libw32nsp_la_SOURCES = \
210 libw32nsp_la_LIBADD = \
212 libw32nsp_la_LDFLAGS = \
213 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
214 -no-undefined -static-libgcc
216 libgnunetgns_la_SOURCES = \
218 libgnunetgns_la_LIBADD = \
219 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
220 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
221 libgnunetgns_la_LDFLAGS = \
225 libgnunet_plugin_block_gns_la_SOURCES = \
227 libgnunet_plugin_block_gns_la_LIBADD = \
228 $(top_builddir)/src/util/libgnunetutil.la \
229 $(top_builddir)/src/block/libgnunetblock.la \
230 $(top_builddir)/src/block/libgnunetblockgroup.la \
231 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
232 libgnunet_plugin_block_gns_la_LDFLAGS = \
235 libgnunet_plugin_rest_gns_la_SOURCES = \
237 libgnunet_plugin_rest_gns_la_LIBADD = \
239 $(top_builddir)/src/rest/libgnunetrest.la \
240 $(top_builddir)/src/identity/libgnunetidentity.la \
241 $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
242 $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
243 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
244 $(LTLIBINTL) -ljansson -lmicrohttpd
245 libgnunet_plugin_rest_gns_la_LDFLAGS = \
251 test_gns_ipv6_lookup.sh\
252 test_gns_txt_lookup.sh\
253 test_gns_mx_lookup.sh \
254 test_gns_gns2dns_lookup.sh \
255 test_gns_dht_lookup.sh\
256 test_gns_delegated_lookup.sh \
257 test_gns_plus_lookup.sh\
258 test_gns_zkey_lookup.sh\
259 test_gns_rel_expiration.sh\
260 test_gns_soa_lookup.sh\
261 test_gns_revocation.sh\
262 test_gns_cname_lookup.sh
266 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
267 TESTS = $(check_SCRIPTS)