-adding tool to test dnsparser.c
[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 noinst_PROGRAMS = \
38   gnunet-dns-monitor gnunet-dns-redirector
39
40 plugin_LTLIBRARIES = \
41   libgnunet_plugin_block_dns.la 
42
43
44 gnunet_helper_hijack_dns_SOURCES = \
45  gnunet-helper-hijack-dns.c
46
47 gnunet_helper_dns_SOURCES = \
48  gnunet-helper-dns.c
49
50 gnunet_service_dns_SOURCES = \
51  gnunet-service-dns.c gnunet-service-dns-p.h 
52 gnunet_service_dns_LDADD = \
53   $(top_builddir)/src/core/libgnunetcore.la \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(top_builddir)/src/dht/libgnunetdht.la \
57   $(top_builddir)/src/mesh/libgnunetmesh.la \
58   $(top_builddir)/src/dns/libgnunetdnsparser.la \
59   $(GN_LIBINTL)
60
61 gnunet_dns_monitor_SOURCES = \
62  gnunet-dns-monitor.c
63 gnunet_dns_monitor_LDADD = \
64   $(top_builddir)/src/dns/libgnunetdnsparser.la \
65   $(top_builddir)/src/dns/libgnunetdnsnew.la \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(GN_LIBINTL)
68
69 gnunet_dns_redirector_SOURCES = \
70  gnunet-dns-redirector.c
71 gnunet_dns_redirector_LDADD = \
72   $(top_builddir)/src/dns/libgnunetdnsparser.la \
73   $(top_builddir)/src/dns/libgnunetdnsnew.la \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(GN_LIBINTL)
76
77 gnunet_service_dns_new_SOURCES = \
78  gnunet-service-dns_new.c 
79 gnunet_service_dns_new_LDADD = \
80   $(top_builddir)/src/statistics/libgnunetstatistics.la \
81   $(top_builddir)/src/util/libgnunetutil.la \
82   $(GN_LIBINTL)
83
84 libgnunetdnsparser_la_SOURCES = \
85  dnsparser.c 
86 libgnunetdnsparser_la_LIBADD = \
87  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
88 libgnunetdnsparser_la_LDFLAGS = \
89   $(GN_LIB_LDFLAGS)
90
91 libgnunetdns_la_SOURCES = \
92  dns_api.c dns.h
93 libgnunetdns_la_LIBADD = \
94  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
95 libgnunetdns_la_LDFLAGS = \
96   $(GN_LIB_LDFLAGS)
97
98 libgnunetdnsnew_la_SOURCES = \
99  dns_api_new.c dns_new.h
100 libgnunetdnsnew_la_LIBADD = \
101  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
102 libgnunetdnsnew_la_LDFLAGS = \
103   $(GN_LIB_LDFLAGS)
104
105 libgnunet_plugin_block_dns_la_SOURCES = \
106   plugin_block_dns.c
107 libgnunet_plugin_block_dns_la_LIBADD = \
108   $(top_builddir)/src/util/libgnunetutil.la
109 libgnunet_plugin_block_dns_la_LDFLAGS = \
110   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
111
112
113