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