Makefile.am 3.39 KB
Newer Older
1
SUBDIRS = . testutils tests
2
dhcp_data_dir = @localstatedir@/@PACKAGE@
3
AM_CPPFLAGS  = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
4 5
AM_CPPFLAGS += -DDATA_DIR="\"$(dhcp_data_dir)\""

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
AM_CPPFLAGS += $(BOOST_INCLUDES)

if HAVE_MYSQL
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
endif
if HAVE_PGSQL
AM_CPPFLAGS += $(PGSQL_CPPFLAGS)
endif
if HAVE_CQL
AM_CPPFLAGS += $(CQL_CPPFLAGS)
endif

AM_CXXFLAGS  = $(KEA_CXXFLAGS)

# Define rule to build logging source files from message file
process_messages.h process_messages.cc: s-messages

s-messages: process_messages.mes
	$(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/lib/process/process_messages.mes
	touch $@

# Tell automake that the message files are built as part of the build process
# (so that they are built before the main library is built).
29
BUILT_SOURCES = process_messages.h process_messages.cc
30 31

# Ensure that the message file is included in the distribution
32
EXTRA_DIST = process_messages.mes libprocess.dox
33 34

# Get rid of generated message files on a clean
35
CLEANFILES = *.gcno *.gcda process_messages.h process_messages.cc s-messages
36

37 38 39
# Generated by configure files
DISTCLEANFILES = spec_config.h.pre

40
lib_LTLIBRARIES = libkea-process.la
41
libkea_process_la_SOURCES  = config_base.cc config_base.h
42 43
libkea_process_la_SOURCES += config_ctl_info.cc config_ctl_info.h
libkea_process_la_SOURCES += config_ctl_parser.cc config_ctl_parser.h
44
libkea_process_la_SOURCES += d_cfg_mgr.cc d_cfg_mgr.h
45
libkea_process_la_SOURCES += d_controller.cc d_controller.h
46
libkea_process_la_SOURCES += d_log.cc d_log.h
47
libkea_process_la_SOURCES += d_process.h
48
libkea_process_la_SOURCES += daemon.cc daemon.h
49
libkea_process_la_SOURCES += io_service_signal.cc io_service_signal.h
50 51
libkea_process_la_SOURCES += log_parser.cc log_parser.h
libkea_process_la_SOURCES += logging_info.cc logging_info.h
52 53 54 55 56 57

nodist_libkea_process_la_SOURCES = process_messages.cc process_messages.h

libkea_process_la_CXXFLAGS = $(AM_CXXFLAGS)
libkea_process_la_CPPFLAGS = $(AM_CPPFLAGS)
libkea_process_la_LDFLAGS  = $(AM_LDFLAGS)
58
libkea_process_la_LDFLAGS += -no-undefined -version-info 2:1:0
59 60 61 62 63

libkea_process_la_LIBADD  =
libkea_process_la_LIBADD += $(top_builddir)/src/lib/cfgrpt/libcfgrpt.la
libkea_process_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
libkea_process_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
64 65 66 67

if HAVE_MYSQL
libkea_process_la_LIBADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
endif
68 69 70
if HAVE_PGSQL
libkea_process_la_LIBADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la
endif
71 72 73
if HAVE_CQL
libkea_process_la_LIBADD += $(top_builddir)/src/lib/cql/libkea-cql.la
endif
74 75

libkea_process_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
76
libkea_process_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
77 78 79 80 81
libkea_process_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
libkea_process_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
libkea_process_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
libkea_process_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
libkea_process_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
82
libkea_process_la_LIBADD += $(LOG4CPLUS_LIBS) $(BOOST_LIBS)
83 84 85 86 87 88

# Specify the headers for copying into the installation directory tree.
libkea_process_includedir = $(pkgincludedir)/process
libkea_process_include_HEADERS = \
	d_cfg_mgr.h \
	d_controller.h \
89
	d_log.h \
90
	d_process.h \
91
	io_service_signal.h