1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 AM_CFLAGS = --coverage -O0
8 pkgcfgdir= $(pkgdatadir)/config.d/
10 libexecdir= $(pkglibdir)/libexec/
12 plugindir = $(libdir)/gnunet
18 SUDO_OR_DOAS_BINARY= $(SUDO_BINARY)
21 SUDO_OR_DOAS_BINARY= $(DOAS_BINARY)
26 HIJACKBIN = gnunet-helper-dns
28 $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_OR_DOAS_BINARY) || true
37 gnunet-service-dns $(HIJACKBIN)
41 gnunet-dns-redirector \
44 plugin_LTLIBRARIES = \
45 libgnunet_plugin_block_dns.la
52 gnunet_helper_dns_SOURCES = \
56 gnunet_dns_monitor_SOURCES = \
58 gnunet_dns_monitor_LDADD = \
60 $(top_builddir)/src/util/libgnunetutil.la \
63 gnunet_zonewalk_SOURCES = \
65 gnunet_zonewalk_LDADD = \
66 $(top_builddir)/src/util/libgnunetutil.la \
69 gnunet_dns_redirector_SOURCES = \
70 gnunet-dns-redirector.c
71 gnunet_dns_redirector_LDADD = \
73 $(top_builddir)/src/util/libgnunetutil.la \
76 gnunet_service_dns_SOURCES = \
78 gnunet_service_dns_LDADD = \
79 $(top_builddir)/src/statistics/libgnunetstatistics.la \
80 $(top_builddir)/src/util/libgnunetutil.la \
83 libgnunetdns_la_SOURCES = \
85 libgnunetdns_la_LIBADD = \
86 $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
87 libgnunetdns_la_LDFLAGS = \
91 libgnunet_plugin_block_dns_la_SOURCES = \
93 libgnunet_plugin_block_dns_la_LIBADD = \
94 $(top_builddir)/src/block/libgnunetblockgroup.la \
95 $(top_builddir)/src/util/libgnunetutil.la
96 libgnunet_plugin_block_dns_la_LDFLAGS = \
97 $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
101 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
102 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)