1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
14 libexecdir= $(pkglibdir)/libexec/
16 plugindir = $(libdir)/gnunet
22 HIJACKBIN = gnunet-helper-dns
24 $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true
33 gnunet-service-dns $(HIJACKBIN)
37 gnunet-dns-redirector \
40 plugin_LTLIBRARIES = \
41 libgnunet_plugin_block_dns.la
48 gnunet_helper_dns_SOURCES = \
52 gnunet_dns_monitor_SOURCES = \
54 gnunet_dns_monitor_LDADD = \
56 $(top_builddir)/src/util/libgnunetutil.la \
59 gnunet_zonewalk_SOURCES = \
61 gnunet_zonewalk_LDADD = \
62 $(top_builddir)/src/util/libgnunetutil.la \
65 gnunet_dns_redirector_SOURCES = \
66 gnunet-dns-redirector.c
67 gnunet_dns_redirector_LDADD = \
69 $(top_builddir)/src/util/libgnunetutil.la \
72 gnunet_service_dns_SOURCES = \
74 gnunet_service_dns_LDADD = \
75 $(top_builddir)/src/statistics/libgnunetstatistics.la \
76 $(top_builddir)/src/util/libgnunetutil.la \
79 libgnunetdns_la_SOURCES = \
81 libgnunetdns_la_LIBADD = \
82 $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
83 libgnunetdns_la_LDFLAGS = \
87 libgnunet_plugin_block_dns_la_SOURCES = \
89 libgnunet_plugin_block_dns_la_LIBADD = \
90 $(top_builddir)/src/block/libgnunetblockgroup.la \
91 $(top_builddir)/src/util/libgnunetutil.la
92 libgnunet_plugin_block_dns_la_LDFLAGS = \
93 $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
97 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
98 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)