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 \
15 test_gns_nick_shorten.conf \
17 test_gns_simple_lookup.conf \
18 gns-helper-service-w32.conf \
20 gnunet-gns-proxy-setup-ca \
21 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
22 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
23 zonefiles/test_zonekey \
27 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
28 DO_W32_HELPER = gnunet-gns-helper-service-w32
29 DO_W32_NSP = libw32nsp.la
30 DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
31 DO_W32_HS_CONF = gns-helper-service-w32.conf
32 DO_NONPOSIX_GNSIMPORT = gnunet-gns-import
34 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
37 AM_CFLAGS = --coverage -O0
40 pkgcfgdir = $(pkgdatadir)/config.d/
42 libexecdir= $(pkglibdir)/libexec/
44 plugindir = $(libdir)/gnunet
55 lib_LTLIBRARIES += libgnunet_plugin_rest_gns.la
61 DO_PROXY=gnunet-gns-proxy
63 CPP_GNURL=@LIBGNURL_CPPFLAGS@
66 DO_PROXY=gnunet-gns-proxy
68 CPP_GNURL=@LIBCURL_CPPFLAGS@
82 $(DO_NONPOSIX_GNSIMPORT) \
87 bin_PROGRAMS += gnunet-bcd
91 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
93 plugin_LTLIBRARIES = \
94 libgnunet_plugin_block_gns.la \
95 libgnunet_plugin_gnsrecord_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/namestore/libgnunetnamestore.la \
115 $(top_builddir)/src/identity/libgnunetidentity.la \
116 $(top_builddir)/src/util/libgnunetutil.la \
120 gnunet_bcd_SOURCES = \
123 $(top_builddir)/src/util/libgnunetutil.la \
124 $(GN_LIBINTL) -lmicrohttpd
127 gnunet_dns2gns_SOURCES = \
129 gnunet_dns2gns_LDADD = \
130 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
132 $(top_builddir)/src/util/libgnunetutil.la \
133 $(top_builddir)/src/identity/libgnunetidentity.la \
134 $(top_builddir)/src/namestore/libgnunetnamestore.la \
135 $(top_builddir)/src/dns/libgnunetdnsparser.la \
136 $(top_builddir)/src/dns/libgnunetdnsstub.la \
139 gnunet_gns_proxy_SOURCES = \
141 gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
142 gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
144 $(top_builddir)/src/identity/libgnunetidentity.la \
145 $(top_builddir)/src/util/libgnunetutil.la \
148 gnunet_gns_proxy_LDADD += -lgnutls-dane
151 gnunet_gns_helper_service_w32_SOURCES = \
152 gnunet-gns-helper-service-w32.c
153 gnunet_gns_helper_service_w32_LDADD = \
155 $(top_builddir)/src/identity/libgnunetidentity.la \
156 $(top_builddir)/src/util/libgnunetutil.la \
159 gnunet_gns_import_SOURCES = \
161 gnunet_gns_import_LDADD = \
162 $(top_builddir)/src/identity/libgnunetidentity.la \
163 $(top_builddir)/src/namestore/libgnunetnamestore.la \
164 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
165 $(top_builddir)/src/util/libgnunetutil.la \
169 w32nsp_install_SOURCES = \
171 w32nsp_install_LDADD = -lws2_32
173 w32nsp_uninstall_SOURCES = \
175 w32nsp_uninstall_LDADD = -lws2_32
177 w32nsp_resolve_SOURCES = \
179 w32nsp_resolve_LDADD = -lws2_32
181 gnunet_service_gns_SOURCES = \
182 gnunet-service-gns.c \
183 gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
184 gnunet-service-gns_shorten.c gnunet-service-gns_shorten.h \
185 gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
186 gnunet_service_gns_LDADD = \
188 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
189 $(top_builddir)/src/identity/libgnunetidentity.la \
190 $(top_builddir)/src/revocation/libgnunetrevocation.la \
191 $(top_builddir)/src/statistics/libgnunetstatistics.la \
192 $(top_builddir)/src/util/libgnunetutil.la \
193 $(top_builddir)/src/dns/libgnunetdns.la \
194 $(top_builddir)/src/dns/libgnunetdnsparser.la \
195 $(top_builddir)/src/dns/libgnunetdnsstub.la \
196 $(top_builddir)/src/dht/libgnunetdht.la \
197 $(top_builddir)/src/tun/libgnunettun.la \
198 $(top_builddir)/src/namecache/libgnunetnamecache.la \
199 $(top_builddir)/src/namestore/libgnunetnamestore.la \
204 libw32nsp_la_SOURCES = \
206 libw32nsp_la_LIBADD = \
208 libw32nsp_la_LDFLAGS = \
209 -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
210 -no-undefined -static-libgcc
212 libgnunetgns_la_SOURCES = \
214 libgnunetgns_la_LIBADD = \
215 $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
216 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
217 libgnunetgns_la_LDFLAGS = \
221 libgnunet_plugin_block_gns_la_SOURCES = \
223 libgnunet_plugin_block_gns_la_LIBADD = \
224 $(top_builddir)/src/util/libgnunetutil.la \
225 $(top_builddir)/src/block/libgnunetblock.la \
226 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
227 libgnunet_plugin_block_gns_la_LDFLAGS = \
230 libgnunet_plugin_rest_gns_la_SOURCES = \
232 libgnunet_plugin_rest_gns_la_LIBADD = \
234 $(top_builddir)/src/identity/libgnunetidentity.la \
235 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
236 $(LTLIBINTL) -ljansson -lmicrohttpd
237 libgnunet_plugin_rest_gns_la_LDFLAGS = \
243 test_gns_ipv6_lookup.sh\
244 test_gns_txt_lookup.sh\
245 test_gns_mx_lookup.sh \
246 test_gns_gns2dns_lookup.sh \
247 test_gns_dht_lookup.sh\
248 test_gns_delegated_lookup.sh \
249 test_gns_nick_shorten.sh\
250 test_gns_plus_lookup.sh\
251 test_gns_zkey_lookup.sh\
252 test_gns_rel_expiration.sh\
253 test_gns_soa_lookup.sh\
254 test_gns_revocation.sh\
255 test_gns_cname_lookup.sh
259 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
260 TESTS = $(check_SCRIPTS)