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

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
5
AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
6
AM_CPPFLAGS += $(BOOST_INCLUDES)
7
8
9
10
11
12
if HAVE_MYSQL
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
endif
if HAVE_PGSQL
AM_CPPFLAGS += $(PGSQL_CPPFLAGS)
endif
Tomek Mrugalski's avatar
Tomek Mrugalski committed
13
14
if HAVE_CQL
AM_CPPFLAGS += $(CQL_CPPFLAGS)
15
endif
16

17
AM_CXXFLAGS = $(KEA_CXXFLAGS)
18
19
20
21
22

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

23
CLEANFILES = spec_config.h dhcp6_messages.h dhcp6_messages.cc s-messages
24

25
man_MANS = kea-dhcp6.8
26
DISTCLEANFILES = $(man_MANS)
27
EXTRA_DIST = $(man_MANS) kea-dhcp6.xml dhcp6.spec
28
EXTRA_DIST += dhcp6.dox dhcp6_hooks.dox dhcp4o6.dox
29

30
if GENERATE_DOCS
31

32
kea-dhcp6.8: kea-dhcp6.xml
33
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
34
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
35
        $(srcdir)/kea-dhcp6.xml
36
37
38
39

else

$(man_MANS):
40
	@echo Man generation disabled.  Creating dummy $@.  Configure with --enable-generate-docs to enable it.
41
	@echo Man generation disabled.  Remove this file, configure with --enable-generate-docs, and rebuild Kea > $@
42

43
endif
44
45
46
47

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

48
49
50
dhcp6_messages.h dhcp6_messages.cc: s-messages

s-messages: dhcp6_messages.mes
51
	$(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/bin/dhcp6/dhcp6_messages.mes
52
	touch $@
53
54
55

BUILT_SOURCES = spec_config.h dhcp6_messages.h dhcp6_messages.cc

Francis Dupont's avatar
Francis Dupont committed
56
# convenience archive
57

Francis Dupont's avatar
Francis Dupont committed
58
59
60
61
62
63
64
noinst_LTLIBRARIES = libdhcp6.la

libdhcp6_la_SOURCES  =
libdhcp6_la_SOURCES += dhcp6_log.cc dhcp6_log.h
libdhcp6_la_SOURCES += dhcp6_srv.cc dhcp6_srv.h
libdhcp6_la_SOURCES += ctrl_dhcp6_srv.cc ctrl_dhcp6_srv.h
libdhcp6_la_SOURCES += json_config_parser.cc json_config_parser.h
65
libdhcp6_la_SOURCES += dhcp6to4_ipc.cc dhcp6to4_ipc.h
66

Francis Dupont's avatar
Francis Dupont committed
67
libdhcp6_la_SOURCES += kea_controller.cc
68

Francis Dupont's avatar
Francis Dupont committed
69
nodist_libdhcp6_la_SOURCES = dhcp6_messages.h dhcp6_messages.cc
70
EXTRA_DIST += dhcp6_messages.mes
71

Francis Dupont's avatar
Francis Dupont committed
72
73
74
75
76
sbin_PROGRAMS = kea-dhcp6

kea_dhcp6_SOURCES  = main.cc

kea_dhcp6_LDADD  = libdhcp6.la
77
78
kea_dhcp6_LDADD += $(top_builddir)/src/lib/cfgrpt/libcfgrpt.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
Francis Dupont's avatar
Francis Dupont committed
79
kea_dhcp6_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
80
81
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
82
83
kea_dhcp6_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
84
85
86
87
88
kea_dhcp6_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
kea_dhcp6_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
89
kea_dhcp6_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
90
kea_dhcp6_LDADD += $(top_builddir)/src/lib/util/threads/libkea-threads.la
91
kea_dhcp6_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
92
kea_dhcp6_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
93
kea_dhcp6_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
94

95
kea_dhcp6_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
96
97
98
99
100
101
if HAVE_MYSQL
kea_dhcp6_LDFLAGS += $(MYSQL_LIBS)
endif
if HAVE_PGSQL
kea_dhcp6_LDFLAGS += $(PGSQL_LIBS)
endif
Tomek Mrugalski's avatar
Tomek Mrugalski committed
102
103
if HAVE_CQL
kea_dhcp6_LDFLAGS += $(CQL_LIBS)
104
endif
105
106
107

kea_dhcp6dir = $(pkgdatadir)
kea_dhcp6_DATA = dhcp6.spec