-misc DNS related bugfixes
[oweals/gnunet.git] / src / dns / Makefile.am
1 INCLUDES = -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 plugindir = $(libdir)/gnunet
14
15 dist_pkgcfg_DATA = \
16   dns.conf
17
18 if LINUX
19 HIJACKBIN = gnunet-helper-hijack-dns gnunet-helper-dns
20 install-exec-hook:
21         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-hijack-dns || true
22         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-hijack-dns || true
23         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-dns || true
24         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-dns || true
25 else
26 install-exec-hook:
27 endif
28
29 lib_LTLIBRARIES = \
30   libgnunetdnsparser.la \
31   libgnunetdnsnew.la \
32   libgnunetdns.la
33
34 bin_PROGRAMS = \
35   gnunet-service-dns gnunet-service-dns-new $(HIJACKBIN)
36
37 plugin_LTLIBRARIES = \
38   libgnunet_plugin_block_dns.la 
39
40
41 gnunet_helper_hijack_dns_SOURCES = \
42  gnunet-helper-hijack-dns.c
43
44 gnunet_helper_dns_SOURCES = \
45  gnunet-helper-dns.c
46
47 gnunet_service_dns_SOURCES = \
48  gnunet-service-dns.c gnunet-service-dns-p.h 
49 gnunet_service_dns_LDADD = \
50   $(top_builddir)/src/core/libgnunetcore.la \
51   $(top_builddir)/src/statistics/libgnunetstatistics.la \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/dht/libgnunetdht.la \
54   $(top_builddir)/src/mesh/libgnunetmesh.la \
55   $(top_builddir)/src/dns/libgnunetdnsparser.la \
56   $(GN_LIBINTL)
57
58 gnunet_service_dns_new_SOURCES = \
59  gnunet-service-dns_new.c 
60 gnunet_service_dns_new_LDADD = \
61   $(top_builddir)/src/statistics/libgnunetstatistics.la \
62   $(top_builddir)/src/util/libgnunetutil.la \
63   $(GN_LIBINTL)
64
65 libgnunetdnsparser_la_SOURCES = \
66  dnsparser.c 
67 libgnunetdnsparser_la_LIBADD = \
68  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
69 libgnunetdnsparser_la_LDFLAGS = \
70   $(GN_LIB_LDFLAGS)
71
72 libgnunetdns_la_SOURCES = \
73  dns_api.c dns.h
74 libgnunetdns_la_LIBADD = \
75  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
76 libgnunetdns_la_LDFLAGS = \
77   $(GN_LIB_LDFLAGS)
78
79 libgnunetdnsnew_la_SOURCES = \
80  dns_api_new.c dns_new.h
81 libgnunetdnsnew_la_LIBADD = \
82  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
83 libgnunetdnsnew_la_LDFLAGS = \
84   $(GN_LIB_LDFLAGS)
85
86 libgnunet_plugin_block_dns_la_SOURCES = \
87   plugin_block_dns.c
88 libgnunet_plugin_block_dns_la_LIBADD = \
89   $(top_builddir)/src/util/libgnunetutil.la
90 libgnunet_plugin_block_dns_la_LDFLAGS = \
91   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
92
93
94