1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
8 SUBDIRS = . $(NSS_SUBDIR)
11 gnunet-gns-proxy-ca.template
14 test_gns_defaults.conf \
15 test_gns_lookup.conf \
17 test_gns_simple_lookup.conf \
19 gnunet-gns-proxy-setup-ca.in \
20 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
21 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
22 zonefiles/test_zonekey \
26 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
29 AM_CFLAGS = --coverage -O0
32 pkgcfgdir = $(pkgdatadir)/config.d/
34 libexecdir= $(pkglibdir)/libexec/
36 plugindir = $(libdir)/gnunet
48 DO_PROXY=gnunet-gns-proxy
50 CPP_GNURL=@LIBGNURL_CPPFLAGS@
53 DO_PROXY=gnunet-gns-proxy
55 CPP_GNURL=@LIBCURL_CPPFLAGS@
74 bin_PROGRAMS += gnunet-bcd
80 REST_PLUGIN = libgnunet_plugin_rest_gns.la
84 plugin_LTLIBRARIES = \
85 libgnunet_plugin_block_gns.la \
86 libgnunet_plugin_gnsrecord_gns.la \
91 gnunet-gns-proxy-setup-ca
93 # See: https://www.gnu.org/software/automake/manual/html_node/Scripts.html#Scripts
94 do_subst = sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
96 gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
97 $(do_subst) < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
98 chmod +x gnunet-gns-proxy-setup-ca
101 libgnunet_plugin_rest_gns_la_SOURCES = \
103 libgnunet_plugin_rest_gns_la_LIBADD = \
104 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
106 $(top_builddir)/src/rest/libgnunetrest.la \
107 $(top_builddir)/src/identity/libgnunetidentity.la \
108 $(top_builddir)/src/json/libgnunetjson.la \
109 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
110 $(LTLIBINTL) -ljansson $(MHD_LIBS)
111 libgnunet_plugin_rest_gns_la_LDFLAGS = \
113 libgnunet_plugin_rest_gns_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
116 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
117 plugin_gnsrecord_gns.c
118 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
119 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
120 $(top_builddir)/src/util/libgnunetutil.la \
122 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
126 gnunet_gns_SOURCES = \
130 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
131 $(top_builddir)/src/util/libgnunetutil.la \
134 gnunet_gns_benchmark_SOURCES = \
135 gnunet-gns-benchmark.c
136 gnunet_gns_benchmark_LDADD = \
138 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
139 $(top_builddir)/src/util/libgnunetutil.la \
143 gnunet_bcd_SOURCES = \
146 $(top_builddir)/src/util/libgnunetutil.la \
147 $(GN_LIBINTL) $(MHD_LIBS)
148 gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
151 gnunet_dns2gns_SOURCES = \
153 gnunet_dns2gns_LDADD = \
154 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
156 $(top_builddir)/src/util/libgnunetutil.la \
157 $(top_builddir)/src/identity/libgnunetidentity.la \
161 SUDO_OR_DOAS_BINARY= $(SUDO_BINARY)
164 SUDO_OR_DOAS_BINARY= $(DOAS_BINARY)
169 HIJACKBIN = gnunet-dns2gns
171 $(SUDO_OR_DOAS_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
176 gnunet_gns_proxy_SOURCES = \
178 gnunet_gns_proxy_LDADD = $(MHD_LIBS) $(LIB_GNURL) -lgnutls \
180 $(top_builddir)/src/identity/libgnunetidentity.la \
181 $(top_builddir)/src/util/libgnunetutil.la \
184 gnunet_gns_proxy_LDADD += -lgnutls-dane
186 gnunet_gns_proxy_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
188 test_gns_proxy_SOURCES = \
190 test_gns_proxy_LDADD = $(MHD_LIBS) $(LIB_GNURL) -lgnutls \
191 $(top_builddir)/src/util/libgnunetutil.la \
193 test_gns_proxy_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
195 #gnunet_gns_import_SOURCES = \
196 # gnunet-gns-import.c
197 #gnunet_gns_import_LDADD = \
198 # $(top_builddir)/src/identity/libgnunetidentity.la \
199 # $(top_builddir)/src/namestore/libgnunetnamestore.la \
200 # $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
201 # $(top_builddir)/src/util/libgnunetutil.la \
205 gnunet_service_gns_SOURCES = \
206 gnunet-service-gns.c gnunet-service-gns.h \
207 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
208 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
209 gnunet_service_gns_LDADD = \
211 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
212 $(top_builddir)/src/identity/libgnunetidentity.la \
213 $(top_builddir)/src/revocation/libgnunetrevocation.la \
214 $(top_builddir)/src/statistics/libgnunetstatistics.la \
215 $(top_builddir)/src/util/libgnunetutil.la \
216 $(top_builddir)/src/dns/libgnunetdns.la \
217 $(top_builddir)/src/dht/libgnunetdht.la \
218 $(top_builddir)/src/namecache/libgnunetnamecache.la \
223 libgnunetgns_la_SOURCES = \
224 gns_api.c gns_api.h \
226 libgnunetgns_la_LIBADD = \
227 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
228 $(top_builddir)/src/identity/libgnunetidentity.la \
229 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
230 libgnunetgns_la_LDFLAGS = \
235 libgnunet_plugin_block_gns_la_SOURCES = \
237 libgnunet_plugin_block_gns_la_LIBADD = \
238 $(top_builddir)/src/util/libgnunetutil.la \
239 $(top_builddir)/src/block/libgnunetblock.la \
240 $(top_builddir)/src/block/libgnunetblockgroup.la \
241 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
242 libgnunet_plugin_block_gns_la_LDFLAGS = \
257 test_gns_config_lookup.sh \
258 test_gns_ipv6_lookup.sh\
259 test_gns_txt_lookup.sh\
260 test_gns_caa_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
282 test_plugin_rest_gns.sh
289 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
290 TESTS = $(check_SCRIPTS)