9dd95a3b9d3fa81d441a2b8e0198085e583f8d1b
[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   libgnunetdns.la
32
33 bin_PROGRAMS = \
34   gnunet-service-dns $(HIJACKBIN)
35
36 plugin_LTLIBRARIES = \
37   libgnunet_plugin_block_dns.la 
38
39
40 gnunet_helper_hijack_dns_SOURCES = \
41  gnunet-helper-hijack-dns.c
42
43 gnunet_helper_dns_SOURCES = \
44  gnunet-helper-dns.c
45
46 gnunet_service_dns_SOURCES = \
47  gnunet-service-dns.c gnunet-service-dns-p.h 
48 gnunet_service_dns_LDADD = \
49   $(top_builddir)/src/core/libgnunetcore.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/dht/libgnunetdht.la \
53   $(top_builddir)/src/mesh/libgnunetmesh.la \
54   $(top_builddir)/src/dns/libgnunetdnsparser.la \
55   $(GN_LIBINTL)
56
57 libgnunetdnsparser_la_SOURCES = \
58  dnsparser.c 
59 libgnunetdnsparser_la_LIBADD = \
60  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
61 libgnunetdnsparser_la_LDFLAGS = \
62   $(GN_LIB_LDFLAGS)
63
64 libgnunetdns_la_SOURCES = \
65  dns_api.c dns.h
66 libgnunetdns_la_LIBADD = \
67  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
68 libgnunetdns_la_LDFLAGS = \
69   $(GN_LIB_LDFLAGS)
70
71 libgnunet_plugin_block_dns_la_SOURCES = \
72   plugin_block_dns.c
73 libgnunet_plugin_block_dns_la_LIBADD = \
74   $(top_builddir)/src/util/libgnunetutil.la
75 libgnunet_plugin_block_dns_la_LDFLAGS = \
76   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
77
78
79