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 \
20 gnunet-gns-proxy-setup-ca.in \
21 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
22 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
23 zonefiles/test_zonekey \
27 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
30 AM_CFLAGS = --coverage -O0
33 pkgcfgdir = $(pkgdatadir)/config.d/
35 libexecdir= $(pkglibdir)/libexec/
37 plugindir = $(libdir)/gnunet
49 DO_PROXY=gnunet-gns-proxy
51 CPP_GNURL=@LIBGNURL_CPPFLAGS@
54 DO_PROXY=gnunet-gns-proxy
56 CPP_GNURL=@LIBCURL_CPPFLAGS@
75 bin_PROGRAMS += gnunet-bcd
81 REST_PLUGIN = libgnunet_plugin_rest_gns.la
85 plugin_LTLIBRARIES = \
86 libgnunet_plugin_block_gns.la \
87 libgnunet_plugin_gnsrecord_gns.la \
92 gnunet-gns-proxy-setup-ca
94 # See: https://www.gnu.org/software/automake/manual/html_node/Scripts.html#Scripts
95 do_subst = sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
97 gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
98 $(do_subst) < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
99 chmod +x gnunet-gns-proxy-setup-ca
102 libgnunet_plugin_rest_gns_la_SOURCES = \
104 libgnunet_plugin_rest_gns_la_LIBADD = \
105 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
107 $(top_builddir)/src/rest/libgnunetrest.la \
108 $(top_builddir)/src/identity/libgnunetidentity.la \
109 $(top_builddir)/src/json/libgnunetjson.la \
110 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
111 $(LTLIBINTL) -ljansson $(MHD_LIBS)
112 libgnunet_plugin_rest_gns_la_LDFLAGS = \
114 libgnunet_plugin_rest_gns_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
117 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
118 plugin_gnsrecord_gns.c
119 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
120 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
121 $(top_builddir)/src/util/libgnunetutil.la \
123 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
127 gnunet_gns_SOURCES = \
131 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
132 $(top_builddir)/src/util/libgnunetutil.la \
135 gnunet_gns_benchmark_SOURCES = \
136 gnunet-gns-benchmark.c
137 gnunet_gns_benchmark_LDADD = \
139 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
140 $(top_builddir)/src/util/libgnunetutil.la \
144 gnunet_bcd_SOURCES = \
147 $(top_builddir)/src/util/libgnunetutil.la \
148 $(GN_LIBINTL) $(MHD_LIBS)
149 gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
152 gnunet_dns2gns_SOURCES = \
154 gnunet_dns2gns_LDADD = \
155 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
157 $(top_builddir)/src/util/libgnunetutil.la \
158 $(top_builddir)/src/identity/libgnunetidentity.la \
162 HIJACKBIN = gnunet-dns2gns
164 $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
169 gnunet_gns_proxy_SOURCES = \
171 gnunet_gns_proxy_LDADD = $(MHD_LIBS) $(LIB_GNURL) -lgnutls \
173 $(top_builddir)/src/identity/libgnunetidentity.la \
174 $(top_builddir)/src/util/libgnunetutil.la \
177 gnunet_gns_proxy_LDADD += -lgnutls-dane
179 gnunet_gns_proxy_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
181 test_gns_proxy_SOURCES = \
183 test_gns_proxy_LDADD = $(MHD_LIBS) $(LIB_GNURL) -lgnutls \
184 $(top_builddir)/src/util/libgnunetutil.la \
186 test_gns_proxy_CFLAGS = $(MHD_CFLAGS) $(CPP_GNURL) $(AM_CFLAGS)
188 #gnunet_gns_import_SOURCES = \
189 # gnunet-gns-import.c
190 #gnunet_gns_import_LDADD = \
191 # $(top_builddir)/src/identity/libgnunetidentity.la \
192 # $(top_builddir)/src/namestore/libgnunetnamestore.la \
193 # $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
194 # $(top_builddir)/src/util/libgnunetutil.la \
198 gnunet_service_gns_SOURCES = \
199 gnunet-service-gns.c gnunet-service-gns.h \
200 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
201 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
202 gnunet_service_gns_LDADD = \
204 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
205 $(top_builddir)/src/identity/libgnunetidentity.la \
206 $(top_builddir)/src/revocation/libgnunetrevocation.la \
207 $(top_builddir)/src/statistics/libgnunetstatistics.la \
208 $(top_builddir)/src/util/libgnunetutil.la \
209 $(top_builddir)/src/dns/libgnunetdns.la \
210 $(top_builddir)/src/dht/libgnunetdht.la \
211 $(top_builddir)/src/namecache/libgnunetnamecache.la \
216 libgnunetgns_la_SOURCES = \
217 gns_api.c gns_api.h \
219 libgnunetgns_la_LIBADD = \
220 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
221 $(top_builddir)/src/identity/libgnunetidentity.la \
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 = \
248 test_gns_config_lookup.sh \
249 test_gns_ipv6_lookup.sh\
250 test_gns_txt_lookup.sh\
251 test_gns_caa_lookup.sh\
252 test_gns_mx_lookup.sh \
253 test_gns_gns2dns_lookup.sh \
254 test_gns_gns2dns_cname_lookup.sh \
255 test_gns_dht_lookup.sh\
256 test_gns_delegated_lookup.sh \
257 test_gns_at_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
276 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
277 TESTS = $(check_SCRIPTS)