Makefile.am 1.36 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 9 10 11 12 13 14 15

AM_CXXFLAGS = $(B10_CXXFLAGS)

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

pkglibexecdir = $(libexecdir)/@PACKAGE@

16
CLEANFILES = spec_config.h
17 18

man_MANS = b10-dhcp6.8
19
EXTRA_DIST = $(man_MANS) b10-dhcp6.xml dhcp6.spec
20

21 22 23
if ENABLE_MAN

b10-dhcp6.8: b10-dhcp6.xml
24 25 26
	xsltproc --novalid --xinclude --nonet -o $@ \
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
        $(srcdir)/b10-dhcp6.xml
27
endif
28 29 30 31 32 33

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

BUILT_SOURCES = spec_config.h
pkglibexec_PROGRAMS = b10-dhcp6
34

35
b10_dhcp6_SOURCES = main.cc dhcp6_srv.cc dhcp6_srv.h
36

37
if USE_CLANGPP
38 39
# Disable unused parameter warning caused by some of the
# Boost headers when compiling with clang.
40 41 42
b10_dhcp6_CXXFLAGS = -Wno-unused-parameter
endif

43
b10_dhcp6_LDADD = $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
44 45
b10_dhcp6_LDADD += $(top_builddir)/src/lib/asiolink/libasiolink.la
b10_dhcp6_LDADD += $(top_builddir)/src/lib/log/liblog.la
46
b10_dhcp6_LDADD += $(top_builddir)/src/lib/dhcp/libdhcp++.la
47 48

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