Makefile.am 3.56 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_CLANGPP
# Disable unused parameter warning caused by some Boost headers when compiling with clang
AM_CXXFLAGS += -Wno-unused-parameter
endif

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

17
CLEANFILES  = *.gcno *.gcda spec_config.h d2_messages.h d2_messages.cc s-messages
18

19
man_MANS = kea-dhcp-ddns.8
20
DISTCLEANFILES = $(man_MANS)
21
EXTRA_DIST = $(man_MANS) kea-dhcp-ddns.xml dhcp-ddns.spec
22
23

if GENERATE_DOCS
24
kea-dhcp-ddns.8: kea-dhcp-ddns.xml
25
26
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
27
	$(srcdir)/kea-dhcp-ddns.xml
28
29
30
31
32
33
34
35
36
37
38
39

else

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

endif

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

40
41
42
d2_messages.h d2_messages.cc: s-messages

s-messages: d2_messages.mes
43
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/bin/d2/d2_messages.mes
44
	touch $@
45

46
BUILT_SOURCES = spec_config.h d2_messages.h d2_messages.cc
47

48
sbin_PROGRAMS = kea-dhcp-ddns
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

kea_dhcp_ddns_SOURCES  = main.cc
kea_dhcp_ddns_SOURCES += d_process.h
kea_dhcp_ddns_SOURCES += d_controller.cc d_controller.h
kea_dhcp_ddns_SOURCES += d_cfg_mgr.cc d_cfg_mgr.h
kea_dhcp_ddns_SOURCES += d2_asio.h
kea_dhcp_ddns_SOURCES += d2_log.cc d2_log.h
kea_dhcp_ddns_SOURCES += d2_process.cc d2_process.h
kea_dhcp_ddns_SOURCES += d2_config.cc d2_config.h
kea_dhcp_ddns_SOURCES += d2_cfg_mgr.cc d2_cfg_mgr.h
kea_dhcp_ddns_SOURCES += d2_queue_mgr.cc d2_queue_mgr.h
kea_dhcp_ddns_SOURCES += d2_update_message.cc d2_update_message.h
kea_dhcp_ddns_SOURCES += d2_update_mgr.cc d2_update_mgr.h
kea_dhcp_ddns_SOURCES += d2_zone.cc d2_zone.h
kea_dhcp_ddns_SOURCES += dns_client.cc dns_client.h
kea_dhcp_ddns_SOURCES += io_service_signal.cc io_service_signal.h
kea_dhcp_ddns_SOURCES += labeled_value.cc labeled_value.h
kea_dhcp_ddns_SOURCES += nc_add.cc nc_add.h
kea_dhcp_ddns_SOURCES += nc_remove.cc nc_remove.h
kea_dhcp_ddns_SOURCES += nc_trans.cc nc_trans.h
kea_dhcp_ddns_SOURCES += state_model.cc state_model.h
70

71
if CONFIG_BACKEND_BUNDY
72
kea_dhcp_ddns_SOURCES += bundy_d2_controller.cc bundy_d2_controller.h
73
74
else
if CONFIG_BACKEND_JSON
75
kea_dhcp_ddns_SOURCES += d2_controller.cc d2_controller.h
76
77
78
endif
endif

79
nodist_kea_dhcp_ddns_SOURCES = d2_messages.h d2_messages.cc
80
EXTRA_DIST += d2_messages.mes
81

82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
kea_dhcp_ddns_LDADD = $(top_builddir)/src/lib/log/libkea-log.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la

kea_dhcp_ddnsdir = $(pkgdatadir)
kea_dhcp_ddns_DATA = dhcp-ddns.spec