Makefile.am 3.46 KB
Newer Older
JINMEI Tatuya's avatar
JINMEI Tatuya committed
1
SUBDIRS = . tests benchmarks
2

3
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
4
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
5
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
6 7 8
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cc -I$(top_builddir)/src/lib/cc
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiolink
AM_CPPFLAGS += -I$(top_builddir)/src/lib/asiolink
9
AM_CPPFLAGS += $(BOOST_INCLUDES)
10 11

AM_CXXFLAGS = $(B10_CXXFLAGS)
12

JINMEI Tatuya's avatar
JINMEI Tatuya committed
13 14 15 16
if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

17 18
pkglibexecdir = $(libexecdir)/@PACKAGE@

19 20
CLEANFILES  = *.gcno *.gcda auth.spec spec_config.h
CLEANFILES += auth_messages.h auth_messages.cc
21

22
man_MANS = b10-auth.8
23
DISTCLEANFILES = $(man_MANS)
24
EXTRA_DIST = $(man_MANS) b10-auth.xml
25

26
if GENERATE_DOCS
27

28
b10-auth.8: b10-auth.xml
29
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-auth.xml
30

31 32 33
else

$(man_MANS):
34 35
	@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 > $@
36

37 38
endif

39 40
auth.spec: auth.spec.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" auth.spec.pre >$@
41

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

45 46 47 48 49
auth_messages.h auth_messages.cc: auth_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/bin/auth/auth_messages.mes

BUILT_SOURCES = spec_config.h auth_messages.h auth_messages.cc

50
pkglibexec_PROGRAMS = b10-auth
51 52
b10_auth_SOURCES = query.cc query.h
b10_auth_SOURCES += auth_srv.cc auth_srv.h
53
b10_auth_SOURCES += auth_log.cc auth_log.h
54
b10_auth_SOURCES += auth_config.cc auth_config.h
55
b10_auth_SOURCES += command.cc command.h
56
b10_auth_SOURCES += common.h common.cc
57
b10_auth_SOURCES += statistics.cc statistics.h
58
b10_auth_SOURCES += datasrc_configurator.h
59
b10_auth_SOURCES += main.cc
60 61 62 63 64 65
# This is a temporary workaround for #1206, where the InMemoryClient has been
# moved to an ldopened library. We could add that library to LDADD, but that
# is nonportable. This should've been moot after #1207, but there is still
# one dependency; the in-memory-specific zone loader call is still in
# auth.
b10_auth_SOURCES += ${top_srcdir}/src/lib/datasrc/memory_datasrc.cc
66 67 68 69

nodist_b10_auth_SOURCES = auth_messages.h auth_messages.cc
EXTRA_DIST += auth_messages.mes

70
b10_auth_LDADD =  $(top_builddir)/src/lib/datasrc/libb10-datasrc.la
71
b10_auth_LDADD += $(top_builddir)/src/lib/dns/libb10-dns++.la
72
b10_auth_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
73
b10_auth_LDADD += $(top_builddir)/src/lib/util/io/libb10-util-io.la
74
b10_auth_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
75
b10_auth_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
76
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
77
b10_auth_LDADD += $(top_builddir)/src/lib/asiodns/libb10-asiodns.la
78
b10_auth_LDADD += $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
79
b10_auth_LDADD += $(top_builddir)/src/lib/log/libb10-log.la
80
b10_auth_LDADD += $(top_builddir)/src/lib/xfr/libb10-xfr.la
81
b10_auth_LDADD += $(top_builddir)/src/lib/server_common/libb10-server-common.la
82
b10_auth_LDADD += $(top_builddir)/src/lib/statistics/libb10-statistics.la
83
b10_auth_LDADD += $(SQLITE_LIBS)
84

85 86
# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
87
b10_authdir = $(pkgdatadir)
88 89
b10_auth_DATA = auth.spec