Changed find_finger and verify_successor timeouts
[oweals/gnunet.git] / src / dns / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9 endif
10
11 pkgcfgdir= $(pkgdatadir)/config.d/
12
13 libexecdir= $(pkglibdir)/libexec/
14
15 plugindir = $(libdir)/gnunet
16
17 pkgcfg_DATA = \
18   dns.conf
19
20 if LINUX
21 HIJACKBIN = gnunet-helper-dns
22 install-exec-hook:
23         $(top_srcdir)/src/dns/install-dns-helper.sh $(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true
24 else
25 install-exec-hook:
26 endif
27
28 lib_LTLIBRARIES = \
29   libgnunetdnsparser.la \
30   libgnunetdnsstub.la \
31   libgnunetdns.la
32
33 libexec_PROGRAMS = \
34   gnunet-service-dns $(HIJACKBIN)
35
36 noinst_PROGRAMS = \
37   gnunet-dns-monitor gnunet-dns-redirector
38
39 plugin_LTLIBRARIES = \
40   libgnunet_plugin_block_dns.la
41
42 if LINUX
43 check_SCRIPTS = \
44  test_gnunet_dns.sh
45 endif
46
47 check_PROGRAMS = \
48  test_hexcoder
49
50 gnunet_helper_dns_SOURCES = \
51  gnunet-helper-dns.c
52
53
54 gnunet_dns_monitor_SOURCES = \
55  gnunet-dns-monitor.c
56 gnunet_dns_monitor_LDADD = \
57   $(top_builddir)/src/dns/libgnunetdnsparser.la \
58   $(top_builddir)/src/dns/libgnunetdns.la \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(GN_LIBINTL)
61 gnunet_dns_monitor_DEPENDENCIES = \
62   libgnunetdnsparser.la \
63   libgnunetdns.la
64
65 gnunet_dns_redirector_SOURCES = \
66  gnunet-dns-redirector.c
67 gnunet_dns_redirector_LDADD = \
68   $(top_builddir)/src/dns/libgnunetdnsparser.la \
69   $(top_builddir)/src/dns/libgnunetdns.la \
70   $(top_builddir)/src/util/libgnunetutil.la \
71   $(GN_LIBINTL)
72 gnunet_dns_redirector_DEPENDENCIES = \
73   libgnunetdnsparser.la \
74   libgnunetdns.la
75
76 gnunet_service_dns_SOURCES = \
77  gnunet-service-dns.c
78 gnunet_service_dns_LDADD = \
79   $(top_builddir)/src/dns/libgnunetdnsstub.la \
80   $(top_builddir)/src/tun/libgnunettun.la \
81   $(top_builddir)/src/statistics/libgnunetstatistics.la \
82   $(top_builddir)/src/util/libgnunetutil.la \
83   $(GN_LIBINTL)
84 gnunet_service_dns_DEPENDENCIES = \
85   libgnunetdnsstub.la
86
87 libgnunetdnsparser_la_SOURCES = \
88  dnsparser.c
89 libgnunetdnsparser_la_LIBADD = \
90  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
91   -lidn
92 libgnunetdnsparser_la_LDFLAGS = \
93   $(GN_LIB_LDFLAGS) \
94   -version-info 1:0:1
95
96 libgnunetdnsstub_la_SOURCES = \
97  dnsstub.c
98 libgnunetdnsstub_la_LIBADD = \
99  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
100 libgnunetdnsstub_la_LDFLAGS = \
101   $(GN_LIB_LDFLAGS) \
102   -version-info 0:0:0
103
104 libgnunetdns_la_SOURCES = \
105  dns_api.c dns.h
106 libgnunetdns_la_LIBADD = \
107  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
108 libgnunetdns_la_LDFLAGS = \
109   $(GN_LIB_LDFLAGS) \
110   -version-info 0:0:0
111
112 libgnunet_plugin_block_dns_la_SOURCES = \
113   plugin_block_dns.c
114 libgnunet_plugin_block_dns_la_LIBADD = \
115   $(top_builddir)/src/util/libgnunetutil.la
116 libgnunet_plugin_block_dns_la_LDFLAGS = \
117   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
118
119
120 if ENABLE_TEST_RUN
121 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
122 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
123 endif
124
125 EXTRA_DIST = \
126   $(check_SCRIPTS)
127
128
129 test_hexcoder_SOURCES = \
130  test_hexcoder.c
131 test_hexcoder_LDADD = \
132  libgnunetdnsparser.la \
133  $(top_builddir)/src/util/libgnunetutil.la
134 test_hexcoder_DEPENDENCIES = \
135  libgnunetdnsparser.la \
136  $(top_builddir)/src/util/libgnunetutil.la
137