Makefile.am 1.05 KB
Newer Older
1 2
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
3
AM_CPPFLAGS += $(BOOST_INCLUDES)
Jeremy C. Reed's avatar
Jeremy C. Reed committed
4

5 6
AM_CXXFLAGS = $(B10_CXXFLAGS)

JINMEI Tatuya's avatar
JINMEI Tatuya committed
7 8 9 10
if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

11 12
CLEANFILES = *.gcno *.gcda

13 14
bin_PROGRAMS = b10-host
b10_host_SOURCES = host.cc
15
b10_host_LDADD = $(top_builddir)/src/lib/dns/libb10-dns++.la
16
b10_host_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
17
b10_host_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
18

19
man_MANS = b10-host.1
20
DISTCLEANFILES = $(man_MANS)
21 22 23
EXTRA_DIST = $(man_MANS) b10-host.xml

.PHONY: man
24
if GENERATE_DOCS
25 26 27 28

man: b10-host.1

b10-host.1: b10-host.xml
29
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-host.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
endif