remove CYGWIN codeblocks, drop vendored Windows openvpn, drop win32 specific files.
[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 install-exec-hook:
20         $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true
21 else
22 install-exec-hook:
23 endif
24
25 lib_LTLIBRARIES = \
26   libgnunetdns.la
27
28 libexec_PROGRAMS = \
29   gnunet-service-dns $(HIJACKBIN)
30
31 noinst_PROGRAMS = \
32   gnunet-dns-monitor \
33   gnunet-dns-redirector \
34   gnunet-zonewalk
35
36 plugin_LTLIBRARIES = \
37   libgnunet_plugin_block_dns.la
38
39 if LINUX
40 check_SCRIPTS = \
41  test_gnunet_dns.sh
42 endif
43
44 gnunet_helper_dns_SOURCES = \
45  gnunet-helper-dns.c
46
47
48 gnunet_dns_monitor_SOURCES = \
49  gnunet-dns-monitor.c
50 gnunet_dns_monitor_LDADD = \
51   libgnunetdns.la \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(GN_LIBINTL)
54
55 gnunet_zonewalk_SOURCES = \
56  gnunet-zonewalk.c
57 gnunet_zonewalk_LDADD = \
58   $(top_builddir)/src/util/libgnunetutil.la \
59   $(GN_LIBINTL)
60
61 gnunet_dns_redirector_SOURCES = \
62  gnunet-dns-redirector.c
63 gnunet_dns_redirector_LDADD = \
64   libgnunetdns.la \
65   $(top_builddir)/src/util/libgnunetutil.la \
66   $(GN_LIBINTL)
67
68 gnunet_service_dns_SOURCES = \
69  gnunet-service-dns.c
70 gnunet_service_dns_LDADD = \
71   $(top_builddir)/src/statistics/libgnunetstatistics.la \
72   $(top_builddir)/src/util/libgnunetutil.la \
73   $(GN_LIBINTL)
74
75 libgnunetdns_la_SOURCES = \
76  dns_api.c dns.h
77 libgnunetdns_la_LIBADD = \
78  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
79 libgnunetdns_la_LDFLAGS = \
80   $(GN_LIB_LDFLAGS) \
81   -version-info 0:0:0
82
83 libgnunet_plugin_block_dns_la_SOURCES = \
84   plugin_block_dns.c
85 libgnunet_plugin_block_dns_la_LIBADD = \
86   $(top_builddir)/src/block/libgnunetblockgroup.la \
87   $(top_builddir)/src/util/libgnunetutil.la
88 libgnunet_plugin_block_dns_la_LDFLAGS = \
89   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
90
91
92 if ENABLE_TEST_RUN
93 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
94 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
95 endif
96
97 EXTRA_DIST = \
98   $(check_SCRIPTS)
99
100