remove never working setuid helper code from the build-system.
[oweals/gnunet.git] / src / dns / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if USE_COVERAGE
5   AM_CFLAGS = --coverage -O0
6 endif
7
8 pkgcfgdir= $(pkgdatadir)/config.d/
9
10 libexecdir= $(pkglibdir)/libexec/
11
12 plugindir = $(libdir)/gnunet
13
14 pkgcfg_DATA = \
15   dns.conf
16
17 if LINUX
18 HIJACKBIN = gnunet-helper-dns
19 endif
20
21 lib_LTLIBRARIES = \
22   libgnunetdns.la
23
24 libexec_PROGRAMS = \
25   gnunet-service-dns $(HIJACKBIN)
26
27 noinst_PROGRAMS = \
28   gnunet-dns-monitor \
29   gnunet-dns-redirector \
30   gnunet-zonewalk
31
32 plugin_LTLIBRARIES = \
33   libgnunet_plugin_block_dns.la
34
35 if LINUX
36 check_SCRIPTS = \
37  test_gnunet_dns.sh
38 endif
39
40 gnunet_helper_dns_SOURCES = \
41  gnunet-helper-dns.c
42
43
44 gnunet_dns_monitor_SOURCES = \
45  gnunet-dns-monitor.c
46 gnunet_dns_monitor_LDADD = \
47   libgnunetdns.la \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(GN_LIBINTL)
50
51 gnunet_zonewalk_SOURCES = \
52  gnunet-zonewalk.c
53 gnunet_zonewalk_LDADD = \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(GN_LIBINTL)
56
57 gnunet_dns_redirector_SOURCES = \
58  gnunet-dns-redirector.c
59 gnunet_dns_redirector_LDADD = \
60   libgnunetdns.la \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   $(GN_LIBINTL)
63
64 gnunet_service_dns_SOURCES = \
65  gnunet-service-dns.c
66 gnunet_service_dns_LDADD = \
67   $(top_builddir)/src/statistics/libgnunetstatistics.la \
68   $(top_builddir)/src/util/libgnunetutil.la \
69   $(GN_LIBINTL)
70
71 libgnunetdns_la_SOURCES = \
72  dns_api.c dns.h
73 libgnunetdns_la_LIBADD = \
74  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
75 libgnunetdns_la_LDFLAGS = \
76   $(GN_LIB_LDFLAGS) \
77   -version-info 0:0:0
78
79 libgnunet_plugin_block_dns_la_SOURCES = \
80   plugin_block_dns.c
81 libgnunet_plugin_block_dns_la_LIBADD = \
82   $(top_builddir)/src/block/libgnunetblockgroup.la \
83   $(top_builddir)/src/util/libgnunetutil.la
84 libgnunet_plugin_block_dns_la_LDFLAGS = \
85   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
86
87
88 if ENABLE_TEST_RUN
89 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
90 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
91 endif
92
93 EXTRA_DIST = \
94   $(check_SCRIPTS)
95
96