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
26 test_gns_defaults.conf \
27 test_gns_lookup.conf \
29 test_gns_simple_lookup.conf \
31 gnunet-gns-proxy-setup-ca.in \
32 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
33 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
34 zonefiles/test_zonekey \
39 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
42 AM_CFLAGS = --coverage -O0
45 pkgcfgdir = $(pkgdatadir)/config.d/
47 libexecdir= $(pkglibdir)/libexec/
49 plugindir = $(libdir)/gnunet
61 DO_PROXY=gnunet-gns-proxy
63 CPP_GNURL=@LIBGNURL_CPPFLAGS@
66 DO_PROXY=gnunet-gns-proxy
68 CPP_GNURL=@LIBCURL_CPPFLAGS@
87 bin_PROGRAMS += gnunet-bcd
93 REST_PLUGIN = libgnunet_plugin_rest_gns.la
97 plugin_LTLIBRARIES = \
98 libgnunet_plugin_block_gns.la \
99 libgnunet_plugin_gnsrecord_gns.la \
104 gnunet-gns-proxy-setup-ca
106 gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
107 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
108 @chmod +x gnunet-gns-proxy-setup-ca
110 test_gnunet_gns.sh: test_gnunet_gns.sh.in Makefile
111 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_gns.sh.in > test_gnunet_gns.sh
112 @chmod +x test_gnunet_gns.sh
114 CLEANFILES = test_gnunet_gns.sh
116 libgnunet_plugin_rest_gns_la_SOURCES = \
118 libgnunet_plugin_rest_gns_la_LIBADD = \
119 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
121 $(top_builddir)/src/rest/libgnunetrest.la \
122 $(top_builddir)/src/identity/libgnunetidentity.la \
123 $(top_builddir)/src/json/libgnunetjson.la \
124 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
125 $(LTLIBINTL) -ljansson $(MHD_LIBS)
126 libgnunet_plugin_rest_gns_la_LDFLAGS = \
128 libgnunet_plugin_rest_gns_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
131 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
132 plugin_gnsrecord_gns.c
133 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
134 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
135 $(top_builddir)/src/util/libgnunetutil.la \
137 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
141 gnunet_gns_SOURCES = \
145 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
146 $(top_builddir)/src/util/libgnunetutil.la \
147 $(LIBIDN) $(LIBIDN2) \
150 gnunet_gns_benchmark_SOURCES = \
151 gnunet-gns-benchmark.c
152 gnunet_gns_benchmark_LDADD = \
154 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
155 $(top_builddir)/src/util/libgnunetutil.la \
159 gnunet_bcd_SOURCES = \
162 $(top_builddir)/src/util/libgnunetutil.la \
163 $(GN_LIBINTL) $(MHD_LIBS)
164 gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
167 gnunet_dns2gns_SOURCES = \
169 gnunet_dns2gns_LDADD = \
170 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
172 $(top_builddir)/src/util/libgnunetutil.la \
173 $(top_builddir)/src/identity/libgnunetidentity.la \
177 SUDO_OR_DOAS_BINARY= $(SUDO_BINARY)
180 SUDO_OR_DOAS_BINARY= $(DOAS_BINARY)
185 HIJACKBIN = gnunet-dns2gns
187 $(SUDO_OR_DOAS_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
192 gnunet_gns_proxy_SOURCES = \
194 gnunet_gns_proxy_LDADD = $(MHD_LIBS) $(LIB_GNURL) -lgnutls \
196 $(top_builddir)/src/identity/libgnunetidentity.la \
197 $(top_builddir)/src/util/libgnunetutil.la \
200 gnunet_gns_proxy_LDADD += -lgnutls-dane
202 gnunet_gns_proxy_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
204 test_gns_proxy_SOURCES = \
206 test_gns_proxy_LDADD = $(MHD_LIBS) $(LIB_GNURL) -lgnutls \
207 $(top_builddir)/src/util/libgnunetutil.la \
209 test_gns_proxy_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
211 #gnunet_gns_import_SOURCES = \
212 # gnunet-gns-import.c
213 #gnunet_gns_import_LDADD = \
214 # $(top_builddir)/src/identity/libgnunetidentity.la \
215 # $(top_builddir)/src/namestore/libgnunetnamestore.la \
216 # $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
217 # $(top_builddir)/src/util/libgnunetutil.la \
221 gnunet_service_gns_SOURCES = \
222 gnunet-service-gns.c gnunet-service-gns.h \
223 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
224 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
225 gnunet_service_gns_LDADD = \
227 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
228 $(top_builddir)/src/identity/libgnunetidentity.la \
229 $(top_builddir)/src/revocation/libgnunetrevocation.la \
230 $(top_builddir)/src/statistics/libgnunetstatistics.la \
231 $(top_builddir)/src/util/libgnunetutil.la \
232 $(top_builddir)/src/dns/libgnunetdns.la \
233 $(top_builddir)/src/dht/libgnunetdht.la \
234 $(top_builddir)/src/namecache/libgnunetnamecache.la \
235 $(LIBIDN) $(LIBIDN2) \
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 = \
252 libgnunet_plugin_block_gns_la_SOURCES = \
254 libgnunet_plugin_block_gns_la_LIBADD = \
255 $(top_builddir)/src/util/libgnunetutil.la \
256 $(top_builddir)/src/block/libgnunetblock.la \
257 $(top_builddir)/src/block/libgnunetblockgroup.la \
258 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
259 libgnunet_plugin_block_gns_la_LDFLAGS = \
274 test_gns_config_lookup.sh \
275 test_gns_ipv6_lookup.sh\
276 test_gns_txt_lookup.sh\
277 test_gns_caa_lookup.sh\
278 test_gns_mx_lookup.sh \
279 test_gns_gns2dns_lookup.sh \
280 test_gns_gns2dns_zkey_lookup.sh \
281 test_gns_gns2dns_cname_lookup.sh \
282 test_gns_dht_lookup.sh\
283 test_gns_delegated_lookup.sh \
284 test_gns_at_lookup.sh\
285 test_gns_zkey_lookup.sh\
286 test_gns_rel_expiration.sh\
287 test_gns_soa_lookup.sh\
288 test_gns_revocation.sh\
289 test_gns_cname_lookup.sh
300 test_plugin_rest_gns.sh
307 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
308 TESTS = $(check_SCRIPTS)