a7aafa4fc8b764759b03f81907f97554c193666d
[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 gnunet_helper_hijack_dns_SOURCES = \
35  gnunet-helper-hijack-dns.c
36
37 gnunet_service_dns_SOURCES = \
38  gnunet-service-dns.c gnunet-service-dns-p.h 
39 gnunet_service_dns_LDADD = \
40   $(top_builddir)/src/core/libgnunetcore.la \
41   $(top_builddir)/src/statistics/libgnunetstatistics.la \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(top_builddir)/src/dht/libgnunetdht.la \
44   $(top_builddir)/src/mesh/libgnunetmesh.la \
45   $(top_builddir)/src/dns/libgnunetdnsparser.la \
46   $(GN_LIBINTL)
47
48
49 libgnunetdnsparser_la_SOURCES = \
50  dnsparser.c 
51 libgnunetdnsparser_la_LIBADD = \
52  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
53 libgnunetdnsparser_la_LDFLAGS = \
54   $(GN_LIB_LDFLAGS)
55
56
57 libgnunetdns_la_SOURCES = \
58  dns_api.c dns.h
59 libgnunetdns_la_LIBADD = \
60  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
61 libgnunetdns_la_LDFLAGS = \
62   $(GN_LIB_LDFLAGS)