Makefile.am 1.68 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUBDIRS = . tests

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 += $(BOOST_INCLUDES)

AM_CXXFLAGS = $(B10_CXXFLAGS)
if USE_CLANGPP
# Disable unused parameter warning caused by some Boost headers when compiling with clang
AM_CXXFLAGS += -Wno-unused-parameter
endif

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

pkglibexecdir = $(libexecdir)/@PACKAGE@

CLEANFILES  = *.gcno *.gcda spec_config.h d2_srv_messages.h d2_srv_messages.cc

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

if GENERATE_DOCS
26
b10-d2.8: b10-d2.xml
27
28
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
29
	$(srcdir)/b10-d2.xml
30
31
32
33
34
35
36
37
38
39
40
41

else

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

endif

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

42
43
d2_messages.h d2_messages.cc: d2_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/bin/d2/d2_messages.mes
44

45
BUILT_SOURCES = spec_config.h d2_messages.h d2_messages.cc
46

47
pkglibexec_PROGRAMS = b10-d2
48

49
50
b10_d2_SOURCES  = main.cc
b10_d2_SOURCES += d2_log.cc d2_log.h
51

52
53
nodist_b10_d2_SOURCES = d2_messages.h d2_messages.cc
EXTRA_DIST += d2_messages.mes
54

55
b10_d2_LDADD = $(top_builddir)/src/lib/log/libb10-log.la
56
b10_d2_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
57

58
59
b10_d2dir = $(pkgdatadir)
b10_d2_DATA = d2.spec