Makefile.am 1.47 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
EXTRA_DIST = $(man_MANS) b10-dhcp4.xml dhcp4.spec
19
20
21

if ENABLE_MAN
b10-dhcp4.8: b10-dhcp4.xml
22
23
24
	xsltproc --novalid --xinclude --nonet -o $@ \
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
	$(srcdir)/b10-dhcp4.xml
25
26
27
28
29
30
31
32
33
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
34
b10_dhcp4_SOURCES += ctrl_dhcp4_srv.cc ctrl_dhcp4_srv.h
35

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

42
b10_dhcp4_LDADD = $(top_builddir)/src/lib/dhcp/libdhcp++.la
43
b10_dhcp4_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
44
b10_dhcp4_LDADD += $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
45
b10_dhcp4_LDADD += $(top_builddir)/src/lib/log/libb10-log.la
46
b10_dhcp4_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
47
b10_dhcp4_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
48

49
50
51

b10_dhcp4dir = $(pkgdatadir)
b10_dhcp4_DATA = dhcp4.spec