Makefile.am 1.4 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
22
23
24
25
26
27
28
29
30
31
32
33

if ENABLE_MAN

b10-dhcp4.8: b10-dhcp4.xml
	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-dhcp4.xml

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
b10_dhcp4_LDADD = $(top_builddir)/src/lib/dhcp/libdhcp++.la
37
38
39
b10_dhcp4_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
b10_dhcp4_LDADD += $(top_builddir)/src/lib/asiolink/libasiolink.la
b10_dhcp4_LDADD += $(top_builddir)/src/lib/log/liblog.la
40
41
42
b10_dhcp4_LDADD += $(top_builddir)/src/lib/config/libcfgclient.la
b10_dhcp4_LDADD += $(top_builddir)/src/lib/cc/libcc.la

43
44
45
46
47

# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
b10_dhcp4dir = $(pkgdatadir)
b10_dhcp4_DATA = dhcp4.spec