Makefile.am 3.48 KB
Newer Older
1
2
if BUILD_EXPERIMENTAL_RESOLVER
# Build the resolver only with --enable-experimental-resolver
3
SUBDIRS = . tests bench
4
5
6
7
8

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cc -I$(top_builddir)/src/lib/cc
9
10
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiodns
AM_CPPFLAGS += -I$(top_builddir)/src/lib/asiodns
11
12
13
14
15
16
17
18
19
20
21
22
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiolink
AM_CPPFLAGS += -I$(top_builddir)/src/lib/asiolink
AM_CPPFLAGS += $(BOOST_INCLUDES)

AM_CXXFLAGS = $(B10_CXXFLAGS)

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

pkglibexecdir = $(libexecdir)/@PACKAGE@

23
24
CLEANFILES  = *.gcno *.gcda
CLEANFILES += resolver.spec spec_config.h
25
CLEANFILES += resolver_messages.cc resolver_messages.h
26
27

man_MANS = b10-resolver.8
28
DISTCLEANFILES = $(man_MANS)
29
EXTRA_DIST = $(man_MANS) b10-resolver.xml resolver_messages.mes
30

31
if GENERATE_DOCS
32
33

b10-resolver.8: b10-resolver.xml
34
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-resolver.xml
35

36
37
38
else

$(man_MANS):
39
40
	@echo Man generation disabled.  Creating dummy $@.  Configure with --enable-generate-docs to enable it.
	@echo Man generation disabled.  Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
41

42
43
44
45
46
47
48
49
endif

resolver.spec: resolver.spec.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" resolver.spec.pre >$@

spec_config.h: spec_config.h.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@

50
# Define rule to build logging source files from message file
51
52
resolver_messages.h resolver_messages.cc: resolver_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/bin/resolver/resolver_messages.mes
53
54


55
BUILT_SOURCES = spec_config.h resolver_messages.cc resolver_messages.h
56

57
58
pkglibexec_PROGRAMS = b10-resolver
b10_resolver_SOURCES = resolver.cc resolver.h
59
b10_resolver_SOURCES += resolver_log.cc resolver_log.h
60
b10_resolver_SOURCES += response_scrubber.cc response_scrubber.h
61
62
b10_resolver_SOURCES += $(top_builddir)/src/bin/auth/common.h
b10_resolver_SOURCES += main.cc
63
b10_resolver_SOURCES += common.cc common.h
64

65
nodist_b10_resolver_SOURCES = resolver_messages.cc resolver_messages.h
66
67


68
b10_resolver_LDADD =  $(top_builddir)/src/lib/dns/libb10-dns++.la
69
b10_resolver_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
70
b10_resolver_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
71
b10_resolver_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
72
b10_resolver_LDADD += $(top_builddir)/src/lib/acl/libb10-dnsacl.la
73
b10_resolver_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
74
b10_resolver_LDADD += $(top_builddir)/src/lib/asiodns/libb10-asiodns.la
75
b10_resolver_LDADD += $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
76
b10_resolver_LDADD += $(top_builddir)/src/lib/xfr/libb10-xfr.la
77
b10_resolver_LDADD += $(top_builddir)/src/lib/log/libb10-log.la
78
b10_resolver_LDADD += $(top_builddir)/src/lib/server_common/libb10-server-common.la
79
b10_resolver_LDADD += $(top_builddir)/src/lib/cache/libb10-cache.la
80
b10_resolver_LDADD += $(top_builddir)/src/lib/nsas/libb10-nsas.la
81
b10_resolver_LDADD += $(top_builddir)/src/lib/resolve/libb10-resolve.la
82
83
84
85
b10_resolver_LDFLAGS = -pthread

# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
86
b10_resolverdir = $(pkgdatadir)
87
b10_resolver_DATA = resolver.spec
88
endif