Makefile.am 2.42 KB
Newer Older
1
SUBDIRS = . tests
2 3 4 5

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/cc -I$(top_builddir)/src/lib/cc
6
AM_CPPFLAGS += $(BOOST_INCLUDES)
7 8

AM_CXXFLAGS = $(B10_CXXFLAGS)
9 10 11 12
if USE_CLANGPP
# Disable unused parameter warning caused by some Boost headers when compiling with clang
AM_CXXFLAGS += -Wno-unused-parameter
endif
13 14 15 16 17 18 19

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

pkglibexecdir = $(libexecdir)/@PACKAGE@

20
CLEANFILES = spec_config.h dhcp6_messages.h dhcp6_messages.cc
21 22

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

26
if GENERATE_DOCS
27 28

b10-dhcp6.8: b10-dhcp6.xml
29
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
30 31
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
        $(srcdir)/b10-dhcp6.xml
32 33 34 35

else

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

39
endif
40 41 42 43

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

44 45 46 47 48
dhcp6_messages.h dhcp6_messages.cc: dhcp6_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/bin/dhcp6/dhcp6_messages.mes

BUILT_SOURCES = spec_config.h dhcp6_messages.h dhcp6_messages.cc

49
pkglibexec_PROGRAMS = b10-dhcp6
50

51
b10_dhcp6_SOURCES  = main.cc
52
b10_dhcp6_SOURCES += ctrl_dhcp6_srv.cc ctrl_dhcp6_srv.h
53
b10_dhcp6_SOURCES += config_parser.cc config_parser.h
54 55 56 57 58
b10_dhcp6_SOURCES += dhcp6_log.cc dhcp6_log.h
b10_dhcp6_SOURCES += dhcp6_srv.cc dhcp6_srv.h

nodist_b10_dhcp6_SOURCES = dhcp6_messages.h dhcp6_messages.cc
EXTRA_DIST += dhcp6_messages.mes
59

60 61 62
b10_dhcp6_LDADD  = $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
b10_dhcp6_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
b10_dhcp6_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
63
b10_dhcp6_LDADD += $(top_builddir)/src/lib/dhcp/libb10-dhcp++.la
64
b10_dhcp6_LDADD += $(top_builddir)/src/lib/dhcpsrv/libb10-dhcpsrv.la
65 66 67
b10_dhcp6_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
b10_dhcp6_LDADD += $(top_builddir)/src/lib/log/libb10-log.la
b10_dhcp6_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
68
b10_dhcp6_LDADD += $(top_builddir)/src/lib/hooks/libb10-hooks.la
69 70

b10_dhcp6dir = $(pkgdatadir)
71
b10_dhcp6_DATA = dhcp6.spec