Makefile.am 3.38 KB
Newer Older
1
SUBDIRS = . tests bench
2 3 4 5 6

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
7 8
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiodns
AM_CPPFLAGS += -I$(top_builddir)/src/lib/asiodns
9 10 11 12 13 14 15 16 17 18 19 20
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@

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

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

29
if GENERATE_DOCS
30 31

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

34 35 36
else

$(man_MANS):
37 38
	@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 > $@
39

40 41 42 43 44 45 46 47
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 >$@

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


53
BUILT_SOURCES = spec_config.h resolver_messages.cc resolver_messages.h
54

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

63
nodist_b10_resolver_SOURCES = resolver_messages.cc resolver_messages.h
64 65


66
b10_resolver_LDADD =  $(top_builddir)/src/lib/dns/libb10-dns++.la
67
b10_resolver_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
68
b10_resolver_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
69
b10_resolver_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
70
b10_resolver_LDADD += $(top_builddir)/src/lib/acl/libb10-dnsacl.la
71
b10_resolver_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
72
b10_resolver_LDADD += $(top_builddir)/src/lib/asiodns/libb10-asiodns.la
73
b10_resolver_LDADD += $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
74
b10_resolver_LDADD += $(top_builddir)/src/lib/xfr/libb10-xfr.la
75
b10_resolver_LDADD += $(top_builddir)/src/lib/log/libb10-log.la
76
b10_resolver_LDADD += $(top_builddir)/src/lib/server_common/libb10-server-common.la
77
b10_resolver_LDADD += $(top_builddir)/src/lib/cache/libb10-cache.la
78
b10_resolver_LDADD += $(top_builddir)/src/lib/nsas/libb10-nsas.la
79
b10_resolver_LDADD += $(top_builddir)/src/lib/resolve/libb10-resolve.la
80 81 82 83
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}
84
b10_resolverdir = $(pkgdatadir)
85
b10_resolver_DATA = resolver.spec