Makefile.am 1.75 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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_STATIC_LINK
AM_LDFLAGS = -static
endif

pkglibexecdir = $(libexecdir)/@PACKAGE@

15 16
CLEANFILES = spec_config.h

17
man_MANS = b10-dhcp4.8
18
MAINTAINERCLEANFILES = $(man_MANS)
19
EXTRA_DIST = $(man_MANS) b10-dhcp4.xml dhcp4.spec
20

21
if GENERATE_DOCS
22
b10-dhcp4.8: b10-dhcp4.xml
23
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
24 25
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
	$(srcdir)/b10-dhcp4.xml
26 27 28 29

else

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

33 34 35 36 37 38 39 40 41
endif

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

BUILT_SOURCES = spec_config.h
pkglibexec_PROGRAMS = b10-dhcp4

b10_dhcp4_SOURCES = main.cc dhcp4_srv.cc dhcp4_srv.h
42
b10_dhcp4_SOURCES += ctrl_dhcp4_srv.cc ctrl_dhcp4_srv.h
43

44
if USE_CLANGPP
45 46
# Disable unused parameter warning caused by some of the
# Boost headers when compiling with clang.
47 48 49
b10_dhcp4_CXXFLAGS = -Wno-unused-parameter
endif

50
b10_dhcp4_LDADD = $(top_builddir)/src/lib/dhcp/libb10-dhcp++.la
51
b10_dhcp4_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
52
b10_dhcp4_LDADD += $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
53
b10_dhcp4_LDADD += $(top_builddir)/src/lib/log/libb10-log.la
54
b10_dhcp4_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
55
b10_dhcp4_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
56

57 58 59

b10_dhcp4dir = $(pkgdatadir)
b10_dhcp4_DATA = dhcp4.spec