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 chown root $(DESTDIR)$(libexecdir)/gnunt-helper-dns
29 chgrp $(GNUNETDNS_GROUP) $(DESTDIR)$(libexecdir)/gnunt-helper-dns
30 chmod 4750 $(DESTDIR)$(libexecdir)/gnunt-helper-dns
31 chgrp $(GNUNETDNS_GROUP) $(DESTDIR)$(libexecdir)/gnunt-helper-dns
32 chown gnunet:$(GNUNETDNS_GROUP) $(DESTDIR)$(libexecdir)/gnunt-helper-dns
33 chmod 2750 $(DESTDIR)$(libexecdir)/gnunt-helper-dns
42 gnunet-service-dns $(HIJACKBIN)
46 gnunet-dns-redirector \
49 plugin_LTLIBRARIES = \
50 libgnunet_plugin_block_dns.la
57 gnunet_helper_dns_SOURCES = \
61 gnunet_dns_monitor_SOURCES = \
63 gnunet_dns_monitor_LDADD = \
65 $(top_builddir)/src/util/libgnunetutil.la \
68 gnunet_zonewalk_SOURCES = \
70 gnunet_zonewalk_LDADD = \
71 $(top_builddir)/src/util/libgnunetutil.la \
74 gnunet_dns_redirector_SOURCES = \
75 gnunet-dns-redirector.c
76 gnunet_dns_redirector_LDADD = \
78 $(top_builddir)/src/util/libgnunetutil.la \
81 gnunet_service_dns_SOURCES = \
83 gnunet_service_dns_LDADD = \
84 $(top_builddir)/src/statistics/libgnunetstatistics.la \
85 $(top_builddir)/src/util/libgnunetutil.la \
88 libgnunetdns_la_SOURCES = \
90 libgnunetdns_la_LIBADD = \
91 $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
92 libgnunetdns_la_LDFLAGS = \
96 libgnunet_plugin_block_dns_la_SOURCES = \
98 libgnunet_plugin_block_dns_la_LIBADD = \
99 $(top_builddir)/src/block/libgnunetblockgroup.la \
100 $(top_builddir)/src/util/libgnunetutil.la
101 libgnunet_plugin_block_dns_la_LDFLAGS = \
102 $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
106 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
107 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)