-fix
[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 if LINUX
16 HIJACKBIN = gnunet-helper-hijack-dns
17 install-exec-hook:
18         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-hijack-dns || true
19         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-hijack-dns || true
20 else
21 install-exec-hook:
22 endif
23
24 lib_LTLIBRARIES = \
25   libgnunetdnsparser.la \
26   libgnunetdns.la
27
28 bin_PROGRAMS = \
29   gnunet-service-dns $(HIJACKBIN)
30
31 gnunet_helper_hijack_dns_SOURCES = \
32  gnunet-helper-hijack-dns.c
33
34 gnunet_service_dns_SOURCES = \
35  gnunet-service-dns.c gnunet-service-dns-p.h 
36 gnunet_service_dns_LDADD = \
37   $(top_builddir)/src/core/libgnunetcore.la \
38   $(top_builddir)/src/statistics/libgnunetstatistics.la \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(top_builddir)/src/dht/libgnunetdht.la \
41   $(top_builddir)/src/mesh/libgnunetmesh.la \
42   $(top_builddir)/src/dns/libgnunetdnsparser.la \
43   $(GN_LIBINTL)
44
45
46 libgnunetdnsparser_la_SOURCES = \
47  dnsparser.c 
48 libgnunetdnsparser_la_LIBADD = \
49  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
50 libgnunetdnsparser_la_LDFLAGS = \
51   $(GN_LIB_LDFLAGS)
52
53
54 libgnunetdns_la_SOURCES = \
55  dns_api.c 
56 libgnunetdns_la_LIBADD = \
57  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
58 libgnunetdns_la_LDFLAGS = \
59   $(GN_LIB_LDFLAGS)