mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 01:49:48 +00:00
[#3734] Remove autotools
This commit is contained in:
parent
290419eb36
commit
3a922204f0
50
.gitignore
vendored
50
.gitignore
vendored
@ -1,50 +0,0 @@
|
||||
*.gcda
|
||||
*.gcno
|
||||
*.gcov
|
||||
*.la
|
||||
*.lo
|
||||
*.o
|
||||
*~
|
||||
.deps/
|
||||
.libs/
|
||||
__pycache__/
|
||||
Makefile
|
||||
Makefile.in
|
||||
TAGS
|
||||
|
||||
*.log
|
||||
*.trs
|
||||
config.h.in~
|
||||
/aclocal.m4
|
||||
/autom4te.cache/
|
||||
/compile
|
||||
/config.guess
|
||||
/config.h
|
||||
/config.h.in
|
||||
/config.log
|
||||
/config.report
|
||||
/config.status
|
||||
/config.sub
|
||||
/configure
|
||||
/cscope.files
|
||||
/cscope.out
|
||||
/depcomp
|
||||
/install-sh
|
||||
/libtool
|
||||
/ltmain.sh
|
||||
/missing
|
||||
/py-compile
|
||||
/stamp-h*
|
||||
/test-driver
|
||||
/ylwrap
|
||||
/kea_version.h
|
||||
|
||||
/all.info
|
||||
/coverage-cpp-html
|
||||
/dns++.pc
|
||||
/local.zone.sqlite3
|
||||
/logger_lockfile
|
||||
/report.info
|
||||
/hammer
|
||||
|
||||
/build
|
190
Makefile.am
190
Makefile.am
@ -1,190 +0,0 @@
|
||||
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
|
||||
# ^^^^^^^^ This has to be the first line and cannot come later in this
|
||||
# Makefile.am due to some bork in some versions of autotools.
|
||||
|
||||
SUBDIRS = tools . ext src fuzz doc m4macros @PREMIUM_DIR@ @CONTRIB_DIR@
|
||||
|
||||
USE_LCOV=@USE_LCOV@
|
||||
LCOV=@LCOV@
|
||||
GENHTML=@GENHTML@
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG=@DISTCHECK_GTEST_CONFIGURE_FLAG@
|
||||
DISTCHECK_CRYPTO_CONFIGURE_FLAG=@DISTCHECK_CRYPTO_CONFIGURE_FLAG@
|
||||
DISTCHECK_BOOST_CONFIGURE_FLAG=@DISTCHECK_BOOST_CONFIGURE_FLAG@
|
||||
DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG=@DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG@
|
||||
DISTCHECK_PERFDHCP_CONFIGURE_FLAG=@DISTCHECK_PERFDHCP_CONFIGURE_FLAG@
|
||||
DISTCHECK_KEA_SHELL_CONFIGURE_FLAG=@DISTCHECK_KEA_SHELL_CONFIGURE_FLAG@
|
||||
DISTCHECK_PREMIUM_CONFIGURE_FLAG=@DISTCHECK_PREMIUM_CONFIGURE_FLAG@
|
||||
DISTCHECK_CONTRIB_CONFIGURE_FLAG=@DISTCHECK_CONTRIB_CONFIGURE_FLAG@
|
||||
DISTCHECK_MYSQL_CONFIGURE_FLAG=@DISTCHECK_MYSQL_CONFIGURE_FLAG@
|
||||
DISTCHECK_PGSQL_CONFIGURE_FLAG=@DISTCHECK_PGSQL_CONFIGURE_FLAG@
|
||||
DISTCHECK_GSSAPI_CONFIGURE_FLAG=@DISTCHECK_GSSAPI_CONFIGURE_FLAG@
|
||||
DISTCHECK_LIBYANG_CONFIGURE_FLAG=@DISTCHECK_LIBYANG_CONFIGURE_FLAG@
|
||||
DISTCHECK_LIBYANGCPP_CONFIGURE_FLAG=@DISTCHECK_LIBYANGCPP_CONFIGURE_FLAG@
|
||||
DISTCHECK_SYSREPO_CONFIGURE_FLAG=@DISTCHECK_SYSREPO_CONFIGURE_FLAG@
|
||||
DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG=@DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG@
|
||||
|
||||
OVERALL_COVERAGE_DIR=$(abs_top_builddir)/coverage-cpp-html
|
||||
|
||||
DISTCLEANFILES = config.report
|
||||
|
||||
# When running distcheck target, do not install the configurations
|
||||
DISTCHECK_CONFIGURE_FLAGS = --disable-install-configurations
|
||||
|
||||
# Use same --with-gtest flag if set
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_GTEST_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the crypto backend config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_CRYPTO_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the Boost configuration which becomes sensible
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_BOOST_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the log4cplus path too
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG)
|
||||
|
||||
# Keep perfdhcp if enabled
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_PERFDHCP_CONFIGURE_FLAG)
|
||||
|
||||
# Keep kea-shell if enabled
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_KEA_SHELL_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the premium config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_PREMIUM_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the contrib config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_CONTRIB_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the mysql config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_MYSQL_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the pgsql config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_PGSQL_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the gssapi config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_GSSAPI_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the libyang config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_LIBYANG_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the libyang-cpp config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_LIBYANGCPP_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the sysrepo config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_SYSREPO_CONFIGURE_FLAG)
|
||||
|
||||
# Keep the sysrepo-cpp config
|
||||
DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG)
|
||||
|
||||
dist_doc_DATA = AUTHORS COPYING ChangeLog README CONTRIBUTING.md SECURITY.md platforms.rst code_of_conduct.md
|
||||
|
||||
.PHONY: add-changelog-entry check-valgrind check-valgrind-suppress
|
||||
|
||||
check-valgrind:
|
||||
if HAVE_VALGRIND
|
||||
@VALGRIND_COMMAND="$(VALGRIND) -q --gen-suppressions=all --track-origins=yes --num-callers=48 --leak-check=full --fullpath-after=" \
|
||||
make -C $(abs_top_builddir) check
|
||||
else
|
||||
@echo "*** Valgrind is required for check-valgrind ***"; exit 1;
|
||||
endif
|
||||
|
||||
check-valgrind-suppress:
|
||||
if HAVE_VALGRIND
|
||||
@VALGRIND_COMMAND="$(VALGRIND) -q --gen-suppressions=all --track-origins=yes --error-exitcode=1 --suppressions=$(abs_top_srcdir)/src/valgrind-suppressions --suppressions=$(abs_top_srcdir)/src/valgrind-suppressions.revisit --num-callers=48 --leak-check=full --fullpath-after=" \
|
||||
make -C $(abs_top_builddir) check
|
||||
else
|
||||
@echo "*** Valgrind is required for check-valgrind-suppress ***"; exit 1;
|
||||
endif
|
||||
|
||||
clean-cpp-coverage:
|
||||
@if [ $(USE_LCOV) = yes ] ; then \
|
||||
$(LCOV) --directory . --zerocounters; \
|
||||
rm -rf $(OVERALL_COVERAGE_DIR); \
|
||||
else \
|
||||
echo "C++ code coverage not enabled at configuration time." ; \
|
||||
echo "Use: ./configure --with-lcov" ; \
|
||||
fi
|
||||
|
||||
perform-coverage:
|
||||
find src -mindepth 2 -maxdepth 2 -type d | xargs -I{} bash -c "cd {}; make check || true"
|
||||
|
||||
report-cpp-coverage:
|
||||
if HAVE_BOTAN
|
||||
BOTAN_PATH=botan/\*
|
||||
else
|
||||
BOTAN_PATH=
|
||||
endif
|
||||
if HAVE_OPENSSL
|
||||
OPENSSL_PATH=openssl/\*
|
||||
else
|
||||
OPENSSL_PATH=
|
||||
endif
|
||||
@if [ $(USE_LCOV) = yes ] ; then \
|
||||
$(LCOV) --capture --directory . \
|
||||
--ignore-errors gcov,source,graph \
|
||||
--output-file all.info; \
|
||||
$(LCOV) --remove all.info \
|
||||
c++/* \
|
||||
boost/\* \
|
||||
if HAVE_BOTAN
|
||||
botan/\* \
|
||||
endif
|
||||
gtest/\* \
|
||||
include/\* \
|
||||
lib/\eval/\* \
|
||||
log4cplus/\* \
|
||||
unittests/\* \
|
||||
tests/\* \
|
||||
testutils/\* \
|
||||
valgrind/\* \
|
||||
$(BOTAN_PATH) \
|
||||
$(OPENSSL_PATH) \
|
||||
--ignore-errors gcov,source,graph \
|
||||
--output report.info; \
|
||||
sed --in-place --expression "s|$(abs_top_srcdir)|$(abs_top_builddir)|g" report.info; \
|
||||
"$(GENHTML)" \
|
||||
--frames --show-details --title 'Kea code coverage report' --legend \
|
||||
--function-coverage --ignore-errors source --demangle-cpp \
|
||||
--output "$(OVERALL_COVERAGE_DIR)" report.info; \
|
||||
printf "Generated C++ code coverage report in HTML at %s.\n" "$(OVERALL_COVERAGE_DIR)"; \
|
||||
else \
|
||||
echo "C++ code coverage not enabled at configuration time." ; \
|
||||
echo "Use: ./configure --with-lcov" ; \
|
||||
fi
|
||||
|
||||
# for c++ test coverage
|
||||
.NOTPARALLEL: coverage
|
||||
|
||||
coverage: clean-coverage perform-coverage report-coverage
|
||||
|
||||
clean-coverage: clean-cpp-coverage
|
||||
|
||||
report-coverage: report-cpp-coverage
|
||||
|
||||
# for static C++ check using cppcheck (when available)
|
||||
cppcheck:
|
||||
cppcheck -I./src/lib -I./src/bin --enable=all \
|
||||
--suppressions-list=src/cppcheck-suppress.lst --inline-suppr \
|
||||
--quiet --error-exitcode=1 \
|
||||
--template '{file}:{line}: check_fail: {message} ({severity},{id})' \
|
||||
src
|
||||
|
||||
# this is a shortcut that builds only documentation dependencies and documentation itself
|
||||
docs:
|
||||
$(MAKE) -C doc/sphinx
|
||||
|
||||
# These steps are necessary during installation
|
||||
install-exec-hook:
|
||||
mkdir -p $(DESTDIR)${localstatedir}/log/
|
||||
mkdir -p $(DESTDIR)${localstatedir}/lib/${PACKAGE_NAME}
|
||||
mkdir -p $(DESTDIR)${runstatedir}/${PACKAGE_NAME}
|
||||
|
||||
add-changelog-entry:
|
||||
@./changelog_unreleased/.add-entry.sh
|
||||
|
||||
CLEANFILES = $(abs_top_builddir)/logger_lockfile
|
||||
|
||||
# config.h may be included by headers supplied for building user-written
|
||||
# hooks libraries, so we need to include it in the distribution.
|
||||
pkginclude_HEADERS = config.h kea_version.h
|
||||
|
||||
.PHONY: clean-coverage coverage cppcheck docs report-coverage
|
2260
configure.ac
2260
configure.ac
File diff suppressed because it is too large
Load Diff
129
doc/Makefile.am
129
doc/Makefile.am
@ -1,129 +0,0 @@
|
||||
SUBDIRS = sphinx devel
|
||||
|
||||
EXTRA_DIST = images/kea-logo-100x70.png
|
||||
|
||||
nobase_dist_doc_DATA = examples/agent/comments.json
|
||||
nobase_dist_doc_DATA += examples/agent/https.json
|
||||
nobase_dist_doc_DATA += examples/agent/rbac.json
|
||||
nobase_dist_doc_DATA += examples/agent/simple.json
|
||||
nobase_dist_doc_DATA += examples/ddns/all-keys.json
|
||||
nobase_dist_doc_DATA += examples/ddns/all-keys-netconf.json
|
||||
nobase_dist_doc_DATA += examples/ddns/comments.json
|
||||
nobase_dist_doc_DATA += examples/ddns/gss-tsig.json
|
||||
nobase_dist_doc_DATA += examples/ddns/sample1.json
|
||||
nobase_dist_doc_DATA += examples/ddns/template.json
|
||||
nobase_dist_doc_DATA += examples/https/httpd2/kea-httpd2.conf
|
||||
nobase_dist_doc_DATA += examples/https/nginx/kea-nginx.conf
|
||||
nobase_dist_doc_DATA += examples/https/shell/kea-stunnel.conf
|
||||
nobase_dist_doc_DATA += examples/kea4/advanced.json
|
||||
nobase_dist_doc_DATA += examples/kea4/all-keys.json
|
||||
nobase_dist_doc_DATA += examples/kea4/all-keys-netconf.json
|
||||
nobase_dist_doc_DATA += examples/kea4/all-options.json
|
||||
nobase_dist_doc_DATA += examples/kea4/backends.json
|
||||
nobase_dist_doc_DATA += examples/kea4/classify.json
|
||||
nobase_dist_doc_DATA += examples/kea4/classify2.json
|
||||
nobase_dist_doc_DATA += examples/kea4/comments.json
|
||||
nobase_dist_doc_DATA += examples/kea4/config-backend.json
|
||||
nobase_dist_doc_DATA += examples/kea4/dhcpv4-over-dhcpv6.json
|
||||
nobase_dist_doc_DATA += examples/kea4/global-reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea4/ha-load-balancing-server1-mt-with-tls.json
|
||||
nobase_dist_doc_DATA += examples/kea4/ha-load-balancing-server2-mt.json
|
||||
nobase_dist_doc_DATA += examples/kea4/hooks.json
|
||||
nobase_dist_doc_DATA += examples/kea4/hooks-radius.json
|
||||
nobase_dist_doc_DATA += examples/kea4/leases-expiration.json
|
||||
nobase_dist_doc_DATA += examples/kea4/multiple-options.json
|
||||
nobase_dist_doc_DATA += examples/kea4/mysql-reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea4/pgsql-reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea4/reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea4/several-subnets.json
|
||||
nobase_dist_doc_DATA += examples/kea4/shared-network.json
|
||||
nobase_dist_doc_DATA += examples/kea4/single-subnet.json
|
||||
nobase_dist_doc_DATA += examples/kea4/with-ddns.json
|
||||
nobase_dist_doc_DATA += examples/kea4/vivso.json
|
||||
nobase_dist_doc_DATA += examples/kea4/vendor-specific.json
|
||||
nobase_dist_doc_DATA += examples/kea6/advanced.json
|
||||
nobase_dist_doc_DATA += examples/kea6/all-keys.json
|
||||
nobase_dist_doc_DATA += examples/kea6/all-keys-netconf.json
|
||||
nobase_dist_doc_DATA += examples/kea6/all-options.json
|
||||
nobase_dist_doc_DATA += examples/kea6/backends.json
|
||||
nobase_dist_doc_DATA += examples/kea6/classify.json
|
||||
nobase_dist_doc_DATA += examples/kea6/classify2.json
|
||||
nobase_dist_doc_DATA += examples/kea6/comments.json
|
||||
nobase_dist_doc_DATA += examples/kea6/config-backend.json
|
||||
nobase_dist_doc_DATA += examples/kea6/dhcpv4-over-dhcpv6.json
|
||||
nobase_dist_doc_DATA += examples/kea6/duid.json
|
||||
nobase_dist_doc_DATA += examples/kea6/global-reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea6/ha-hot-standby-server1-with-tls.json
|
||||
nobase_dist_doc_DATA += examples/kea6/ha-hot-standby-server2.json
|
||||
nobase_dist_doc_DATA += examples/kea6/hooks.json
|
||||
nobase_dist_doc_DATA += examples/kea6/iPXE.json
|
||||
nobase_dist_doc_DATA += examples/kea6/leases-expiration.json
|
||||
nobase_dist_doc_DATA += examples/kea6/multiple-options.json
|
||||
nobase_dist_doc_DATA += examples/kea6/mysql-reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea6/pgsql-reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea6/reservations.json
|
||||
nobase_dist_doc_DATA += examples/kea6/several-subnets.json
|
||||
nobase_dist_doc_DATA += examples/kea6/shared-network.json
|
||||
nobase_dist_doc_DATA += examples/kea6/simple.json
|
||||
nobase_dist_doc_DATA += examples/kea6/softwire46.json
|
||||
nobase_dist_doc_DATA += examples/kea6/stateless.json
|
||||
nobase_dist_doc_DATA += examples/kea6/tee-times.json
|
||||
nobase_dist_doc_DATA += examples/kea6/with-ddns.json
|
||||
nobase_dist_doc_DATA += examples/netconf/kea-dhcp6-operations/boot.json
|
||||
nobase_dist_doc_DATA += examples/netconf/kea-dhcp6-operations/logging.xml
|
||||
nobase_dist_doc_DATA += examples/netconf/kea-dhcp6-operations/netconf.json
|
||||
nobase_dist_doc_DATA += examples/netconf/kea-dhcp6-operations/startup.xml
|
||||
nobase_dist_doc_DATA += examples/netconf/kea-dhcp6-operations/twopools.xml
|
||||
nobase_dist_doc_DATA += examples/netconf/kea-dhcp6-operations/twosubnets.xml
|
||||
nobase_dist_doc_DATA += examples/netconf/comments.json
|
||||
nobase_dist_doc_DATA += examples/netconf/simple-dhcp4.json
|
||||
nobase_dist_doc_DATA += examples/netconf/simple-dhcp6.json
|
||||
|
||||
nobase_dist_doc_DATA += examples/template-power-user-home/info.md
|
||||
nobase_dist_doc_DATA += examples/template-power-user-home/kea-ca-1.conf
|
||||
nobase_dist_doc_DATA += examples/template-power-user-home/kea-ca-2.conf
|
||||
nobase_dist_doc_DATA += examples/template-power-user-home/kea-dhcp4-1.conf
|
||||
nobase_dist_doc_DATA += examples/template-power-user-home/kea-dhcp4-2.conf
|
||||
|
||||
nobase_dist_doc_DATA += examples/template-ha-mt-tls/info.md
|
||||
nobase_dist_doc_DATA += examples/template-ha-mt-tls/kea-ca-1.conf
|
||||
nobase_dist_doc_DATA += examples/template-ha-mt-tls/kea-ca-2.conf
|
||||
nobase_dist_doc_DATA += examples/template-ha-mt-tls/kea-dhcp4-1.conf
|
||||
nobase_dist_doc_DATA += examples/template-ha-mt-tls/kea-dhcp4-2.conf
|
||||
|
||||
# If there's any new parameter added for any grammar in one of the daemons, someone should go through
|
||||
# this procedure:
|
||||
#
|
||||
# 1. autoreconf -i && ./configure --enable-generate-docs --enable-generate-parser
|
||||
# 2. cd doc
|
||||
# 3. make grammar
|
||||
# 4. make -C sphinx html
|
||||
# 5. Inspect the html output and make sure it's ok.
|
||||
# 6. Review changes in doc/sphinx/grammar/*
|
||||
# 7. Check in changed files in doc/sphinx/grammar/*
|
||||
#
|
||||
# Make sure you commit only relevant changes, skip the timestamp only updates.
|
||||
grammar:
|
||||
if GENERATE_DOCS
|
||||
if GENERATE_PARSER
|
||||
mkdir -p $(abs_top_srcdir)/doc/sphinx/grammar
|
||||
$(abs_top_srcdir)/tools/extract_bnf.sh $(abs_top_srcdir)/src/bin/dhcp4/dhcp4_parser \
|
||||
--markdown ':ref:`dhcp4`' > $(abs_top_srcdir)/doc/sphinx/grammar/grammar-dhcp4-parser.rst
|
||||
$(abs_top_srcdir)/tools/extract_bnf.sh $(abs_top_srcdir)/src/bin/dhcp6/dhcp6_parser \
|
||||
--markdown ':ref:`dhcp6`' > $(abs_top_srcdir)/doc/sphinx/grammar/grammar-dhcp6-parser.rst
|
||||
$(abs_top_srcdir)/tools/extract_bnf.sh $(abs_top_srcdir)/src/bin/d2/d2_parser \
|
||||
--markdown ':ref:`dhcp-ddns-server`' > $(abs_top_srcdir)/doc/sphinx/grammar/grammar-d2-parser.rst
|
||||
$(abs_top_srcdir)/tools/extract_bnf.sh $(abs_top_srcdir)/src/bin/agent/agent_parser \
|
||||
--markdown ':ref:`kea-ctrl-agent`' > $(abs_top_srcdir)/doc/sphinx/grammar/grammar-ca-parser.rst
|
||||
$(abs_top_srcdir)/tools/extract_bnf.sh $(abs_top_srcdir)/src/bin/netconf/netconf_parser \
|
||||
--markdown ':ref:`netconf`' > $(abs_top_srcdir)/doc/sphinx/grammar/grammar-netconf-parser.rst
|
||||
else
|
||||
@echo "ERROR: You need to enable both docs (--enable-generate-docs) and parser (--enable-generate-parser)"
|
||||
@echo "ERROR: to regenerate grammar documentation."
|
||||
false
|
||||
endif
|
||||
else
|
||||
@echo "ERROR: You need to enable both docs (--enable-generate-docs) and parser (--enable-generate-parser)"
|
||||
@echo "ERROR: to regenerate grammar documentation."
|
||||
false
|
||||
endif
|
@ -1,25 +0,0 @@
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += Doxyfile
|
||||
EXTRA_DIST += bison.dox
|
||||
EXTRA_DIST += changelog.dox
|
||||
EXTRA_DIST += config-backend.dox
|
||||
EXTRA_DIST += congestion-handling.dox
|
||||
EXTRA_DIST += contribute.dox
|
||||
EXTRA_DIST += debug.dox
|
||||
EXTRA_DIST += doc.dox
|
||||
EXTRA_DIST += fuzz.dox
|
||||
EXTRA_DIST += mainpage.dox
|
||||
EXTRA_DIST += performance.dox
|
||||
EXTRA_DIST += qa.dox
|
||||
EXTRA_DIST += terminology.dox
|
||||
EXTRA_DIST += unit-tests.dox
|
||||
|
||||
all: # do nothing, used only by developers manually
|
||||
|
||||
devel:
|
||||
mkdir -p $(builddir)/html
|
||||
(cat $(srcdir)/Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > $(builddir)/html/doxygen.log 2> $(builddir)/html/doxygen-error.log
|
||||
echo `grep -i ": warning:" $(builddir)/html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
@ -1,269 +0,0 @@
|
||||
EXTRA_DIST =
|
||||
sphinxbuilddir = $(builddir)/_build
|
||||
abs_sphinxbuilddir = $(abs_builddir)/_build
|
||||
|
||||
if GENERATE_DOCS
|
||||
|
||||
sphinxopts =
|
||||
sphinxopts += -v
|
||||
sphinxopts += -E
|
||||
sphinxopts += -a
|
||||
sphinxopts += -W
|
||||
sphinxopts += -c "${abs_srcdir}"
|
||||
|
||||
static_sources =
|
||||
static_sources += static/kea-imageonly-100bw.png
|
||||
static_sources += static/kea-logo-100x70.png
|
||||
static_sources += static/kea-logo-200.png
|
||||
static_sources += static/kea.css
|
||||
|
||||
# ARM
|
||||
rst_arm_sources =
|
||||
rst_arm_sources += index.rst
|
||||
rst_arm_sources += manpages.rst
|
||||
rst_arm_sources += umls.rst
|
||||
rst_arm_sources += debug-messages.rst
|
||||
rst_arm_sources += kea-messages.rst
|
||||
|
||||
include arm/rst_arm_sources.mk
|
||||
|
||||
EXTRA_DIST += arm/rst_arm_sources.mk
|
||||
|
||||
main_sources = $(rst_arm_sources) conf.py $(static_sources)
|
||||
|
||||
# mans
|
||||
rst_man_sources =
|
||||
include man/rst_man_sources.mk
|
||||
|
||||
EXTRA_DIST += man/rst_man_sources.mk
|
||||
|
||||
rst_arm_sources += grammar/grammar.rst
|
||||
rst_arm_sources += grammar/grammar-ca-parser.rst
|
||||
rst_arm_sources += grammar/grammar-d2-parser.rst
|
||||
rst_arm_sources += grammar/grammar-dhcp4-parser.rst
|
||||
rst_arm_sources += grammar/grammar-dhcp6-parser.rst
|
||||
rst_arm_sources += grammar/grammar-netconf-parser.rst
|
||||
|
||||
man8s =
|
||||
include man/man8s.mk
|
||||
|
||||
EXTRA_DIST += man/man8s.mk
|
||||
|
||||
man_sources = $(rst_man_sources) conf.py
|
||||
|
||||
EXTRA_DIST += $(main_sources) $(man_sources) mes2doc.py api2doc.py $(man8s)
|
||||
|
||||
# list of messages files that are used to generate kea-messages.rst and then kea-messages.pdf
|
||||
mes_files =
|
||||
include $(srcdir)/mes_files.mk
|
||||
|
||||
EXTRA_DIST += mes_files.mk
|
||||
|
||||
# list of api files that are used to generate api.rst
|
||||
api_files =
|
||||
include $(top_srcdir)/src/share/api/api_files.mk
|
||||
|
||||
if HAVE_PDFLATEX
|
||||
all: debug-messages.rst kea-messages.rst html mans pdf singlehtml text
|
||||
else
|
||||
all: debug-messages.rst kea-messages.rst html mans singlehtml text
|
||||
endif
|
||||
|
||||
# build the list of message files
|
||||
mes_files.mk: mes-files.txt
|
||||
@sed 's;^;mes_files += $$(top_srcdir)/;g' $< > $@
|
||||
|
||||
mes-files.txt:
|
||||
@find ../.. -type f -name '*.mes' | sort -V | sed 's#^../../##g' > $@
|
||||
|
||||
# Used in official build process. debug-messages.rst is generated via ./tools/check-messages.py -g.
|
||||
$(srcdir)/debug-messages.rst: $(srcdir)/../../tools/check-messages.py
|
||||
$(PYTHON) $< --generate-debug-messages-page
|
||||
|
||||
# Used in official build process. kea-messages.rst is generated via mes2doc.py.
|
||||
$(srcdir)/kea-messages.rst: mes2doc.py
|
||||
$(PYTHON) $(srcdir)/mes2doc.py -o $@
|
||||
|
||||
# build the list of api files
|
||||
api-files.txt: $(top_srcdir)/src/share/api/api_files.mk
|
||||
@sed 's;api_files .*)/;;' $< > $@
|
||||
|
||||
EXTRA_DIST += debug-messages.rst
|
||||
EXTRA_DIST += kea-messages.rst
|
||||
|
||||
# some tools do not use this makefile but still need generate files.
|
||||
EXTRA_DIST += mes-files.txt api-files.txt
|
||||
|
||||
# this rule is only used for development purposes and is not used in official
|
||||
# build process as api.rst is always generated via sphinx's conf.py
|
||||
$(srcdir)/api.rst: api2doc.py
|
||||
$(PYTHON) $(srcdir)/api2doc.py -o $@
|
||||
|
||||
$(srcdir)/arm/platforms.rst:
|
||||
rm -f $(srcdir)/arm/platforms.rst
|
||||
cp $(srcdir)/../../platforms.rst $(srcdir)/arm/platforms.rst
|
||||
|
||||
# UML files
|
||||
|
||||
umls =
|
||||
umls += uml/appendRequestedOptions.uml
|
||||
umls += uml/appendRequestedVendorOptions.uml
|
||||
umls += uml/assign-lease4.uml
|
||||
umls += uml/buildCfgOptionList.uml
|
||||
umls += uml/currentHost4.uml
|
||||
umls += uml/lease-states.uml
|
||||
umls += uml/main-loop.uml
|
||||
umls += uml/packet4.uml
|
||||
umls += uml/radius.uml
|
||||
umls += uml/recognizing-same-client.uml
|
||||
umls += uml/request4-lease.uml
|
||||
umls += uml/request4.uml
|
||||
umls += uml/requestLease4.uml
|
||||
umls += uml/select4.uml
|
||||
umls += uml/tkey.uml
|
||||
umls += uml/update.uml
|
||||
|
||||
pngs =
|
||||
pngs += uml/appendRequestedOptions.png
|
||||
pngs += uml/appendRequestedVendorOptions.png
|
||||
pngs += uml/assign-lease4.png
|
||||
pngs += uml/buildCfgOptionList.png
|
||||
pngs += uml/currentHost4.png
|
||||
pngs += uml/lease-states.png
|
||||
pngs += uml/main-loop.png
|
||||
pngs += uml/packet4.png
|
||||
pngs += uml/radius.png
|
||||
pngs += uml/recognizing-same-client.png
|
||||
pngs += uml/request4-lease.png
|
||||
pngs += uml/request4.png
|
||||
pngs += uml/requestLease4.png
|
||||
pngs += uml/select4.png
|
||||
pngs += uml/tkey.png
|
||||
pngs += uml/update.png
|
||||
|
||||
svgs =
|
||||
svgs += uml/appendRequestedOptions.svg
|
||||
svgs += uml/appendRequestedVendorOptions.svg
|
||||
svgs += uml/assign-lease4.svg
|
||||
svgs += uml/buildCfgOptionList.svg
|
||||
svgs += uml/currentHost4.svg
|
||||
svgs += uml/lease-states.svg
|
||||
svgs += uml/main-loop.svg
|
||||
svgs += uml/packet4.svg
|
||||
svgs += uml/radius.svg
|
||||
svgs += uml/recognizing-same-client.svg
|
||||
svgs += uml/request4-lease.svg
|
||||
svgs += uml/request4.svg
|
||||
svgs += uml/requestLease4.svg
|
||||
svgs += uml/select4.svg
|
||||
svgs += uml/tkey.svg
|
||||
svgs += uml/update.svg
|
||||
|
||||
txts =
|
||||
txts += uml/option-data-priority.atxt
|
||||
txts += uml/priority-of-lease-lifetimes-and-dhcpv4-fields.atxt
|
||||
txts += uml/tkey.atxt
|
||||
txts += uml/update.atxt
|
||||
|
||||
if HAVE_PLANTUML
|
||||
uml: uml-to-png uml-to-svg format-svgs uml-to-txt
|
||||
|
||||
uml-to-png: $(umls)
|
||||
@ @PLANTUML@ -tpng $^
|
||||
|
||||
uml-to-svg: $(umls)
|
||||
@ @PLANTUML@ -tsvg $^
|
||||
|
||||
# Formatting puts every tag on a separate line, which makes it easier for diffing.
|
||||
format-svgs: $(svgs)
|
||||
if HAVE_XMLLINT
|
||||
@ for svg in $(svgs); do xmllint --format $$svg > tmp; mv tmp $$svg; done
|
||||
else
|
||||
@ printf 'WARNING: xmllint not found. SVGs not formatted.\n'
|
||||
endif
|
||||
|
||||
# Only sequence diagrams support ASCII art.
|
||||
uml-to-txt: uml/tkey.uml uml/update.uml
|
||||
@ @PLANTUML@ -ttxt $^
|
||||
@ for txt in $(txts); do sed 's/ *$$//g' $$txt > tmp; mv tmp $$txt; done
|
||||
endif
|
||||
|
||||
EXTRA_DIST += $(umls)
|
||||
EXTRA_DIST += $(pngs)
|
||||
EXTRA_DIST += $(svgs)
|
||||
EXTRA_DIST += $(txts)
|
||||
|
||||
PDFLATEX_AND_OPTS=$(PDFLATEX) -interaction nonstopmode
|
||||
|
||||
pdf: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
|
||||
$(SPHINXBUILD) -M latex $(srcdir) $(sphinxbuilddir) $(sphinxopts)
|
||||
cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex
|
||||
cd $(abs_sphinxbuilddir)/latex && makeindex -s python.ist kea-arm.idx
|
||||
cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex
|
||||
cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex
|
||||
cd $(abs_sphinxbuilddir)/latex && makeindex -s python.ist kea-messages.idx
|
||||
cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex
|
||||
|
||||
html: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
|
||||
$(SPHINXBUILD) -M html $(srcdir) $(sphinxbuilddir) $(sphinxopts)
|
||||
|
||||
# This target is not used anywhere, but people who prefer single page docs
|
||||
# can do make -C doc/sphinx singlehtml and then enjoy their docs being
|
||||
# generated in doc/sphinx/_build/singlehtml
|
||||
singlehtml: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
|
||||
$(SPHINXBUILD) -M singlehtml $(srcdir) $(sphinxbuilddir) $(sphinxopts)
|
||||
|
||||
text: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst
|
||||
$(SPHINXBUILD) -M text $(srcdir) $(sphinxbuilddir) $(sphinxopts)
|
||||
|
||||
$(man8s): mans
|
||||
|
||||
mans: $(man_sources) api-files.txt mes-files.txt
|
||||
$(SPHINXBUILD) -M man $(srcdir) $(sphinxbuilddir) $(sphinxopts)
|
||||
|
||||
# Updates sphinx dependencies to the latest versions available on the current
|
||||
# host and freezes them in ./src/requirements.txt. Requires pip-compile:
|
||||
# pip install pip-tools
|
||||
# Run this when dependencies are added, changed or removed.
|
||||
update-python-dependencies: ./src/requirements.in
|
||||
rm -f ./src/requirements.txt
|
||||
pip-compile -r ./src/requirements.in
|
||||
|
||||
clean-local:
|
||||
rm -rf $(sphinxbuilddir)
|
||||
rm -f $(srcdir)/mes-files.txt $(srcdir)/api-files.txt
|
||||
rm -f $(srcdir)/debug-messages.rst $(srcdir)/kea-messages.rst $(srcdir)/api.rst
|
||||
rm -f $(srcdir)/arm/platforms.rst
|
||||
|
||||
.PHONY: all pdf html mans update-python-dependencies uml uml-to-png uml-to-svg format-svgs uml-to-txt
|
||||
|
||||
endif
|
||||
|
||||
# install and uninstall can occur with GENERATE_DOCS and without it
|
||||
# so we want to install all when GENERATE_DOCS is and
|
||||
# just mans when GENERATE_DOCS is not used, and when man files exists (e.g release tarball)
|
||||
install-data-local:
|
||||
mkdir -p $(DESTDIR)$(docdir)
|
||||
if GENERATE_DOCS
|
||||
cp -r $(sphinxbuilddir)/html $(DESTDIR)$(docdir)
|
||||
if HAVE_PDFLATEX
|
||||
${INSTALL_DATA} $(sphinxbuilddir)/latex/kea-arm.pdf $(DESTDIR)$(docdir)
|
||||
${INSTALL_DATA} $(sphinxbuilddir)/latex/kea-messages.pdf $(DESTDIR)$(docdir)
|
||||
endif
|
||||
${MKDIR_P} ${DESTDIR}${mandir}/man8
|
||||
${INSTALL_DATA} $(man8s) ${DESTDIR}${mandir}/man8/
|
||||
else
|
||||
if INSTALL_MANS
|
||||
${MKDIR_P} ${DESTDIR}${mandir}/man8
|
||||
${INSTALL_DATA} $(sphinxbuilddir)/man/*.8 ${DESTDIR}${mandir}/man8/
|
||||
endif
|
||||
endif
|
||||
|
||||
uninstall-local:
|
||||
rm -rf $(DESTDIR)$(docdir)
|
||||
|
||||
# There are sometimes conflicts when more then one sphinx-build is run at a time.
|
||||
# This target blocks running anything in parallel in this Makefile,
|
||||
# all is run serially.
|
||||
|
||||
.NOTPARALLEL:
|
2
ext/.gitignore
vendored
2
ext/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
/gtest
|
||||
|
@ -1,5 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
if HAVE_GTEST_SOURCE
|
||||
SUBDIRS += gtest
|
||||
endif
|
@ -1,10 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
CLEANFILES = gtest-all.cc
|
||||
|
||||
noinst_LIBRARIES = libgtest.a
|
||||
libgtest_a_CXXFLAGS = $(GTEST_INCLUDES) $(AM_CXXFLAGS)
|
||||
nodist_libgtest_a_SOURCES = gtest-all.cc
|
||||
|
||||
gtest-all.cc: $(GTEST_SOURCE)/src/gtest-all.cc
|
||||
cp -p $(GTEST_SOURCE)/src/gtest-all.cc $@
|
@ -1,93 +0,0 @@
|
||||
SUBDIRS = . input tests
|
||||
|
||||
if FUZZING
|
||||
|
||||
AM_CPPFLAGS =
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/bin -I$(top_srcdir)/src/bin
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -DKEA_FUZZ_DIR_INSTALLATION=\"$(datarootdir)/$(PACKAGE_NAME)/fuzzing\"
|
||||
AM_CPPFLAGS += -DKEA_FUZZ_DIR_SOURCES=\"$(abs_top_builddir)/fuzz\"
|
||||
AM_CPPFLAGS += -DKEA_LFC_INSTALLATION=\"$(prefix)/sbin/kea-lfc\"
|
||||
AM_CPPFLAGS += -DKEA_LFC_SOURCES=\"$(abs_top_builddir)/src/bin/lfc/kea-lfc\"
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += $(GTEST_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS =
|
||||
AM_CXXFLAGS += $(KEA_CXXFLAGS)
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
sbin_PROGRAMS =
|
||||
sbin_PROGRAMS += fuzz_config_kea_dhcp4
|
||||
sbin_PROGRAMS += fuzz_config_kea_dhcp6
|
||||
sbin_PROGRAMS += fuzz_http_endpoint_kea_dhcp4
|
||||
sbin_PROGRAMS += fuzz_http_endpoint_kea_dhcp6
|
||||
sbin_PROGRAMS += fuzz_packets_kea_dhcp4
|
||||
sbin_PROGRAMS += fuzz_packets_kea_dhcp6
|
||||
sbin_PROGRAMS += fuzz_unix_socket_kea_dhcp4
|
||||
sbin_PROGRAMS += fuzz_unix_socket_kea_dhcp6
|
||||
|
||||
V6_LDADD = $(top_builddir)/src/bin/dhcp6/libdhcp6.la
|
||||
V4_LDADD = $(top_builddir)/src/bin/dhcp4/libdhcp4.la
|
||||
LDADD =
|
||||
LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
LDADD += $(GTEST_LDADD)
|
||||
|
||||
AM_LDFLAGS = $(GTEST_LDFLAGS)
|
||||
|
||||
common_sources = fuzz.cc fuzz.h
|
||||
if FUZZING_IN_CI
|
||||
AM_CXXFLAGS += -fsanitize=fuzzer -gdwarf-4
|
||||
else
|
||||
common_sources += main.cc
|
||||
endif
|
||||
|
||||
fuzz_config_kea_dhcp4_SOURCES = $(common_sources)
|
||||
fuzz_config_kea_dhcp4_SOURCES += fuzz_config_kea_dhcp4.cc
|
||||
fuzz_config_kea_dhcp4_LDADD = $(V4_LDADD) $(LDADD)
|
||||
|
||||
fuzz_config_kea_dhcp6_SOURCES = $(common_sources)
|
||||
fuzz_config_kea_dhcp6_SOURCES += fuzz_config_kea_dhcp6.cc
|
||||
fuzz_config_kea_dhcp6_LDADD = $(V6_LDADD) $(LDADD)
|
||||
|
||||
fuzz_http_endpoint_kea_dhcp4_SOURCES = $(common_sources)
|
||||
fuzz_http_endpoint_kea_dhcp4_SOURCES += fuzz_http_endpoint_kea_dhcp4.cc
|
||||
fuzz_http_endpoint_kea_dhcp4_LDADD = $(V4_LDADD) $(LDADD)
|
||||
|
||||
fuzz_http_endpoint_kea_dhcp6_SOURCES = $(common_sources)
|
||||
fuzz_http_endpoint_kea_dhcp6_SOURCES += fuzz_http_endpoint_kea_dhcp6.cc
|
||||
fuzz_http_endpoint_kea_dhcp6_LDADD = $(V6_LDADD) $(LDADD)
|
||||
|
||||
fuzz_packets_kea_dhcp4_SOURCES = $(common_sources)
|
||||
fuzz_packets_kea_dhcp4_SOURCES += fuzz_packets_kea_dhcp4.cc
|
||||
fuzz_packets_kea_dhcp4_LDADD = $(V4_LDADD) $(LDADD)
|
||||
|
||||
fuzz_packets_kea_dhcp6_SOURCES = $(common_sources)
|
||||
fuzz_packets_kea_dhcp6_SOURCES += fuzz_packets_kea_dhcp6.cc
|
||||
fuzz_packets_kea_dhcp6_LDADD = $(V6_LDADD) $(LDADD)
|
||||
|
||||
fuzz_unix_socket_kea_dhcp4_SOURCES = $(common_sources)
|
||||
fuzz_unix_socket_kea_dhcp4_SOURCES += fuzz_unix_socket_kea_dhcp4.cc
|
||||
fuzz_unix_socket_kea_dhcp4_LDADD = $(V4_LDADD) $(LDADD)
|
||||
|
||||
fuzz_unix_socket_kea_dhcp6_SOURCES = $(common_sources)
|
||||
fuzz_unix_socket_kea_dhcp6_SOURCES += fuzz_unix_socket_kea_dhcp6.cc
|
||||
fuzz_unix_socket_kea_dhcp6_LDADD = $(V6_LDADD) $(LDADD)
|
||||
|
||||
endif # FUZZING
|
@ -1,49 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
if FUZZING
|
||||
|
||||
fuzzdir = "${datarootdir}/${PACKAGE_NAME}/fuzz"
|
||||
|
||||
nobase_dist_fuzz_DATA =
|
||||
nobase_dist_fuzz_DATA += fuzz_config_kea_dhcp4/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_config_kea_dhcp4/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_config_kea_dhcp6/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_config_kea_dhcp6/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp4/config-get
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp4/config-get-with-service
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp4/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp4/empty-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp4/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp4/one-entry-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp6/config-get
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp6/config-get-with-service
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp6/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp6/empty-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp6/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_http_endpoint_kea_dhcp6/one-entry-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp4/dhcp-payload-only
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp4/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp4/full-dhcp-packet
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp4/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp4/udp-header
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp6/dhcp-payload-only
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp6/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp6/full-dhcp-packet
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp6/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_packets_kea_dhcp6/udp-header
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp4/config-get
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp4/config-get-with-service
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp4/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp4/empty-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp4/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp4/one-entry-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp6/config-get
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp6/config-get-with-service
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp6/empty
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp6/empty-json-map
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp6/one-byte
|
||||
nobase_dist_fuzz_DATA += fuzz_unix_socket_kea_dhcp6/one-entry-json-map
|
||||
nobase_dist_fuzz_DATA += kea-dhcp4.conf
|
||||
nobase_dist_fuzz_DATA += kea-dhcp6.conf
|
||||
|
||||
endif # FUZZING
|
@ -1,17 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
if FUZZING
|
||||
|
||||
check_SCRIPTS =
|
||||
check_SCRIPTS += test_fuzz_config_kea_dhcp4.sh
|
||||
check_SCRIPTS += test_fuzz_config_kea_dhcp6.sh
|
||||
check_SCRIPTS += test_fuzz_http_endpoint_kea_dhcp4.sh
|
||||
check_SCRIPTS += test_fuzz_http_endpoint_kea_dhcp6.sh
|
||||
check_SCRIPTS += test_fuzz_packets_kea_dhcp4.sh
|
||||
check_SCRIPTS += test_fuzz_packets_kea_dhcp6.sh
|
||||
check_SCRIPTS += test_fuzz_unix_socket_kea_dhcp4.sh
|
||||
check_SCRIPTS += test_fuzz_unix_socket_kea_dhcp6.sh
|
||||
|
||||
TESTS = $(check_SCRIPTS)
|
||||
|
||||
endif # FUZZING
|
@ -1,3 +0,0 @@
|
||||
#define EXTENDED_VERSION "@KEA_SRCID@"
|
||||
#define PREMIUM_EXTENDED_VERSION "@PREMIUM@"
|
||||
#define PACKAGE_VERSION_TYPE "@PACKAGE_VERSION_TYPE@"
|
5
m4macros/.gitignore
vendored
5
m4macros/.gitignore
vendored
@ -1,5 +0,0 @@
|
||||
/libtool.m4
|
||||
/lt~obsolete.m4
|
||||
/ltoptions.m4
|
||||
/ltsugar.m4
|
||||
/ltversion.m4
|
@ -1,2 +0,0 @@
|
||||
EXTRA_DIST = ax_boost_for_kea.m4 ax_isc_rpath.m4 ax_cpp14.m4 ax_gtest.m4
|
||||
EXTRA_DIST += ax_crypto.m4 ax_gssapi.m4
|
@ -1,285 +0,0 @@
|
||||
dnl @synopsis AX_BOOST_FOR_KEA
|
||||
dnl
|
||||
dnl Test for the Boost C++ header files intended to be used within Kea
|
||||
dnl
|
||||
dnl If no path to the installed boost header files is given via the
|
||||
dnl --with-boost-include option, the macro searchs under
|
||||
dnl /usr/local /usr/pkg /opt /opt/local directories.
|
||||
dnl If it cannot detect any workable path for Boost, this macro treats it
|
||||
dnl as a fatal error (so it cannot be called if the availability of Boost
|
||||
dnl is optional).
|
||||
dnl
|
||||
dnl This macro also tries to identify some known portability issues, and
|
||||
dnl sets corresponding variables so the caller can react to (or ignore,
|
||||
dnl depending on other configuration) specific issues appropriately.
|
||||
dnl
|
||||
dnl Boost.Asio depends on Boost.System which can be header only with
|
||||
dnl versions >= 1.56. On older and perhaps some recent versions
|
||||
dnl libboost_system is required.
|
||||
dnl --with-boost-libs can help forcing link with a Boost library,
|
||||
dnl e.g., --with-boost-libs=-lboost_system
|
||||
dnl
|
||||
dnl This macro calls:
|
||||
dnl
|
||||
dnl AC_SUBST(BOOST_INCLUDES)
|
||||
dnl AC_SUBST(BOOST_LIBS)
|
||||
dnl AC_SUBST(DISTCHECK_BOOST_CONFIGURE_FLAG)
|
||||
dnl
|
||||
dnl And possibly sets:
|
||||
dnl CPPFLAGS_BOOST_THREADCONF should be added to CPPFLAGS by caller
|
||||
dnl BOOST_OFFSET_PTR_WOULDFAIL set to "yes" if offset_ptr would cause build
|
||||
dnl error; otherwise set to "no"
|
||||
dnl BOOST_NUMERIC_CAST_WOULDFAIL set to "yes" if numeric_cast would cause
|
||||
dnl build error; otherwise set to "no"
|
||||
dnl BOOST_STATIC_ASSERT_WOULDFAIL set to "yes" if BOOST_STATIC_ASSERT would
|
||||
dnl cause build error; otherwise set to "no"
|
||||
|
||||
AC_DEFUN([AX_BOOST_FOR_KEA], [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG([C++])
|
||||
|
||||
DISTCHECK_BOOST_CONFIGURE_FLAG=
|
||||
|
||||
# We'll attempt to Use Boost system library by default
|
||||
BOOST_LIBS=
|
||||
BOOST_LIB_DIR=
|
||||
boost_lib_path=
|
||||
|
||||
#
|
||||
# Configure Boost header path
|
||||
#
|
||||
# If explicitly specified, use it.
|
||||
AC_ARG_WITH([boost-include],
|
||||
[AS_HELP_STRING([--with-boost-include=PATH],
|
||||
[specify exact directory for Boost headers])],
|
||||
[boost_include_path="$withval"])
|
||||
# If not specified, try some common paths.
|
||||
if test -z "$with_boost_include"; then
|
||||
boostdirs="/usr/local /usr/pkg /opt /opt/local"
|
||||
for d in $boostdirs
|
||||
do
|
||||
if test -f $d/include/boost/shared_ptr.hpp; then
|
||||
boost_include_path=$d/include
|
||||
boost_lib_path=$d/lib
|
||||
break
|
||||
fi
|
||||
done
|
||||
else
|
||||
DISTCHECK_BOOST_CONFIGURE_FLAG="--with-boost-include=${boost_include_path}"
|
||||
fi
|
||||
|
||||
# Check the path with some specific headers.
|
||||
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||
if test "${boost_include_path}" ; then
|
||||
BOOST_INCLUDES="-isystem ${boost_include_path}"
|
||||
CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
|
||||
fi
|
||||
|
||||
# Requiring boost >= 1.66.
|
||||
AC_CHECK_HEADERS(boost/asio/io_context.hpp,,AC_MSG_ERROR([Missing boost asio io_context header: boost version must be at least 1.66]))
|
||||
|
||||
# Some boost headers need the <utility> header to be included for some Boost versions under C++20.
|
||||
# Include it in all situations for simplicity.
|
||||
AC_CHECK_HEADERS(
|
||||
[ \
|
||||
boost/asio.hpp \
|
||||
boost/asio/coroutine.hpp \
|
||||
boost/asio/ip/address.hpp \
|
||||
boost/asio/signal_set.hpp \
|
||||
boost/atomic.hpp \
|
||||
boost/circular_buffer.hpp \
|
||||
boost/date_time/posix_time/posix_time_types.hpp \
|
||||
boost/foreach.hpp \
|
||||
boost/functional/hash.hpp \
|
||||
boost/integer/common_factor.hpp \
|
||||
boost/interprocess/sync/interprocess_upgradable_mutex.hpp \
|
||||
boost/shared_ptr.hpp \
|
||||
boost/system/error_code.hpp \
|
||||
],,
|
||||
AC_MSG_ERROR([Missing required boost header files]),
|
||||
[[
|
||||
#include <utility>
|
||||
]]
|
||||
)
|
||||
|
||||
# Verify that the path does not include standard headers by mistake.
|
||||
# There are two regex.h headers: one is a standard system header (usually
|
||||
# in /usr/include) and the second one is provided by boost. If you specify the
|
||||
# path to boost in a way that specifies the actual directory, this will mess up
|
||||
# the code and we'll end up using the system header rather than the boost. For
|
||||
# example, if your boost headers are in /usr/local/include/boost, you should
|
||||
# use --with-boost-include=/usr/local/include
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <regex.h>
|
||||
#ifdef BOOST_RE_REGEX_H
|
||||
#error "boost/regex.h"
|
||||
#endif]], [[]])],[],
|
||||
[AC_MSG_ERROR([${boost_include_path}/regex.h is used in place of /usr/include/regex.h: when specifying path to boost, please omit the /boost at the end of the include path.])])
|
||||
|
||||
# clang can cause false positives with -Werror without -Qunused-arguments.
|
||||
# it can be triggered if used with ccache.
|
||||
AC_CHECK_DECL([__clang__], [CLANG_CXXFLAGS="-Qunused-arguments"], [])
|
||||
|
||||
# Detect whether Boost tries to use threads by default, and, if not,
|
||||
# make it sure explicitly. In some systems the automatic detection
|
||||
# may depend on preceding header files, and if inconsistency happens
|
||||
# it could lead to a critical disruption.
|
||||
AC_MSG_CHECKING([whether Boost tries to use threads])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([[
|
||||
#include <boost/config.hpp>
|
||||
#ifdef BOOST_HAS_THREADS
|
||||
#error "boost will use threads"
|
||||
#endif]], [[]])],
|
||||
[AC_MSG_RESULT(no)
|
||||
CPPFLAGS_BOOST_THREADCONF="-DBOOST_DISABLE_THREADS=1"],
|
||||
[AC_MSG_RESULT(yes)])
|
||||
|
||||
# Boost offset_ptr is known to not compile on some platforms, depending on
|
||||
# boost version, its local configuration, and compiler. Detect it.
|
||||
CXXFLAGS_SAVED="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $CLANG_CXXFLAGS -Werror"
|
||||
AC_MSG_CHECKING([Boost offset_ptr compiles])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <boost/interprocess/offset_ptr.hpp>
|
||||
]], [[]])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
BOOST_OFFSET_PTR_WOULDFAIL=no],
|
||||
[AC_MSG_RESULT(no)
|
||||
BOOST_OFFSET_PTR_WOULDFAIL=yes]
|
||||
)
|
||||
CXXFLAGS="$CXXFLAGS_SAVED"
|
||||
|
||||
# Detect build failure case known to happen with Boost installed via
|
||||
# FreeBSD ports
|
||||
if test "X$GXX" = "Xyes"; then
|
||||
CXXFLAGS_SAVED="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $CLANG_CXXFLAGS -Werror"
|
||||
|
||||
AC_MSG_CHECKING([Boost numeric_cast compiles with -Werror])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <boost/numeric/conversion/cast.hpp>
|
||||
]], [[
|
||||
return (boost::numeric_cast<short>(0));
|
||||
]])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
BOOST_NUMERIC_CAST_WOULDFAIL=no],
|
||||
[AC_MSG_RESULT(no)
|
||||
BOOST_NUMERIC_CAST_WOULDFAIL=yes]
|
||||
)
|
||||
|
||||
CXXFLAGS="$CXXFLAGS_SAVED"
|
||||
else
|
||||
# This doesn't matter for non-g++
|
||||
BOOST_NUMERIC_CAST_WOULDFAIL=no
|
||||
fi
|
||||
|
||||
# BOOST_STATIC_ASSERT in versions below Boost 1.54.0 is known to result
|
||||
# in warnings with GCC 4.8. Detect it.
|
||||
AC_MSG_CHECKING([BOOST_STATIC_ASSERT compiles])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <boost/static_assert.hpp>
|
||||
void testfn(void) { BOOST_STATIC_ASSERT(true); }
|
||||
]], [[]])],[AC_MSG_RESULT(yes)
|
||||
BOOST_STATIC_ASSERT_WOULDFAIL=no],[AC_MSG_RESULT(no)
|
||||
BOOST_STATIC_ASSERT_WOULDFAIL=yes])
|
||||
|
||||
# Get libs when explicitly configured
|
||||
AC_ARG_WITH([boost-libs],
|
||||
[AS_HELP_STRING([--with-boost-libs=SPEC],
|
||||
[specify Boost libraries to link with, e.g., '-lboost_system'])],
|
||||
[BOOST_LIBS="$withval"
|
||||
DISTCHECK_BOOST_CONFIGURE_FLAG="$DISTCHECK_BOOST_CONFIGURE_FLAG --with-boost-libs=$withval"])
|
||||
|
||||
# Get lib dir when explicitly configured
|
||||
AC_ARG_WITH([boost-lib-dir],
|
||||
[AS_HELP_STRING([--with-boost-lib-dir=PATH],[specify directory where to find Boost libraries])],
|
||||
[BOOST_LIB_DIR="$withval"
|
||||
DISTCHECK_BOOST_CONFIGURE_FLAG="$DISTCHECK_BOOST_CONFIGURE_FLAG --with-boost-lib-dir=$withval"])
|
||||
|
||||
AC_ARG_ENABLE([boost-headers-only],
|
||||
[AS_HELP_STRING([--enable-boost-headers-only],
|
||||
[Build with boost headers only rather than link
|
||||
with boost_system library. This is NOT recommended
|
||||
as it may result in non-optimized code on some
|
||||
platforms or introduce runtime errors on others.])],
|
||||
[enable_boost_header="yes"; BOOST_LIBS=""],
|
||||
[BOOST_LIBS="${BOOST_LIBS} -lboost_system"])
|
||||
|
||||
# BOOST_ERROR_CODE_HEADER_ONLY in versions below Boost 1.56.0 can fail
|
||||
# to find the error_code.cpp file.
|
||||
if test "x${BOOST_LIBS}" = "x"; then
|
||||
AC_MSG_CHECKING([BOOST_ERROR_CODE_HEADER_ONLY works])
|
||||
CXXFLAGS_SAVED2="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -DBOOST_ERROR_CODE_HEADER_ONLY"
|
||||
CPPFLAGS="$CPPFLAGS -DBOOST_SYSTEM_NO_DEPRECATED"
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <boost/system/error_code.hpp>
|
||||
]], [[]])],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
|
||||
AC_MSG_WARN([The Boost system library is required.])
|
||||
BOOST_LIBS="-lboost_system"
|
||||
if test "x${BOOST_LIB_DIR}" = "x"; then
|
||||
BOOST_LIB_DIR="$boost_lib_path"
|
||||
fi])
|
||||
|
||||
CPPFLAGS="$CXXFLAGS_SAVED2"
|
||||
fi
|
||||
|
||||
# A Boost library is used.
|
||||
if test "x${BOOST_LIBS}" != "x"; then
|
||||
if test "x${BOOST_LIB_DIR}" != "x"; then
|
||||
BOOST_LIBS="-L$BOOST_LIB_DIR $BOOST_LIBS"
|
||||
fi
|
||||
LIBS_SAVED="$LIBS"
|
||||
LIBS="$BOOST_LIBS $LIBS"
|
||||
|
||||
if test $enable_static_link = yes; then
|
||||
LIBS="-static $LIBS"
|
||||
fi
|
||||
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <boost/system/error_code.hpp>],
|
||||
[boost::system::error_code ec;])],
|
||||
[AC_MSG_RESULT([checking for Boost system library... yes])],
|
||||
[if test "x${BOOST_LIB_DIR}" = "x"; then
|
||||
BOOST_LIB_DIR="$boost_lib_path"
|
||||
fi
|
||||
if test "x${BOOST_LIB_DIR}" != "x"; then
|
||||
BOOST_LIBS="-L$BOOST_LIB_DIR $BOOST_LIBS"
|
||||
fi
|
||||
LIBS="$BOOST_LIBS $LIBS_SAVED"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <boost/system/error_code.hpp>],
|
||||
[boost::system::error_code ec;])],
|
||||
[AC_MSG_RESULT([checking for Boost system library... yes])],
|
||||
[AC_MSG_RESULT([checking for Boost system library... no])
|
||||
AC_MSG_ERROR([Linking with ${BOOST_LIBS} is not enough: please make sure libboost_system is installed in an expected location; Check config.log for details, you may be missing other libraries.])])])
|
||||
|
||||
LIBS="$LIBS_SAVED"
|
||||
fi
|
||||
|
||||
CXXFLAGS="$CXXFLAGS_SAVED"
|
||||
|
||||
AC_SUBST(BOOST_INCLUDES)
|
||||
AC_SUBST(BOOST_LIBS)
|
||||
AC_SUBST(DISTCHECK_BOOST_CONFIGURE_FLAG)
|
||||
|
||||
dnl Determine the Boost version, used mainly for config.report.
|
||||
AC_MSG_CHECKING([Boost version])
|
||||
cat > conftest.cpp << EOF
|
||||
#include <boost/version.hpp>
|
||||
AUTOCONF_BOOST_LIB_VERSION=BOOST_LIB_VERSION
|
||||
EOF
|
||||
|
||||
dnl CPPP is defined in configure to $CPP or $CPP -P
|
||||
BOOST_VERSION=`$CPPP $CPPFLAGS conftest.cpp | grep '^AUTOCONF_BOOST_LIB_VERSION=' | $SED -e 's/^AUTOCONF_BOOST_LIB_VERSION=//' -e 's/_/./g' -e 's/"//g' 2> /dev/null`
|
||||
if test -z "$BOOST_VERSION"; then
|
||||
BOOST_VERSION="unknown"
|
||||
fi
|
||||
$RM -f conftest.cpp
|
||||
AC_MSG_RESULT([$BOOST_VERSION])
|
||||
|
||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||
AC_LANG_RESTORE
|
||||
])
|
@ -1,258 +0,0 @@
|
||||
AC_DEFUN([AX_ISC_CPP14], [
|
||||
|
||||
CXX_SAVED=$CXX
|
||||
feature=
|
||||
for retry in "none" "--std=c++14" "--std=c++1y" "fail"; do
|
||||
if test "$retry" = "fail"; then
|
||||
AC_MSG_CHECKING([c++14 support])
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([$feature (a C++14 feature) is not supported])
|
||||
fi
|
||||
if test "$retry" != "none"; then
|
||||
AC_MSG_WARN([unsupported C++14 feature])
|
||||
AC_MSG_NOTICE([retrying by adding $retry to $CXX])
|
||||
CXX="$CXX_SAVED $retry"
|
||||
AC_MSG_CHECKING($retry support)
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[],
|
||||
[int myincr = 1;])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(std::unique_ptr support)
|
||||
feature="std::unique_ptr"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <memory>],
|
||||
[std::unique_ptr<int> a;])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(cbegin/cend support)
|
||||
feature="cbegin/cend"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <string>],
|
||||
[const std::string& s = "abcd";
|
||||
unsigned count = 0;
|
||||
for (std::string::const_iterator i = s.cbegin();
|
||||
i != s.cend(); ++i)
|
||||
if (*i == 'b')
|
||||
++count;])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(final method support)
|
||||
feature="final method"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[class Foo {
|
||||
public:
|
||||
virtual ~Foo() {};
|
||||
virtual void bar() final;
|
||||
};],[])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(override method support)
|
||||
feature="override method"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[class Foo {
|
||||
public:
|
||||
virtual ~Foo() {};
|
||||
virtual void foobar();
|
||||
};
|
||||
class Bar : public Foo {
|
||||
public:
|
||||
virtual ~Bar() {};
|
||||
virtual void foobar() override;
|
||||
};],[])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(aggregate initialization support)
|
||||
feature="aggregate initialization"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <vector>],
|
||||
[std::vector<int> foo = { 1, 2, 3};])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(variadic template support)
|
||||
feature="variadic template"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[template<typename ... Args>
|
||||
struct A {
|
||||
void foo(Args... myargs) { return; };
|
||||
};],
|
||||
[A<> a;
|
||||
a.foo();])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(static_assert support)
|
||||
feature="static_assert"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[static_assert(1 + 1 == 2, "");],
|
||||
[])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(template alias)
|
||||
feature="template alias"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[template<int i>
|
||||
class I {
|
||||
public: int get() { return i; };
|
||||
};
|
||||
using Zero = I<0>;],
|
||||
[Zero Z;
|
||||
return Z.get();])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(constexpr support)
|
||||
feature="constexpr"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <string>
|
||||
typedef char const* const Tag;
|
||||
constexpr Tag FOOBAR = "FOOBAR";],
|
||||
[const std::string foobar(FOOBAR);
|
||||
return static_cast<int>(foobar.length());])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(enum class support)
|
||||
feature="enum class"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[enum class FooBar {
|
||||
FOO = 1,
|
||||
BAR = 2
|
||||
};],
|
||||
[FooBar f = FooBar::FOO;
|
||||
return (f == FooBar::FOO ? 1 : 2);])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(range-for support)
|
||||
feature="range-for support"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <vector>
|
||||
std::vector<int> v = { 1, 2, 3, 4 };],
|
||||
[int sum = 0;
|
||||
for (auto i : v) {
|
||||
sum += i;
|
||||
}
|
||||
return sum;])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(lambda support)
|
||||
feature="lambda"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[],
|
||||
[auto myincr = [[]](int x) { return x + 1; };])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(thread support)
|
||||
feature="thread"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <thread>
|
||||
#include <memory>
|
||||
std::shared_ptr<std::thread> th;],
|
||||
[th.reset(new std::thread([[]]() { return; }));
|
||||
th->join();])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(mutex support)
|
||||
feature="mutex"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <mutex>
|
||||
std::mutex mtx;],
|
||||
[std::lock_guard<std::mutex> lock(mtx);])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(condition variable support)
|
||||
feature="condition variable"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <condition_variable>
|
||||
std::mutex mtx;
|
||||
std::condition_variable cv;],
|
||||
[std::lock_guard<std::mutex> lock(mtx);
|
||||
cv.notify_one();])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(atomic support)
|
||||
feature="atomic"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <atomic>
|
||||
std::atomic_flag flag;],
|
||||
[])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(chrono support)
|
||||
feature="chrono"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <chrono>
|
||||
using namespace std::chrono;],
|
||||
[auto now = high_resolution_clock::now();])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
|
||||
AC_MSG_CHECKING(variable template support)
|
||||
feature="variable template"
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[template<class T>
|
||||
constexpr T pi = T(3.1415926535897932385L);],
|
||||
[int a = pi<int>;],
|
||||
)],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
continue])
|
||||
break
|
||||
done
|
||||
|
||||
AC_MSG_CHECKING([c++14 support])
|
||||
AC_MSG_RESULT([yes])
|
||||
|
||||
])
|
@ -1,23 +0,0 @@
|
||||
AC_DEFUN([AX_ISC_CPP17], [
|
||||
AC_MSG_CHECKING([c++17 support])
|
||||
|
||||
# Save flags.
|
||||
CPPFLAGS_SAVED="${CPPFLAGS}"
|
||||
|
||||
# Provide -std=c++17 flag temporarily.
|
||||
CPPFLAGS="${CPPFLAGS} -std=c++17"
|
||||
|
||||
# Check that the filesystem library is supported.
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <filesystem>],
|
||||
[std::filesystem::path cwd = std::filesystem::current_path();]
|
||||
)],
|
||||
[AC_MSG_RESULT([yes])
|
||||
CPP17_SUPPORTED=true],
|
||||
[AC_MSG_RESULT([no])
|
||||
CPP17_SUPPORTED=false])
|
||||
|
||||
# Restore flags.
|
||||
CPPFLAGS="${CPPFLAGS_SAVED}"
|
||||
])
|
@ -1,32 +0,0 @@
|
||||
AC_DEFUN([AX_ISC_CPP20], [
|
||||
AC_MSG_CHECKING([c++20 support])
|
||||
|
||||
# Save flags.
|
||||
CPPFLAGS_SAVED="${CPPFLAGS}"
|
||||
|
||||
# Provide -std=c++20 flag temporarily.
|
||||
CPPFLAGS="${CPPFLAGS} -std=c++20"
|
||||
|
||||
# Simulate the definition of std::derived_from.
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <concepts>
|
||||
template<class Derived, class Base>
|
||||
concept derived_from =
|
||||
std::is_base_of_v<Base, Derived> &&
|
||||
std::is_convertible_v<const volatile Derived*, const volatile Base*>;
|
||||
|
||||
struct BaseClass {};
|
||||
struct DerivedClass : BaseClass {};
|
||||
],
|
||||
[static_assert(std::derived_from<BaseClass, DerivedClass> == false);
|
||||
static_assert(std::derived_from<DerivedClass, BaseClass> == true);]
|
||||
)],
|
||||
[AC_MSG_RESULT([yes])
|
||||
CPP20_SUPPORTED=true],
|
||||
[AC_MSG_RESULT([no])
|
||||
CPP20_SUPPORTED=false])
|
||||
|
||||
# Restore flags.
|
||||
CPPFLAGS="${CPPFLAGS_SAVED}"
|
||||
])
|
@ -1,407 +0,0 @@
|
||||
# Simplified, non-caching AC_CHECK_PROG
|
||||
# Searches $PATH for the existence of argument 2,
|
||||
# and sets the full path to the variable in argument 1.
|
||||
# if not found, and a third argument is given, the value
|
||||
# is set to that. If not, the value is untouched.
|
||||
# Does not take absolute paths into account at this point,
|
||||
# and also works for single files only (arguments are not
|
||||
# stripped like in AC_CHECK_PROG)
|
||||
AC_DEFUN([ACX_CHECK_PROG_NONCACHE], [
|
||||
RESULT=""
|
||||
IFS_SAVED="$IFS"
|
||||
IFS=${PATH_SEPARATOR}
|
||||
for cur_path in ${PATH} ; do
|
||||
if test -e "${cur_path}/$2" ; then
|
||||
RESULT="${cur_path}/$2"
|
||||
fi
|
||||
done
|
||||
if test "$RESULT" = "" ; then
|
||||
:
|
||||
m4_ifvaln([$3], [$1=$3])
|
||||
else
|
||||
$1=$RESULT
|
||||
fi
|
||||
IFS="$IFS_SAVED"
|
||||
])
|
||||
|
||||
AC_DEFUN([ACX_TRY_BOTAN_TOOL], [
|
||||
TOOL=$1
|
||||
TOOL_ARG=$2
|
||||
BOTAN_TOOL=""
|
||||
ACX_CHECK_PROG_NONCACHE([BOTAN_TOOL], [${TOOL}])
|
||||
AC_MSG_CHECKING([usability of ${TOOL} ${TOOL_ARG}])
|
||||
if test "$BOTAN_TOOL" != "" ; then
|
||||
if test -x ${BOTAN_TOOL}; then
|
||||
CRYPTO_LIBS=`$BOTAN_TOOL $TOOL_ARG --libs`
|
||||
LIBS_SAVED=${LIBS}
|
||||
LIBS="$LIBS $CRYPTO_LIBS"
|
||||
CRYPTO_INCLUDES=`$BOTAN_TOOL $TOOL_ARG --cflags`
|
||||
CPPFLAGS_SAVED=${CPPFLAGS}
|
||||
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS"
|
||||
#AC_MSG_RESULT([found])
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <botan/hash.h>],
|
||||
[using namespace Botan;
|
||||
auto h = HashFunction::create("MD5");
|
||||
])],
|
||||
[ AC_MSG_RESULT([ok])
|
||||
$3
|
||||
],
|
||||
[ AC_MSG_RESULT([not usable]) ]
|
||||
)
|
||||
LIBS=${LIBS_SAVED}
|
||||
CPPFLAGS=${CPPFLAGS_SAVED}
|
||||
else
|
||||
AC_MSG_RESULT([not executable])
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT([not found])
|
||||
fi
|
||||
BOTAN_TOOL=""
|
||||
AC_SUBST(BOTAN_TOOL)
|
||||
]
|
||||
)
|
||||
# End of ACX_TRY_BOTAN_TOOL
|
||||
|
||||
|
||||
AC_DEFUN([AX_CRYPTO], [
|
||||
# Check for Botan
|
||||
#
|
||||
# Unless --with-botan-config is given, we first try to find these config
|
||||
# scripts ourselves. Unfortunately, on some systems, these scripts do not
|
||||
# provide the correct implementation, so for each script found, we try
|
||||
# a compilation test (ACX_TRY_BOTAN_TOOL). If none are found, or none of
|
||||
# them work, we see if pkg-config is available. If so, we try the several
|
||||
# potential pkg-config .pc files. Again, on some systems, these can return
|
||||
# incorrect information as well, so the try-compile test is repeated for
|
||||
# each.
|
||||
#
|
||||
# If a working config script or pkgconfig file is found, we then munge its
|
||||
# output for use in our Makefiles, and to make sure it works, another header
|
||||
# and compilation test is done (this should also check whether we can compile
|
||||
# against botan should neither -config scripts nor pkgconfig data exist).
|
||||
#
|
||||
|
||||
# Avoid checking Botan if OpenSSL is wanted
|
||||
AC_ARG_WITH([openssl],
|
||||
[AS_HELP_STRING([--with-openssl[[=PATH]]], [Enables OpenSSL,
|
||||
location can be specified optionally])],
|
||||
[use_openssl="$withval"],
|
||||
[use_openssl="auto"])
|
||||
|
||||
use_botan="yes"
|
||||
if test "${use_openssl}" != "auto" -a "${use_openssl}" != "no" ; then
|
||||
use_botan="no"
|
||||
fi
|
||||
AC_ARG_WITH([botan],
|
||||
[AS_HELP_STRING([--with-botan[[=PATH]]],
|
||||
[Enables Botan, name to the pkg-config library can be specified optionally])],
|
||||
[use_botan="$withval"])
|
||||
if test "${use_botan}" = ""; then
|
||||
use_botan="yes"
|
||||
fi
|
||||
distcheck_botan="--with-botan=${use_botan}"
|
||||
if test "${use_botan}" = "no" ; then
|
||||
if test "${use_openssl}" = "no" ; then
|
||||
AC_MSG_ERROR([Need Botan or OpenSSL for libcryptolink])
|
||||
fi
|
||||
elif test "${use_botan}" != "yes" ; then
|
||||
BOTAN_VERSIONS="${use_botan}"
|
||||
else
|
||||
BOTAN_VERSIONS="botan-2"
|
||||
fi
|
||||
|
||||
BOTAN_CONFIG=""
|
||||
AC_PATH_PROG([PKG_CONFIG], [pkg-config])
|
||||
if test "$PKG_CONFIG" != "" ; then
|
||||
for version in $BOTAN_VERSIONS; do
|
||||
ACX_TRY_BOTAN_TOOL([pkg-config], ["$version --silence-errors"],
|
||||
[BOTAN_CONFIG="$PKG_CONFIG $version"])
|
||||
if test "$BOTAN_CONFIG" != "" ; then
|
||||
CRYPTO_LIBS=`${BOTAN_CONFIG} --libs`
|
||||
CRYPTO_INCLUDES=`${BOTAN_CONFIG} --cflags`
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if test "x${CRYPTO_LIBS}" != "x"
|
||||
then
|
||||
dnl Determine the Botan version
|
||||
AC_MSG_CHECKING([Botan version])
|
||||
cat > conftest.cpp << EOF
|
||||
#include <botan/version.h>
|
||||
AUTOCONF_BOTAN_VERSION=BOTAN_VERSION_MAJOR . BOTAN_VERSION_MINOR . BOTAN_VERSION_PATCH
|
||||
EOF
|
||||
|
||||
CRYPTO_VERSION=`$CPPP $CPPFLAGS $CRYPTO_INCLUDES conftest.cpp | grep '^AUTOCONF_BOTAN_VERSION=' | $SED -e 's/^AUTOCONF_BOTAN_VERSION=//' -e 's/[[ ]]//g' -e 's/"//g' 2> /dev/null`
|
||||
if test -z "$CRYPTO_VERSION"; then
|
||||
CRYPTO_VERSION="unknown"
|
||||
fi
|
||||
$RM -f conftest.cpp
|
||||
AC_MSG_RESULT([$CRYPTO_VERSION])
|
||||
|
||||
# # check -R, "-Wl,-R" or -rpath
|
||||
AX_ISC_RPATH
|
||||
|
||||
# See crypto_rpath for some info on why we do this
|
||||
if test "x$ISC_RPATH_FLAG" != "x"; then
|
||||
CRYPTO_RPATH=
|
||||
for flag in ${CRYPTO_LIBS}; do
|
||||
CRYPTO_RPATH="${CRYPTO_RPATH} `echo $flag | ${SED} -ne "s/^\(\-L\)/${ISC_RPATH_FLAG}/p"`"
|
||||
done
|
||||
# According to the libtool manual, it should be sufficient if we
|
||||
# specify the "-R libdir" in our wrapper library of botan (no other
|
||||
# programs will need libbotan directly); "libdir" should be added to
|
||||
# the program's binary image. But we've seen in our build environments
|
||||
# that (some versions of?) libtool doesn't propagate -R as documented,
|
||||
# and it caused a linker error at run time. To work around this, we
|
||||
# also add the rpath to the global LDFLAGS.
|
||||
LDFLAGS="$CRYPTO_RPATH $LDFLAGS"
|
||||
fi
|
||||
|
||||
# Even though chances are high we already performed a real compilation check
|
||||
# in the search for the right (pkg)config data, we try again here, to
|
||||
# be sure.
|
||||
CPPFLAGS_SAVED=$CPPFLAGS
|
||||
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS"
|
||||
LIBS_SAVED="$LIBS"
|
||||
LIBS="$LIBS $CRYPTO_LIBS"
|
||||
|
||||
# ac_header_preproc is an autoconf symbol (undocumented but stable) that
|
||||
# is set if the pre-processor phase passes. Thus by adding a custom
|
||||
# failure handler we can detect the difference between a header not existing
|
||||
# (or not even passing the pre-processor phase) and a header file resulting
|
||||
# in compilation failures.
|
||||
AC_CHECK_HEADERS([botan/build.h],,[
|
||||
CRYPTO_INCLUDES=""
|
||||
CRYPTO_LIBS=""
|
||||
CRYPTO_LDFLAGS=""
|
||||
CRYPTO_RPATH=""
|
||||
if test "x$ac_header_preproc" = "xyes"; then
|
||||
AC_MSG_RESULT([botan/build.h
|
||||
was found but is unusable. The most common cause of this problem
|
||||
is attempting to use an updated C++ compiler with older C++ libraries, such as
|
||||
the version of Botan that comes with your distribution. If you have updated
|
||||
your C++ compiler we highly recommend that you use support libraries such as
|
||||
Boost and Botan that were compiled with the same compiler version.])
|
||||
else
|
||||
AC_MSG_RESULT([Missing required libcrypto header files])
|
||||
fi]
|
||||
)
|
||||
CPPFLAGS=$CPPFLAGS_SAVED
|
||||
LIBS=$LIBS_SAVED
|
||||
fi
|
||||
|
||||
if test "x${CRYPTO_LIBS}" != "x"
|
||||
then
|
||||
CPPFLAGS_SAVED=$CPPFLAGS
|
||||
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS"
|
||||
LIBS_SAVED="$LIBS"
|
||||
LIBS="$LIBS $CRYPTO_LIBS"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <botan/hash.h>],
|
||||
[using namespace Botan;
|
||||
auto h = HashFunction::create("MD5");
|
||||
])],
|
||||
[AC_MSG_RESULT([checking for Botan library... yes])],
|
||||
[AC_MSG_RESULT([checking for Botan library... no])
|
||||
CRYPTO_INCLUDES=""
|
||||
CRYPTO_LIBS=""
|
||||
CRYPTO_LDFLAGS=""
|
||||
CRYPTO_RPATH=""
|
||||
AC_MSG_RESULT([Needs Botan library 2.0 or higher. On some systems,
|
||||
the botan package has a few missing dependencies (libbz2 and
|
||||
libgmp), if libbotan has been installed and you see this message,
|
||||
try upgrading to a higher version of botan or installing libbz2
|
||||
and libgmp.])]
|
||||
)
|
||||
CPPFLAGS=$CPPFLAGS_SAVED
|
||||
LIBS=$LIBS_SAVED
|
||||
CRYPTO_NAME="Botan"
|
||||
CRYPTO_PACKAGE="botan-2"
|
||||
fi
|
||||
|
||||
if test "x${CRYPTO_LIBS}" != "x"
|
||||
then
|
||||
DISABLED_CRYPTO="OpenSSL"
|
||||
CRYPTO_CFLAGS=""
|
||||
DISTCHECK_CRYPTO_CONFIGURE_FLAG="$distcheck_botan"
|
||||
AC_DEFINE_UNQUOTED([WITH_BOTAN], [], [Compile with Botan crypto])
|
||||
else
|
||||
CRYPTO_NAME="OpenSSL"
|
||||
DISABLED_CRYPTO="Botan"
|
||||
CRYPTO_PACKAGE="openssl-1.1.0"
|
||||
DISTCHECK_CRYPTO_CONFIGURE_FLAG="--with-openssl=${use_openssl}"
|
||||
AC_DEFINE_UNQUOTED([WITH_OPENSSL], [], [Compile with OpenSSL crypto])
|
||||
AC_MSG_CHECKING(for OpenSSL library)
|
||||
openssl_headers=
|
||||
openssl_libraries=
|
||||
|
||||
case "${use_openssl}" in
|
||||
auto)
|
||||
use_openssl="yes"
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
# no was already handled
|
||||
openssl_headers="${use_openssl}/include"
|
||||
openssl_libraries="${use_openssl}/lib"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Now search for the system OpenSSL library.
|
||||
if test "${use_openssl}" = "yes" ; then
|
||||
for d in /usr /usr/local /usr/local/ssl /usr/local/opt/openssl /usr/pkg /usr/sfw; do
|
||||
if test -f $d/include/openssl/opensslv.h; then
|
||||
use_openssl="${d}"
|
||||
openssl_headers="${d}/include"
|
||||
for l in lib lib64; do
|
||||
if test -f "${d}/${l}/libssl.so"; then
|
||||
openssl_libraries="${d}/${l}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -n "${openssl_headers}" && test -n "${openssl_libraries}"; then
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if test "${use_openssl}" = "yes" ; then
|
||||
AC_MSG_ERROR([OpenSSL auto detection failed])
|
||||
fi
|
||||
AC_MSG_RESULT(yes)
|
||||
|
||||
if test "${openssl_headers}" = "/usr/include" ; then
|
||||
CRYPTO_CFLAGS=""
|
||||
CRYPTO_INCLUDES=""
|
||||
CRYPTO_LIBS="-lssl -lcrypto"
|
||||
else
|
||||
CRYPTO_CFLAGS=""
|
||||
CRYPTO_INCLUDES="-I${openssl_headers}"
|
||||
case $host in
|
||||
*-solaris*)
|
||||
CRYPTO_LIBS="-L${openssl_libraries} -R${openssl_libraries} -lssl -lcrypto"
|
||||
;;
|
||||
*-hp-hpux*)
|
||||
CRYPTO_LIBS="-L${openssl_libraries} -Wl,+b: -lssl -lcrypto"
|
||||
;;
|
||||
*-apple-darwin*)
|
||||
if test -f "${openssl_libraries}/libcrypto.dylib" ; then
|
||||
CRYPTO_LIBS="-L${openssl_libraries} -lssl -lcrypto"
|
||||
else
|
||||
CRYPTO_LIBS="${openssl_libraries}/libssl.a ${openssl_libraries}/libcrypto.a"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
CRYPTO_LIBS="-L${openssl_libraries} -lssl -lcrypto"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
dnl Determine the OpenSSL version
|
||||
# Officially we support >= 1.0.1, 0.9.8 should fail the HMAC API,
|
||||
# 1.0.0 could work but is not recommended.
|
||||
AC_MSG_CHECKING([OpenSSL version])
|
||||
cat > conftest.cpp << EOF
|
||||
#include <openssl/opensslv.h>
|
||||
AUTOCONF_OPENSSL_VERSION=OPENSSL_VERSION_TEXT
|
||||
EOF
|
||||
|
||||
CRYPTO_VERSION=`$CPPP $CPPFLAGS $CRYPTO_INCLUDES conftest.cpp | grep '^AUTOCONF_OPENSSL_VERSION=' | $SED -e 's/^AUTOCONF_OPENSSL_VERSION=//' -e 's/"//g' 2> /dev/null`
|
||||
if test -z "$CRYPTO_VERSION" ; then
|
||||
CRYPTO_VERSION="unknown"
|
||||
fi
|
||||
$RM -f conftest.cpp
|
||||
AC_MSG_RESULT([$CRYPTO_VERSION])
|
||||
#CRYPTO_LDFLAGS="-ldl"
|
||||
CRYPTO_LDFLAGS=""
|
||||
CRYPTO_RPATH=""
|
||||
AC_MSG_CHECKING([support of SHA-2])
|
||||
LIBS_SAVED=${LIBS}
|
||||
LIBS="$LIBS $CRYPTO_LIBS"
|
||||
CPPFLAGS_SAVED=${CPPFLAGS}
|
||||
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS"
|
||||
dnl Check availability of legacy hash
|
||||
AC_CHECK_FUNC([EVP_md5],,[missing EVP entry for MD5])
|
||||
AC_CHECK_FUNC([EVP_sha1],,[missing EVP entry for SHA1])
|
||||
dnl Check availability of SHA-2
|
||||
AC_CHECK_FUNC([EVP_sha224],,[missing EVP entry for SHA224])
|
||||
AC_CHECK_FUNC([EVP_sha256],,[missing EVP entry for SHA256])
|
||||
AC_CHECK_FUNC([EVP_sha384],,[missing EVP entry for SHA384])
|
||||
AC_CHECK_FUNC([EVP_sha512],,[missing EVP entry for SHA512])
|
||||
dnl Two generations of EVP_MD_CTX functions
|
||||
AC_CHECK_FUNCS([EVP_MD_CTX_new EVP_MD_CTX_free],,
|
||||
[AC_CHECK_FUNCS([EVP_MD_CTX_create EVP_MD_CTX_destroy],,
|
||||
[AC_MSG_ERROR([missing EVP MD CTX functions])])])
|
||||
dnl Same for EVP and HMAC
|
||||
AC_CHECK_FUNCS([EVP_PKEY_new_raw_private_key],,
|
||||
[AC_CHECK_FUNCS([EVP_PKEY_new_mac_key],,
|
||||
[AC_MSG_ERROR([missing EVP PKEY new key function])])])
|
||||
LIBS=${LIBS_SAVED}
|
||||
CPPFLAGS=${CPPFLAGS_SAVED}
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_BOTAN, test "$CRYPTO_NAME" = "Botan")
|
||||
AM_CONDITIONAL(HAVE_OPENSSL, test "$CRYPTO_NAME" = "OpenSSL")
|
||||
AC_SUBST(CRYPTO_INCLUDES)
|
||||
AC_SUBST(CRYPTO_CFLAGS)
|
||||
AC_SUBST(CRYPTO_LIBS)
|
||||
AC_SUBST(CRYPTO_LDFLAGS)
|
||||
AC_SUBST(CRYPTO_PACKAGE)
|
||||
AC_SUBST(CRYPTO_RPATH)
|
||||
AC_SUBST(DISTCHECK_CRYPTO_CONFIGURE_FLAG)
|
||||
]
|
||||
)
|
||||
# End of AX_CRYPTO
|
||||
|
||||
# Test TLS support using both crypto and boost.
|
||||
AC_DEFUN([AX_TLS], [
|
||||
if test "x${CRYPTO_NAME}" = "xBotan"
|
||||
then
|
||||
dnl Check Botan boost ASIO TLS
|
||||
CPPFLAGS_SAVED=$CPPFLAGS
|
||||
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS $BOOST_INCLUDES"
|
||||
AC_CHECK_HEADERS([botan/asio_stream.h],
|
||||
[AC_MSG_CHECKING([Botan boost TLS support])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <botan/asio_stream.h>],
|
||||
[#ifndef BOTAN_TLS_SERVER_H_
|
||||
#error botan/tls_server.h is not included by botan/asio_stream.h
|
||||
#endif])],
|
||||
[AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Botan is configured with boost support but is too old: only Botan >= 2.14.0 can be used for TLS support.])])],
|
||||
[AC_MSG_ERROR([Botan cannot be used for TLS support, because it was installed without boost support, so required headers are missing.])])
|
||||
CPPFLAGS=${CPPFLAGS_SAVED}
|
||||
fi
|
||||
if test "x${CRYPTO_NAME}" = "xOpenSSL"
|
||||
then
|
||||
CPPFLAGS_SAVED=$CPPFLAGS
|
||||
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS $BOOST_INCLUDES"
|
||||
dnl Check boost ASIO SSL
|
||||
AC_CHECK_HEADERS([boost/asio/ssl.hpp],,
|
||||
[AC_MSG_ERROR([Missing required boost ssl header file])])
|
||||
dnl Check if the generic TLS method is available
|
||||
AC_MSG_CHECKING([Generic TLS method])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <boost/asio/ssl.hpp>],
|
||||
[auto ctx(boost::asio::ssl::context::tls);])],
|
||||
[AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Boost version >= 1.66 is required])])
|
||||
dnl Check if the stream_truncated (SSL short read) error is available
|
||||
AC_MSG_CHECKING([stream_truncated (SSL short read) error])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <boost/asio/ssl.hpp>],
|
||||
[const int ec =
|
||||
boost::asio::ssl::error::stream_truncated;])],
|
||||
[AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Boost version >= 1.66 is required])])
|
||||
CPPFLAGS=${CPPFLAGS_SAVED}
|
||||
fi
|
||||
])
|
||||
# End of AX_TLS
|
@ -1,243 +0,0 @@
|
||||
######################### public functions ##########################
|
||||
|
||||
# input:
|
||||
# * value of --with-library
|
||||
# * list of headers to check
|
||||
# * list of libraries to check
|
||||
# * list of variables to retrieve with pkg-config
|
||||
# * additional parameters to pass to pkg-config, useful e.g. when --with-path
|
||||
# is needed to point to a dependency of the checked library
|
||||
# output:
|
||||
# * LIBRARY_FOUND
|
||||
# * LIBRARY_CPPFLAGS
|
||||
# * LIBRARY_INCLUDEDIR
|
||||
# * LIBRARY_LIBS
|
||||
# * LIBRARY_PREFIX
|
||||
#
|
||||
# This function assumes that you have called AC_MSG_CHECKING() before and that
|
||||
# you are responsible for calling AC_MSG_RESULT() if LIBRARY_FOUND is false or
|
||||
# if any other checks that you do outside of this function fail. AC_MSG_RESULT()
|
||||
# will be called in this function in case of fatal errors.
|
||||
AC_DEFUN([AX_FIND_LIBRARY], [
|
||||
library=$1
|
||||
with_library=$2
|
||||
list_of_headers=$3
|
||||
list_of_libraries=$4
|
||||
list_of_variables=$5
|
||||
pkg_config_paths=$6
|
||||
|
||||
LIBRARY_FOUND=false
|
||||
AX_RESET_LIBRARY_WARNINGS()
|
||||
|
||||
if test -z "${with_library}"; then
|
||||
# library not requested, nothing to do
|
||||
:
|
||||
elif test "${with_library}" = 'no'; then
|
||||
# library specifically disabled, nothing to do
|
||||
:
|
||||
elif test "${with_library}" != 'yes'; then
|
||||
# library enabled and has custom --with parameter
|
||||
|
||||
if test -f "${with_library}"; then
|
||||
# User has pointed --with-library to a file.
|
||||
# It might be a .pc file.
|
||||
AX_FIND_LIBRARY_WITH_PKG_CONFIG(["${with_library}"], ["${list_of_variables}"], ["${pkg_config_paths}"])
|
||||
|
||||
elif test -d "${with_library}"; then
|
||||
# User has pointed --with-library to a directory.
|
||||
# Let's try to find a library.pc first inside that directory.
|
||||
for l in lib lib64; do
|
||||
library_pc="${with_library}/${l}/pkgconfig/${library}.pc"
|
||||
if test -f "${library_pc}"; then
|
||||
if test -n "${PKG_CONFIG}"; then
|
||||
AX_FIND_LIBRARY_WITH_PKG_CONFIG("${library_pc}", ["${list_of_variables}"], ["${pkg_config_paths}"])
|
||||
else
|
||||
AX_ADD_TO_LIBRARY_WARNINGS([pkg-config file found at ${library_pc}, but pkg-config is not available])
|
||||
fi
|
||||
else
|
||||
AX_ADD_TO_LIBRARY_WARNINGS([pkg-config file not found at ${library_pc}])
|
||||
fi
|
||||
done
|
||||
else
|
||||
AC_MSG_RESULT(["no"])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR(["${with_library}" needs to point to the installation directory or to a .pc file])
|
||||
fi
|
||||
|
||||
else
|
||||
# No parameter given. Try pkg-config first.
|
||||
if test -n "${PKG_CONFIG}"; then
|
||||
AX_FIND_LIBRARY_WITH_PKG_CONFIG("${library}", ["${list_of_variables}"], ["${pkg_config_paths}"])
|
||||
fi
|
||||
|
||||
# If not found, then search in usual paths for a .pc file.
|
||||
if ! "${LIBRARY_FOUND}"; then
|
||||
for p in /usr /usr/local; do
|
||||
for l in lib lib64; do
|
||||
library_pc="${p}/${l}/pkgconfig/${library}.pc"
|
||||
if test -f "${library_pc}"; then
|
||||
AX_FIND_LIBRARY_WITH_PKG_CONFIG("${library_pc}", ["${list_of_variables}"], ["${pkg_config_paths}"])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
break 2
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
# If not found, then search in usual paths for header and libraries.
|
||||
if ! "${LIBRARY_FOUND}"; then
|
||||
for p in /usr /usr/local; do
|
||||
headers_found=true
|
||||
for i in ${list_of_headers}; do
|
||||
if test ! -f "${p}/include/${i}"; then
|
||||
AX_ADD_TO_LIBRARY_WARNINGS([${library} header ${i} not found in ${p}])
|
||||
headers_found=false
|
||||
break
|
||||
fi
|
||||
done
|
||||
if "${headers_found}"; then
|
||||
LIBRARY_CPPFLAGS=
|
||||
LIBRARY_INCLUDEDIR="-I${p}/include"
|
||||
fi
|
||||
|
||||
libraries_found=true
|
||||
|
||||
# Add -L.
|
||||
for l in lib lib64; do
|
||||
if test -d "${p}/${l}"; then
|
||||
LIBRARY_LIBS="-L${p}/{l}"
|
||||
fi
|
||||
done
|
||||
for i in ${list_of_libraries}; do
|
||||
i_found=false
|
||||
for l in lib lib64; do
|
||||
if test -f "${p}/${l}/${i}"; then
|
||||
lib=$(printf '%s' "${i}" | sed 's/^lib//g;s/.so$//g')
|
||||
LIBRARY_LIBS="${LIBRARY_LIBS} -l${lib}"
|
||||
i_found=true
|
||||
break
|
||||
else
|
||||
AX_ADD_TO_LIBRARY_WARNINGS([${library} library ${i} not found in ${p}/${l}])
|
||||
fi
|
||||
done
|
||||
if ! "${i_found}"; then
|
||||
libraries_found=false
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if "${headers_found}" && "${libraries_found}"; then
|
||||
LIBRARY_FOUND=true
|
||||
break
|
||||
fi
|
||||
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
# Remove leading and trailing spaces.
|
||||
LIBRARY_CPPFLAGS="$(printf '%s' "${LIBRARY_CPPFLAGS}" | sed 's/^ *//g;s/ *$//g')"
|
||||
LIBRARY_INCLUDEDIR="$(printf '%s' "${LIBRARY_INCLUDEDIR}" | sed 's/^ *//g;s/ *$//g')"
|
||||
LIBRARY_LIBS="$(printf '%s' "${LIBRARY_LIBS}" | sed 's/^ *//g;s/ *$//g')"
|
||||
|
||||
# Add to the runtime search path if the flag is not already added.
|
||||
if test -n "${ISC_RPATH_FLAG}" && test "$(printf '%s\n' "${LIBRARY_LIBS}" | grep -Fc -- "${ISC_RPATH_FLAG}")" = 0; then
|
||||
library_location=$(printf '%s\n' "${LIBRARY_LIBS}" | grep -Eo -- '-L.*\b' | sed 's/-L//g')
|
||||
if test -n "${library_location}"; then
|
||||
LIBRARY_LIBS="${LIBRARY_LIBS} ${ISC_RPATH_FLAG}${library_location}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
# You usually want to call this after you have called AC_MSG_RESULT so that the
|
||||
# warnings don't interfere between the text displayed by AC_MSG_CHECKING
|
||||
# "checking library..." and the text displayed by AC_MSG_RESULT "yes" or "no"
|
||||
# that should be on the same line.
|
||||
AC_DEFUN([AX_DISPLAY_LIBRARY_WARNINGS], [
|
||||
if test -n "${LIBRARY_WARNINGS}"; then
|
||||
printf '%s\n' "${LIBRARY_WARNINGS}" | while read -r line; do
|
||||
AC_MSG_WARN([${line}])
|
||||
done
|
||||
fi
|
||||
])
|
||||
|
||||
######################### private functions #########################
|
||||
|
||||
# input:
|
||||
# * value of --with-library
|
||||
# * list of variables to retrieve with pkg-config
|
||||
# * additional colon-separated paths to pass to pkg-config,
|
||||
# for when a .pc file has a dependency
|
||||
# output:
|
||||
# * LIBRARY_FOUND
|
||||
# * LIBRARY_CPPFLAGS
|
||||
# * LIBRARY_INCLUDEDIR
|
||||
# * LIBRARY_LIBS
|
||||
# * LIBRARY_PREFIX
|
||||
AC_DEFUN([AX_FIND_LIBRARY_WITH_PKG_CONFIG], [
|
||||
library_pc_or_name=$1
|
||||
list_of_variables=$2
|
||||
pkg_config_paths=$3
|
||||
|
||||
LIBRARY_FOUND=false
|
||||
# Check that we have pkg-config installed on the system.
|
||||
if test -n "${PKG_CONFIG}"; then
|
||||
|
||||
# Save the previous PKG_CONFIG_PATH.
|
||||
save_pkg_config_path="${PKG_CONFIG_PATH}"
|
||||
|
||||
# If file was given, append its residing directory to PKG_CONFIG_PATH.
|
||||
# Some old versions of pkg-config (e.g. 0.29.1 in Ubuntu 20.04) seem to
|
||||
# require it when searching for dependencies.
|
||||
if test -f "${library_pc_or_name}"; then
|
||||
pkg_config_paths="${pkg_config_paths}:$(dirname "${library_pc_or_name}")"
|
||||
fi
|
||||
|
||||
# Append some usual paths and the requested paths.
|
||||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/local/lib64/pkgconfig:${pkg_config_paths}"
|
||||
|
||||
# Check that pkg-config is able to interpret the file.
|
||||
if "${PKG_CONFIG}" "${library_pc_or_name}" > /dev/null 2>&1; then
|
||||
# Get the flags.
|
||||
LIBRARY_CPPFLAGS=$("${PKG_CONFIG}" --cflags-only-other "${library_pc_or_name}")
|
||||
LIBRARY_INCLUDEDIR=$("${PKG_CONFIG}" --cflags-only-I "${library_pc_or_name}")
|
||||
LIBRARY_LIBDIR=$("${PKG_CONFIG}" --variable libdir "${library_pc_or_name}")
|
||||
LIBRARY_LIBS=$("${PKG_CONFIG}" --libs "${library_pc_or_name}")
|
||||
LIBRARY_VERSION=$("${PKG_CONFIG}" --modversion "${library_pc_or_name}")
|
||||
LIBRARY_PREFIX=$("${PKG_CONFIG}" --variable=prefix "${library_pc_or_name}")
|
||||
|
||||
# Sometimes pkg-config is stubborn in including -L, so let's include it ourselves.
|
||||
if test -n "${LIBRARY_LIBDIR}" && test "$(printf '%s\n' "${LIBRARY_LIBS}" | grep -Fc -- -L)" = 0; then
|
||||
LIBRARY_LIBS="-L${LIBRARY_LIBDIR} ${LIBRARY_LIBS}"
|
||||
fi
|
||||
|
||||
# Get the variables.
|
||||
for i in $(printf '%s' "${list_of_variables}" | sed 's/,/ /g'); do
|
||||
# The export is not strictly required here, but we need a way to
|
||||
# dynamically assign values to "${i}". And export is nicer than eval.
|
||||
export "${i}"="$("${PKG_CONFIG}" --variable="${i}" "${library_pc_or_name}")"
|
||||
done
|
||||
|
||||
# Mark that we have the required flags for our library.
|
||||
LIBRARY_FOUND=true
|
||||
fi
|
||||
|
||||
# Restore the previous PKG_CONFIG_PATH.
|
||||
PKG_CONFIG_PATH="${save_pkg_config_path}"
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AX_ADD_TO_LIBRARY_WARNINGS], [
|
||||
if test -n "${LIBRARY_WARNINGS}"; then
|
||||
LIBRARY_WARNINGS="${LIBRARY_WARNINGS}
|
||||
"
|
||||
fi
|
||||
LIBRARY_WARNINGS="${LIBRARY_WARNINGS}$1"
|
||||
])
|
||||
|
||||
AC_DEFUN([AX_RESET_LIBRARY_WARNINGS], [
|
||||
LIBRARY_WARNINGS=
|
||||
])
|
@ -1,93 +0,0 @@
|
||||
AC_DEFUN([AX_GSS_API], [
|
||||
|
||||
gssapi_path=""
|
||||
|
||||
AC_ARG_WITH([gssapi],
|
||||
[AS_HELP_STRING([--with-gssapi[[=PATH]]],
|
||||
[optionally specify the path to a krb5-config file])],
|
||||
[gssapi_path="$withval"; enable_gssapi="yes"])
|
||||
|
||||
#
|
||||
# Check availability of gssapi, which will be used for unit tests.
|
||||
#
|
||||
ENABLE_GSSAPI=no
|
||||
GSSAPI_CFLAGS=
|
||||
GSSAPI_LIBS=
|
||||
DISTCHECK_GSSAPI_CONFIGURE_FLAG="--with-gssapi=$gssapi_path"
|
||||
|
||||
AC_MSG_CHECKING([for gssapi support])
|
||||
if test "x$gssapi_path" = "x" ; then
|
||||
AC_MSG_RESULT([no])
|
||||
else
|
||||
AC_MSG_RESULT([yes])
|
||||
if test "$gssapi_path" = "yes"; then
|
||||
AC_PATH_PROG([KRB5_CONFIG], [krb5-config])
|
||||
else
|
||||
KRB5_CONFIG="$gssapi_path"
|
||||
fi
|
||||
if test -x "${KRB5_CONFIG}" ; then
|
||||
GSSAPI_CFLAGS=`${KRB5_CONFIG} --cflags gssapi`
|
||||
GSSAPI_LIBS=`${KRB5_CONFIG} --libs gssapi`
|
||||
else
|
||||
AC_MSG_ERROR([Unable to locate krb5-config.])
|
||||
fi
|
||||
CXXFLAGS_SAVED="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $GSSAPI_CFLAGS"
|
||||
|
||||
# In general it is not required but some warnings about compiling to
|
||||
# work but not the preprocessor were reported...
|
||||
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
|
||||
|
||||
# Checks
|
||||
AC_CHECK_HEADERS([gssapi/gssapi.h gssapi/gssapi_krb5.h],,
|
||||
AC_MSG_ERROR([Missing required gss-api header files]))
|
||||
|
||||
AC_CHECK_HEADERS([krb5/krb5.h],,
|
||||
[AC_CHECK_HEADERS([krb5.h],,
|
||||
AC_MSG_ERROR([Missing required krb5 header files]))])
|
||||
|
||||
# Verify that GSS-API with Kerberos 5 is usable.
|
||||
LIBS_SAVED="$LIBS"
|
||||
LIBS="$LIBS $GSSAPI_LIBS"
|
||||
if test $enable_static_link = yes; then
|
||||
LIBS="-static $LIBS"
|
||||
fi
|
||||
AC_MSG_CHECKING([checking for GSS-API with Kerberos 5 libraries])
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <gssapi/gssapi_krb5.h>]],
|
||||
[[gss_ctx_id_t ctx;
|
||||
OM_uint32 minor;
|
||||
OM_uint32 major;
|
||||
major = gss_delete_sec_context(&minor, &ctx, GSS_C_NO_BUFFER);]])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([failed to link with GSS-API with Kerberos 5 libraries])])
|
||||
AC_MSG_CHECKING([checking for gss_str_to_oid availability])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <gssapi/gssapi.h>]],
|
||||
[[return (gss_str_to_oid(0, 0, 0));]])],
|
||||
[AC_MSG_RESULT([yes])
|
||||
AC_DEFINE([HAVE_GSS_STR_TO_OID], [1], [gss_str_to_oid is available])],
|
||||
[AC_MSG_RESULT([no])])
|
||||
CXXFLAGS="$CXXFLAGS_SAVED"
|
||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||
LIBS="$LIBS_SAVED"
|
||||
AC_MSG_CHECKING([checking for MIT implementation vs Heimdal])
|
||||
if `${KRB5_CONFIG} --all | grep Vendor | grep -q Heimdal`; then
|
||||
AC_MSG_RESULT([Heimdal])
|
||||
AC_DEFINE([WITH_HEIMDAL], [1], [Heimdal GSS-API implementation])
|
||||
else
|
||||
AC_MSG_RESULT([MIT])
|
||||
fi
|
||||
ENABLE_GSSAPI=yes
|
||||
fi
|
||||
|
||||
AC_SUBST(GSSAPI_CFLAGS)
|
||||
AC_SUBST(GSSAPI_LIBS)
|
||||
AC_SUBST(DISTCHECK_GSSAPI_CONFIGURE_FLAG)
|
||||
AM_CONDITIONAL([HAVE_GSSAPI], [test $ENABLE_GSSAPI = "yes"])
|
||||
|
||||
])
|
@ -1,224 +0,0 @@
|
||||
AC_DEFUN([AX_ISC_GTEST], [
|
||||
|
||||
enable_gtest="no"
|
||||
GTEST_INCLUDES=
|
||||
|
||||
AC_ARG_WITH([gtest-source],
|
||||
[AS_HELP_STRING([--with-gtest-source[[=PATH]]],
|
||||
[location of the Googletest source])],
|
||||
[enable_gtest="yes" ; GTEST_SOURCE="$withval"])
|
||||
|
||||
AC_ARG_WITH([gtest],
|
||||
[AS_HELP_STRING([--with-gtest[[=PATH]]],
|
||||
[specify a path to gtest header files (PATH/include) and library (PATH/lib)])],
|
||||
[gtest_path="$withval"; enable_gtest="yes"], [gtest_path="no"])
|
||||
|
||||
AC_ARG_WITH([lcov],
|
||||
[AS_HELP_STRING([--with-lcov[[=PROGRAM]]],
|
||||
[enable gtest and coverage target using the specified lcov])],
|
||||
[lcov="$withval"],
|
||||
[lcov="no"])
|
||||
|
||||
USE_LCOV="no"
|
||||
if test "$lcov" != "no"; then
|
||||
# force gtest if not set
|
||||
if test "$enable_gtest" = "no"; then
|
||||
# AC_MSG_ERROR("lcov needs gtest for test coverage report")
|
||||
AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
|
||||
enable_gtest="yes"
|
||||
fi
|
||||
if test "$lcov" != "yes"; then
|
||||
LCOV=$lcov
|
||||
else
|
||||
AC_PATH_PROG([LCOV], [lcov])
|
||||
fi
|
||||
if test -x "${LCOV}"; then
|
||||
USE_LCOV="yes"
|
||||
else
|
||||
AC_MSG_ERROR([Cannot find lcov.])
|
||||
fi
|
||||
# is genhtml always in the same directory?
|
||||
GENHTML=`echo "$LCOV" | ${SED} s/lcov$/genhtml/`
|
||||
if test ! -x $GENHTML; then
|
||||
AC_MSG_ERROR([genhtml not found, needed for lcov])
|
||||
fi
|
||||
# GCC specific?
|
||||
CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
|
||||
LIBS=" $LIBS -lgcov"
|
||||
AC_SUBST(CPPFLAGS)
|
||||
AC_SUBST(LIBS)
|
||||
AC_SUBST(LCOV)
|
||||
AC_SUBST(GENHTML)
|
||||
fi
|
||||
AC_SUBST(USE_LCOV)
|
||||
|
||||
#
|
||||
# Check availability of gtest, which will be used for unit tests.
|
||||
#
|
||||
GTEST_LDFLAGS=
|
||||
GTEST_LDADD=
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG=
|
||||
GTEST_VERSION="unknown"
|
||||
|
||||
if test "x$enable_gtest" = "xyes" ; then
|
||||
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG="--with-gtest=$gtest_path"
|
||||
|
||||
if test -n "$with_gtest_source" ; then
|
||||
|
||||
AC_MSG_CHECKING([for gtest source])
|
||||
|
||||
if test "x$GTEST_SOURCE" = "xyes" ; then
|
||||
|
||||
# If not specified, try some common paths.
|
||||
GTEST_SOURCE=
|
||||
for d in /usr/src/googletest /usr/src/gtest /usr/local /usr/pkg /opt /opt/local ; do
|
||||
cmakelists="$d/CMakeLists.txt"
|
||||
if test ! -d "$d/src" -a -d "$d/googletest"; then
|
||||
d="$d/googletest"
|
||||
fi
|
||||
if test -f "$d/src/gtest-all.cc" -a -f "$d/src/gtest_main.cc"; then
|
||||
GTEST_SOURCE="$d"
|
||||
AC_MSG_RESULT([$GTEST_SOURCE])
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$GTEST_SOURCE" ; then
|
||||
AC_MSG_ERROR([no gtest sources found])
|
||||
fi
|
||||
else
|
||||
# Trim trailing slashes.
|
||||
GTEST_SOURCE=$(echo "$GTEST_SOURCE" | ${SED} 's:/*$::')
|
||||
cmakelists="$GTEST_SOURCE/CMakeLists.txt"
|
||||
if test ! -d "$GTEST_SOURCE/src" -a -d "$GTEST_SOURCE/googletest"; then
|
||||
GTEST_SOURCE="$GTEST_SOURCE/googletest"
|
||||
fi
|
||||
if test -f "$GTEST_SOURCE/src/gtest-all.cc" -a -f "$GTEST_SOURCE/src/gtest_main.cc"; then
|
||||
AC_MSG_RESULT([$GTEST_SOURCE])
|
||||
else
|
||||
AC_MSG_ERROR([no gtest source at $GTEST_SOURCE])
|
||||
fi
|
||||
fi
|
||||
have_gtest_source=yes
|
||||
|
||||
GTEST_LDADD="\$(top_builddir)/ext/gtest/libgtest.a"
|
||||
DISTCHECK_GTEST_CONFIGURE_FLAG="--with-gtest-source=$GTEST_SOURCE"
|
||||
GTEST_INCLUDES="-I$GTEST_SOURCE -I$GTEST_SOURCE/include"
|
||||
gtest_src_basename="$(basename $GTEST_SOURCE)"
|
||||
|
||||
# Versions starting from 1.8.0 are put in the googletest directory. If the basename
|
||||
# returns googletest string, we need to cut it off and try basename again.
|
||||
if test "$gtest_src_basename" = "googletest"; then
|
||||
gtest_src_parent_dir=${GTEST_SOURCE%"/googletest"}
|
||||
if test -f "$gtest_src_parent_dir/CMakeLists.txt" ; then
|
||||
cmakelists="$gtest_src_parent_dir/CMakeLists.txt"
|
||||
fi
|
||||
gtest_src_basename=$(basename "$gtest_src_parent_dir")
|
||||
fi
|
||||
gtest_src_basename="${gtest_src_basename#googletest-release-}"
|
||||
gtest_src_basename="${gtest_src_basename#gtest-}"
|
||||
gtest_src_basename="${gtest_src_basename#googletest-}"
|
||||
|
||||
gtest_version_candidate=$(echo "$gtest_src_basename" | grep -Eo '[[0-9]+\.[0-9]+\.[0-9]+]')
|
||||
|
||||
if test -z "$gtest_version_candidate" ; then
|
||||
# If the GTEST_VERSION is still not correct semver, we need to determine googletest version in other way.
|
||||
# Let's try to extract it from CMake build script used by Google Test starting from version 1.8.0.
|
||||
if test -f "$cmakelists" ; then
|
||||
gtest_version_candidate=$(grep -F 'set(GOOGLETEST_VERSION' "$cmakelists" | grep -Eo '[[0-9]+\.[0-9]+\.[0-9]+]')
|
||||
if test -n "$gtest_version_candidate"; then
|
||||
GTEST_VERSION="$gtest_version_candidate"
|
||||
fi
|
||||
fi
|
||||
if test "$GTEST_VERSION" = "unknown" ; then
|
||||
# Try to get googletest version from debian/ubuntu package
|
||||
AC_PATH_PROG(DPKG, dpkg)
|
||||
AC_PATH_PROG(DPKGQUERY, dpkg-query)
|
||||
if test -n "${DPKG}" -a -n "${DPKGQUERY}"; then
|
||||
# Let's check if there is a googletest package owning files under given GTEST_SOURCE path
|
||||
${DPKG} -S "$GTEST_SOURCE" 2>/dev/null | grep googletest >/dev/null 2>&1
|
||||
if test $? -eq 0; then
|
||||
GTEST_VERSION="$(${DPKGQUERY} --showformat='${Version}' --show googletest | cut -d'-' -f1)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
GTEST_VERSION="$gtest_version_candidate"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$gtest_path" != "no" ; then
|
||||
if test "$gtest_path" != "yes"; then
|
||||
GTEST_PATHS=$gtest_path
|
||||
AC_PATH_PROG([GTEST_CONFIG], [gtest-config], [], [${gtest_path}/bin])
|
||||
else
|
||||
AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
|
||||
fi
|
||||
if test -x "${GTEST_CONFIG}" ; then :
|
||||
# using cppflags instead of cxxflags
|
||||
GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
|
||||
GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
|
||||
GTEST_LDADD=`${GTEST_CONFIG} --libs`
|
||||
GTEST_VERSION=`${GTEST_CONFIG} --version`
|
||||
GTEST_FOUND="true"
|
||||
else
|
||||
if test -z "${GTEST_PATHS}" ; then
|
||||
GTEST_PATHS="/usr /usr/local"
|
||||
fi
|
||||
GTEST_FOUND="false"
|
||||
fi
|
||||
if test "${GTEST_FOUND}" != "true"; then
|
||||
AC_MSG_CHECKING([for gtest lib path])
|
||||
GTEST_FOUND="false"
|
||||
for dir in $GTEST_PATHS; do
|
||||
if test -f "$dir/include/gtest/gtest.h"; then
|
||||
if test -f "$dir/lib/libgtest.a" || \
|
||||
test -f "$dir/lib/libgtest.so"; then
|
||||
GTEST_INCLUDES="-I$dir/include"
|
||||
GTEST_LDFLAGS="-L$dir/lib"
|
||||
GTEST_LDADD="-lgtest"
|
||||
GTEST_FOUND="true"
|
||||
AC_MSG_RESULT([$dir/lib])
|
||||
if test -f "$dir/lib/pkgconfig/gtest.pc" ; then
|
||||
AX_FIND_LIBRARY([gtest], ["$dir/lib/pkgconfig/gtest.pc"])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
GTEST_VERSION="${LIBRARY_VERSION}"
|
||||
fi
|
||||
fi
|
||||
break
|
||||
elif test -f "$dir/lib/$dumpmachine/libgtest.a" || \
|
||||
test -f "$dir/lib/$dumpmachine/libgtest.so"; then
|
||||
GTEST_INCLUDES="-I$dir/include"
|
||||
# check also multiarch dir in debian/ubuntu distributions
|
||||
GTEST_LDFLAGS="-L$dir/lib/$dumpmachine"
|
||||
GTEST_LDADD="-lgtest"
|
||||
GTEST_FOUND="true"
|
||||
AC_MSG_RESULT([$dir/lib/$dumpmachine])
|
||||
if test -f "$dir/lib/$dumpmachine/pkgconfig/gtest.pc" ; then
|
||||
AX_FIND_LIBRARY([gtest], ["$dir/lib/$dumpmachine/pkgconfig/gtest.pc"])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
GTEST_VERSION="${LIBRARY_VERSION}"
|
||||
fi
|
||||
fi
|
||||
break
|
||||
else
|
||||
AC_MSG_WARN([Found Google Test include but not the library in $dir.])
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test "${GTEST_FOUND}" != "true"; then
|
||||
AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_GTEST, test $enable_gtest != "no")
|
||||
AM_CONDITIONAL(HAVE_GTEST_SOURCE, test "X$have_gtest_source" = "Xyes")
|
||||
AC_SUBST(DISTCHECK_GTEST_CONFIGURE_FLAG)
|
||||
AC_SUBST(GTEST_INCLUDES)
|
||||
AC_SUBST(GTEST_LDFLAGS)
|
||||
AC_SUBST(GTEST_LDADD)
|
||||
AC_SUBST(GTEST_SOURCE)
|
||||
|
||||
])
|
@ -1,64 +0,0 @@
|
||||
dnl @synopsis AX_ISC_RPATH
|
||||
dnl
|
||||
dnl @summary figure out whether and which "rpath" linker option is available
|
||||
dnl
|
||||
dnl This macro checks if the linker supports an option to embed a path
|
||||
dnl to a runtime library (often installed in an uncommon place), such as the
|
||||
dnl commonly used -R option. If found, it sets the ISC_RPATH_FLAG variable to
|
||||
dnl the found option flag. The main configure.ac can use it as follows:
|
||||
dnl if test "x$ISC_RPATH_FLAG" != "x"; then
|
||||
dnl LDFLAGS="$LDFLAGS ${ISC_RPATH_FLAG}/usr/local/lib/some_library"
|
||||
dnl fi
|
||||
dnl
|
||||
dnl If you pass --disable-rpath to configure, ISC_RPATH_FLAG is not set
|
||||
|
||||
AC_DEFUN([AX_ISC_RPATH], [
|
||||
|
||||
AC_ARG_ENABLE(rpath,
|
||||
[AS_HELP_STRING([--disable-rpath],[don't hardcode library path into binaries])],
|
||||
rpath=$enableval, rpath=yes)
|
||||
|
||||
if test x$rpath != xno; then
|
||||
# We'll tweak both CXXFLAGS and CCFLAGS so this function will work
|
||||
# whichever language is used in the main script. Note also that it's not
|
||||
#LDFLAGS; technically this is a linker flag, but we've noticed $LDFLAGS
|
||||
# can be placed where the compiler could interpret it as a compiler
|
||||
# option, leading to subtle failure mode. So, in the check below using
|
||||
# the compiler flag is safer (in the actual Makefiles the flag should be
|
||||
# set in LDFLAGS).
|
||||
CXXFLAGS_SAVED="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS -Wl,-R/usr/lib"
|
||||
CCFLAGS_SAVED="$CCFLAGS"
|
||||
CCFLAGS="$CCFLAGS -Wl,-R/usr/lib"
|
||||
|
||||
# check -Wl,-R and -R rather than gcc specific -rpath to be as portable
|
||||
# as possible. -Wl,-R seems to be safer, so we try it first. In some
|
||||
# cases -R is not actually recognized but AC_LINK_IFELSE doesn't fail due
|
||||
# to that.
|
||||
AC_MSG_CHECKING([whether -Wl,-R flag is available in linker])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
ISC_RPATH_FLAG=-Wl,-R
|
||||
],
|
||||
[AC_MSG_RESULT(no)
|
||||
AC_MSG_CHECKING([whether -R flag is available in linker])
|
||||
|
||||
# Apple clang 5.1 is now considers unknown parameters
|
||||
# passed to linker (ld) as errors. However, the same
|
||||
# unknown parameters passed to compiler (g++) are merely
|
||||
# treated as warnings. To make sure that we pick those
|
||||
# up, is to use -Werror.
|
||||
CXXFLAGS="$CXXFLAGS_SAVED -R/usr/lib"
|
||||
CCFLAGS="$CCFLAGS_SAVED -R/usr/lib"
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
|
||||
[AC_MSG_RESULT([yes; note that -R is more sensitive about the position in option arguments])
|
||||
ISC_RPATH_FLAG=-R],
|
||||
[AC_MSG_RESULT(no)])
|
||||
]
|
||||
)
|
||||
|
||||
CXXFLAGS=$CXXFLAGS_SAVED
|
||||
CCFLAGS=$CCFLAGS_SAVED
|
||||
fi
|
||||
|
||||
])
|
@ -1,274 +0,0 @@
|
||||
AC_DEFUN([AX_NETCONF], [
|
||||
|
||||
AC_ARG_WITH([libyang],
|
||||
[AS_HELP_STRING([--with-libyang[[=PATH]]], [optional path to the libyang installation directory])],
|
||||
[with_libyang="${withval}"])
|
||||
|
||||
DISTCHECK_LIBYANG_CONFIGURE_FLAG="--with-libyang=$with_libyang"
|
||||
|
||||
AC_ARG_WITH([libyang-cpp],
|
||||
[AS_HELP_STRING([--with-libyang-cpp[[=PATH]]], [optional path to the libyang-cpp installation directory])],
|
||||
[with_libyangcpp="${withval}"])
|
||||
|
||||
DISTCHECK_LIBYANGCPP_CONFIGURE_FLAG="--with-libyang-cpp=$with_libyangcpp"
|
||||
|
||||
AC_ARG_WITH([sysrepo],
|
||||
[AS_HELP_STRING([--with-sysrepo[[=PATH]]], [optional path to the sysrepo installation directory])],
|
||||
[with_sysrepo="${withval}"])
|
||||
|
||||
DISTCHECK_SYSREPO_CONFIGURE_FLAG="--with-sysrepo=$with_sysrepo"
|
||||
|
||||
AC_ARG_WITH([sysrepo-cpp],
|
||||
[AS_HELP_STRING([--with-sysrepo-cpp[[=PATH]]], [optional path to the sysrepo-cpp installation directory])],
|
||||
[with_sysrepocpp="${withval}"])
|
||||
|
||||
DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG="--with-sysrepo-cpp=$with_sysrepocpp"
|
||||
|
||||
if test -n "${with_libyang}"; then
|
||||
AC_MSG_CHECKING([libyang])
|
||||
AX_FIND_LIBRARY([libyang], ["${with_libyang}"], [libyang/libyang.h], [libyang.so], [])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
LIBYANG_CPPFLAGS="${LIBRARY_CPPFLAGS}"
|
||||
LIBYANG_INCLUDEDIR="${LIBRARY_INCLUDEDIR}"
|
||||
LIBYANG_LIBS="${LIBRARY_LIBS}"
|
||||
LIBYANG_PREFIX="${LIBRARY_PREFIX}"
|
||||
LIBYANG_VERSION="${LIBRARY_VERSION}"
|
||||
|
||||
# Save flags.
|
||||
CPPFLAGS_SAVED="${CPPFLAGS}"
|
||||
LIBS_SAVED="${LIBS}"
|
||||
|
||||
# Provide libyang flags temporarily.
|
||||
CPPFLAGS="${CPPFLAGS} ${LIBYANG_INCLUDEDIR} ${LIBYANG_CPPFLAGS}"
|
||||
LIBS="${LIBS} ${LIBYANG_LIBS}"
|
||||
|
||||
# Check that a simple program using libyang C API can compile and link.
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <libyang/libyang.h>],
|
||||
[struct lyd_node* node = NULL;
|
||||
lyd_free_all(node);]
|
||||
)],
|
||||
[],
|
||||
[AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([libyang program failed to compile:
|
||||
|
||||
$(cat conftest.cpp)
|
||||
|
||||
$(cat conftest.err)])]
|
||||
)
|
||||
|
||||
# Restore flags.
|
||||
CPPFLAGS="${CPPFLAGS_SAVED}"
|
||||
LIBS="${LIBS_SAVED}"
|
||||
|
||||
AC_SUBST(LIBYANG_CPPFLAGS)
|
||||
AC_SUBST(LIBYANG_INCLUDEDIR)
|
||||
AC_SUBST(LIBYANG_LIBS)
|
||||
AC_SUBST(LIBYANG_PREFIX)
|
||||
AC_SUBST(LIBYANG_VERSION)
|
||||
|
||||
AC_MSG_RESULT([${LIBYANG_VERSION}])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([Could not enable libyang.])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "${with_libyangcpp}"; then
|
||||
AC_MSG_CHECKING([libyang-cpp])
|
||||
AX_FIND_LIBRARY([libyang-cpp], ["${with_libyangcpp}"], [libyang/Libyang.hpp], [libyang-cpp.so], [], ["${LIBYANG_PREFIX}/lib/pkgconfig:${LIBYANG_PREFIX}/lib64/pkgconfig"])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
LIBYANGCPP_CPPFLAGS="${LIBRARY_CPPFLAGS}"
|
||||
LIBYANGCPP_INCLUDEDIR="${LIBRARY_INCLUDEDIR}"
|
||||
LIBYANGCPP_LIBS="${LIBRARY_LIBS}"
|
||||
LIBYANGCPP_PREFIX="${LIBRARY_PREFIX}"
|
||||
LIBYANGCPP_VERSION="${LIBRARY_VERSION}"
|
||||
|
||||
if ! "${CPP20_SUPPORTED}"; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([You need a compiler with C++20 support to enable libyang-cpp.])
|
||||
fi
|
||||
|
||||
# Save flags.
|
||||
CPPFLAGS_SAVED="${CPPFLAGS}"
|
||||
LIBS_SAVED="${LIBS}"
|
||||
|
||||
# Provide libyang-cpp flags temporarily.
|
||||
CPPFLAGS="${CPPFLAGS} ${LIBYANG_INCLUDEDIR} ${LIBYANGCPP_INCLUDEDIR} ${LIBYANG_CPPFLAGS} ${LIBYANGCPP_CPPFLAGS} -std=c++20"
|
||||
LIBS="${LIBS} ${LIBYANG_LIBS} ${LIBYANGCPP_LIBS}"
|
||||
|
||||
# Check that a simple program using libyang C++ API can compile and link.
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <libyang-cpp/DataNode.hpp>],
|
||||
[libyang::DataNode *node = nullptr;
|
||||
node->findPath("/path");]
|
||||
)],
|
||||
[],
|
||||
[AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([libyang-cpp program failed to compile:
|
||||
|
||||
$(cat conftest.cpp)
|
||||
|
||||
$(cat conftest.err)])]
|
||||
)
|
||||
|
||||
# Restore flags.
|
||||
CPPFLAGS="${CPPFLAGS_SAVED}"
|
||||
LIBS="${LIBS_SAVED}"
|
||||
|
||||
AC_SUBST(LIBYANGCPP_CPPFLAGS)
|
||||
AC_SUBST(LIBYANGCPP_INCLUDEDIR)
|
||||
AC_SUBST(LIBYANGCPP_LIBS)
|
||||
AC_SUBST(LIBYANGCPP_PREFIX)
|
||||
AC_SUBST(LIBYANGCPP_VERSION)
|
||||
|
||||
AC_MSG_RESULT([${LIBYANGCPP_VERSION}])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([Could not enable libyang-cpp.])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "${with_sysrepo}"; then
|
||||
AC_MSG_CHECKING([sysrepo])
|
||||
AX_FIND_LIBRARY([sysrepo], ["${with_sysrepo}"], [sysrepo.h], [libsysrepo.so], [SR_REPO_PATH,SR_PLUGINS_PATH,SRPD_PLUGINS_PATH], ["${LIBYANG_PREFIX}/lib/pkgconfig:${LIBYANG_PREFIX}/lib64/pkgconfig"])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
SYSREPO_CPPFLAGS="${LIBRARY_CPPFLAGS}"
|
||||
SYSREPO_INCLUDEDIR="${LIBRARY_INCLUDEDIR}"
|
||||
SYSREPO_LIBS="${LIBRARY_LIBS}"
|
||||
SYSREPO_PREFIX="${LIBRARY_PREFIX}"
|
||||
SYSREPO_VERSION="${LIBRARY_VERSION}"
|
||||
|
||||
# Save flags.
|
||||
CPPFLAGS_SAVED="${CPPFLAGS}"
|
||||
LIBS_SAVED="${LIBS}"
|
||||
|
||||
# Provide sysrepo flags temporarily.
|
||||
CPPFLAGS="${CPPFLAGS} ${LIBYANG_INCLUDEDIR} ${SYSREPO_INCLUDEDIR} ${LIBYANG_CPPFLAGS} ${SYSREPO_CPPFLAGS}"
|
||||
LIBS="${LIBS} ${LIBYANG_LIBS} ${SYSREPO_LIBS}"
|
||||
|
||||
# Check that a simple program using sysrepo C API can compile and link.
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <sysrepo.h>],
|
||||
[sr_conn_ctx_t* connection = NULL;
|
||||
sr_disconnect(connection);]
|
||||
)],
|
||||
[],
|
||||
[AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([sysrepo program failed to compile:
|
||||
|
||||
$(cat conftest.cpp)
|
||||
|
||||
$(cat conftest.err)])]
|
||||
)
|
||||
|
||||
# Restore flags.
|
||||
CPPFLAGS="${CPPFLAGS_SAVED}"
|
||||
LIBS="${LIBS_SAVED}"
|
||||
|
||||
AC_SUBST(SYSREPO_CPPFLAGS)
|
||||
AC_SUBST(SYSREPO_INCLUDEDIR)
|
||||
AC_SUBST(SYSREPO_LIBS)
|
||||
AC_SUBST(SYSREPO_PREFIX)
|
||||
AC_SUBST(SYSREPO_VERSION)
|
||||
|
||||
AC_SUBST(SR_REPO_PATH)
|
||||
AC_SUBST(SR_PLUGINS_PATH)
|
||||
AC_SUBST(SRPD_PLUGINS_PATH)
|
||||
|
||||
AC_MSG_RESULT([${SYSREPO_VERSION}])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([Could not enable sysrepo.])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "${with_sysrepocpp}"; then
|
||||
AC_MSG_CHECKING([sysrepo-cpp])
|
||||
AX_FIND_LIBRARY([sysrepo-cpp], ["${with_sysrepocpp}"], [sysrepo-cpp/Session.hpp], [libsysrepo-cpp.so], [], ["${LIBYANG_PREFIX}/lib/pkgconfig:${LIBYANG_PREFIX}/lib64/pkgconfig:${LIBYANGCPP_PREFIX}/lib/pkgconfig:${LIBYANGCPP_PREFIX}/lib64/pkgconfig:${SYSREPO_PREFIX}/lib/pkgconfig:${SYSREPOCPP_PREFIX}/lib64/pkgconfig"])
|
||||
if "${LIBRARY_FOUND}"; then
|
||||
SYSREPOCPP_CPPFLAGS="${LIBRARY_CPPFLAGS}"
|
||||
SYSREPOCPP_INCLUDEDIR="${LIBRARY_INCLUDEDIR}"
|
||||
SYSREPOCPP_LIBS="${LIBRARY_LIBS}"
|
||||
SYSREPOCPP_PREFIX="${LIBRARY_PREFIX}"
|
||||
SYSREPOCPP_VERSION="${LIBRARY_VERSION}"
|
||||
|
||||
if ! "${CPP20_SUPPORTED}"; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([You need a compiler with C++20 support to enable sysrepo-cpp.])
|
||||
fi
|
||||
|
||||
# Save flags.
|
||||
CPPFLAGS_SAVED="${CPPFLAGS}"
|
||||
LIBS_SAVED="${LIBS}"
|
||||
|
||||
# Provide sysrepo-cpp flags temporarily.
|
||||
CPPFLAGS="${CPPFLAGS} ${LIBYANG_INCLUDEDIR} ${LIBYANG_CPPFLAGS} ${LIBYANGCPP_INCLUDEDIR} ${LIBYANGCPP_CPPFLAGS} ${SYSREPO_INCLUDEDIR} ${SYSREPO_CPPFLAGS} ${SYSREPOCPP_INCLUDEDIR} ${SYSREPOCPP_CPPFLAGS} -std=c++20"
|
||||
LIBS="${LIBS} ${LIBYANG_LIBS} ${LIBYANGCPP_LIBS} ${SYSREPO_LIBS} ${SYSREPOCPP_LIBS}"
|
||||
|
||||
# Check that a simple program using sysrepo C++ API can compile and link.
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <sysrepo-cpp/Connection.hpp>],
|
||||
[sysrepo::Connection connection;
|
||||
connection.sessionStart();]
|
||||
)],
|
||||
[],
|
||||
[AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([sysrepo-cpp program failed to compile:
|
||||
|
||||
$(cat conftest.cpp)
|
||||
|
||||
$(cat conftest.err)])]
|
||||
)
|
||||
|
||||
# Restore flags.
|
||||
CPPFLAGS="${CPPFLAGS_SAVED}"
|
||||
LIBS="${LIBS_SAVED}"
|
||||
|
||||
AC_SUBST(SYSREPOCPP_CPPFLAGS)
|
||||
AC_SUBST(SYSREPOCPP_INCLUDEDIR)
|
||||
AC_SUBST(SYSREPOCPP_LIBS)
|
||||
AC_SUBST(SYSREPOCPP_PREFIX)
|
||||
AC_SUBST(SYSREPOCPP_VERSION)
|
||||
|
||||
AC_MSG_RESULT([${SYSREPOCPP_VERSION}])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AX_DISPLAY_LIBRARY_WARNINGS()
|
||||
AC_MSG_ERROR([Could not enable sysrepo-cpp.])
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set HAVE_NETCONF.
|
||||
if test -n "${LIBYANG_VERSION}" && \
|
||||
test -n "${LIBYANGCPP_VERSION}" && \
|
||||
test -n "${SYSREPO_VERSION}" && \
|
||||
test -n "${SYSREPOCPP_VERSION}"; then
|
||||
HAVE_NETCONF=yes
|
||||
|
||||
# C++20 support is already proven to be supported, but it may not be the
|
||||
# default for the current compiler, so enforce it.
|
||||
CPPFLAGS="${CPPFLAGS} -std=c++20"
|
||||
else
|
||||
HAVE_NETCONF=no
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_NETCONF, test "${HAVE_NETCONF}" = 'yes')
|
||||
AM_COND_IF([HAVE_NETCONF], AC_DEFINE([HAVE_NETCONF], [true], [NETCONF capabilities enabled]))
|
||||
AC_SUBST(HAVE_NETCONF)
|
||||
|
||||
AC_SUBST(DISTCHECK_LIBYANG_CONFIGURE_FLAG)
|
||||
AC_SUBST(DISTCHECK_LIBYANGCPP_CONFIGURE_FLAG)
|
||||
AC_SUBST(DISTCHECK_SYSREPO_CONFIGURE_FLAG)
|
||||
AC_SUBST(DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG)
|
||||
])
|
@ -1,5 +0,0 @@
|
||||
SUBDIRS = share lib hooks bin
|
||||
|
||||
EXTRA_DIST = \
|
||||
cppcheck-suppress.lst \
|
||||
valgrind.supp
|
@ -1,16 +0,0 @@
|
||||
# The following build order must be maintained.
|
||||
SUBDIRS = lfc dhcp4 dhcp6 d2 agent admin keactrl
|
||||
|
||||
if PERFDHCP
|
||||
SUBDIRS += perfdhcp
|
||||
endif
|
||||
|
||||
if KEA_SHELL
|
||||
SUBDIRS += shell
|
||||
endif
|
||||
|
||||
if HAVE_NETCONF
|
||||
SUBDIRS += netconf
|
||||
endif
|
||||
|
||||
check-recursive: all-recursive
|
@ -1,9 +0,0 @@
|
||||
SUBDIRS = . tests
|
||||
|
||||
# Install kea-admin in sbin.
|
||||
sbin_SCRIPTS = kea-admin
|
||||
|
||||
DISTCLEANFILES = $(sbin_SCRIPTS)
|
||||
|
||||
adminscriptsdir = ${datarootdir}/${PACKAGE_NAME}/scripts
|
||||
adminscripts_DATA = admin-utils.sh
|
@ -1,32 +0,0 @@
|
||||
SUBDIRS = data .
|
||||
|
||||
# Add to the tarball:
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += dhcpdb_create_1.0.mysql
|
||||
EXTRA_DIST += dhcpdb_create_1.0.pgsql
|
||||
|
||||
# Shell tests
|
||||
SHTESTS =
|
||||
SHTESTS += admin_tests.sh
|
||||
SHTESTS += memfile_tests.sh
|
||||
if HAVE_MYSQL
|
||||
SHTESTS += mysql_tests.sh
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
SHTESTS += pgsql_tests.sh
|
||||
endif
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
# Run tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS = $(SHTESTS)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,3 +0,0 @@
|
||||
EXTRA_DIST = \
|
||||
lease4_dump_test.reference.csv \
|
||||
lease6_dump_test.reference.csv
|
@ -1,126 +0,0 @@
|
||||
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) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
EXTRA_DIST = agent.dox agent_hooks.dox
|
||||
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libagent.la
|
||||
|
||||
libagent_la_SOURCES = agent_parser.cc agent_parser.h
|
||||
libagent_la_SOURCES += agent_lexer.cc
|
||||
libagent_la_SOURCES += ca_cfg_mgr.cc ca_cfg_mgr.h
|
||||
libagent_la_SOURCES += ca_controller.cc ca_controller.h
|
||||
libagent_la_SOURCES += ca_command_mgr.cc ca_command_mgr.h
|
||||
libagent_la_SOURCES += ca_log.cc ca_log.h
|
||||
libagent_la_SOURCES += ca_process.cc ca_process.h
|
||||
libagent_la_SOURCES += ca_response_creator.cc ca_response_creator.h
|
||||
libagent_la_SOURCES += ca_response_creator_factory.h
|
||||
libagent_la_SOURCES += simple_parser.cc simple_parser.h
|
||||
libagent_la_SOURCES += parser_context.cc parser_context.h parser_context_decl.h
|
||||
libagent_la_SOURCES += agent_lexer.ll location.hh
|
||||
libagent_la_SOURCES += ca_messages.h ca_messages.cc
|
||||
EXTRA_DIST += ca_messages.mes
|
||||
EXTRA_DIST += agent_lexer.ll
|
||||
EXTRA_DIST += agent_parser.yy
|
||||
|
||||
sbin_PROGRAMS = kea-ctrl-agent
|
||||
|
||||
kea_ctrl_agent_SOURCES = main.cc
|
||||
|
||||
kea_ctrl_agent_LDADD = libagent.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
kea_ctrl_agent_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
kea_ctrl_agent_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
|
||||
kea_ctrl_agent_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f ca_messages.h ca_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: ca_messages.h ca_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
ca_messages.h ca_messages.cc: ca_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/bin/agent/ca_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages ca_messages.h ca_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
||||
if GENERATE_PARSER
|
||||
|
||||
# Generate parser first.
|
||||
all-recursive: agent_lexer.cc location.hh agent_parser.cc agent_parser.h
|
||||
|
||||
parser: agent_lexer.cc location.hh agent_parser.cc agent_parser.h
|
||||
@echo "Flex/bison files regenerated"
|
||||
|
||||
# --- Flex/Bison stuff below --------------------------------------------------
|
||||
# When debugging grammar issues, it's useful to add -v to bison parameters.
|
||||
# bison will generate parser.output file that explains the whole grammar.
|
||||
# It can be used to manually follow what's going on in the parser.
|
||||
# This is especially useful if yydebug_ is set to 1 as that variable
|
||||
# will cause parser to print out its internal state.
|
||||
# Call flex with -s to check that the default rule can be suppressed
|
||||
# Call bison with -W to get warnings like unmarked empty rules
|
||||
# Note C++11 deprecated register still used by flex < 2.6.0
|
||||
location.hh agent_parser.cc agent_parser.h: agent_parser.yy
|
||||
$(YACC) -Wno-yacc --defines=agent_parser.h --report=all \
|
||||
--report-file=agent_parser.report -o agent_parser.cc agent_parser.yy
|
||||
|
||||
agent_lexer.cc: agent_lexer.ll
|
||||
$(LEX) --prefix agent_ -o agent_lexer.cc agent_lexer.ll
|
||||
|
||||
else
|
||||
|
||||
parser location.hh agent_parser.cc agent_parser.h agent_lexer.cc:
|
||||
@echo Parser generation disabled. Configure with --enable-generate-parser to enable it.
|
||||
|
||||
endif
|
@ -1,119 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Add to the tarball:
|
||||
EXTRA_DIST = testdata/get_config.json
|
||||
EXTRA_DIST += testdata/hiddenp
|
||||
EXTRA_DIST += testdata/hiddens
|
||||
EXTRA_DIST += testdata/hiddenu
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
# Shell tests
|
||||
SHTESTS = ca_process_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
DISTCLEANFILES += test_basic_auth_libraries.h
|
||||
DISTCLEANFILES += test_callout_libraries.h
|
||||
DISTCLEANFILES += test_data_files_config.h
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
# C++ tests
|
||||
PROGRAM_TESTS = ca_unittests
|
||||
|
||||
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) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/agent/tests\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
AM_CPPFLAGS += -DCFG_EXAMPLES=\"$(abs_top_srcdir)/doc/examples/agent\"
|
||||
AM_CPPFLAGS += -DSYNTAX_FILE=\"$(abs_srcdir)/../agent_parser.yy\"
|
||||
AM_CPPFLAGS += -DTEST_CA_DIR=\"$(abs_top_srcdir)/src/lib/asiolink/testutils/ca\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
ca_unittests_SOURCES = ca_cfg_mgr_unittests.cc
|
||||
ca_unittests_SOURCES += ca_command_mgr_unittests.cc
|
||||
ca_unittests_SOURCES += ca_controller_unittests.cc
|
||||
ca_unittests_SOURCES += ca_process_unittests.cc
|
||||
ca_unittests_SOURCES += ca_response_creator_unittests.cc
|
||||
ca_unittests_SOURCES += ca_response_creator_factory_unittests.cc
|
||||
ca_unittests_SOURCES += ca_unittests.cc
|
||||
ca_unittests_SOURCES += parser_unittests.cc
|
||||
ca_unittests_SOURCES += get_config_unittest.cc
|
||||
|
||||
ca_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
ca_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
ca_unittests_LDADD = $(top_builddir)/src/bin/agent/libagent.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/process/testutils/libprocesstest.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/asiolink/testutils/libasiolinktest.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
ca_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
ca_unittests_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS)
|
||||
ca_unittests_LDADD += $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
|
||||
# The basic callout library - contains standard callouts
|
||||
libcallout_la_SOURCES = callout_library.cc
|
||||
libcallout_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libcallout_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libcallout_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libcallout_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libcallout_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libcallout_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
# The basic HTTP auth as a callout library
|
||||
libbasicauth_la_SOURCES = basic_auth_library.cc
|
||||
libbasicauth_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libbasicauth_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libbasicauth_la_LIBADD = $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libbasicauth_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libbasicauth_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libbasicauth_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libbasicauth_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libbasicauth_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libbasicauth_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libbasicauth_la_LIBADD += $(LOG4CPLUS_LIBS) $(BOOST_LIBS)
|
||||
libbasicauth_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
nodist_ca_unittests_SOURCES = test_data_files_config.h
|
||||
nodist_ca_unittests_SOURCES += test_basic_auth_libraries.h
|
||||
nodist_ca_unittests_SOURCES += test_callout_libraries.h
|
||||
|
||||
# Run C++ tests on "make check".
|
||||
TESTS = $(PROGRAM_TESTS)
|
||||
|
||||
# Run shell tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS += $(SHTESTS)
|
||||
|
||||
# Don't install test libraries.
|
||||
noinst_LTLIBRARIES = libcallout.la libbasicauth.la
|
||||
|
||||
# Don't install C++ tests.
|
||||
noinst_PROGRAMS = $(PROGRAM_TESTS)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,106 +0,0 @@
|
||||
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) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
EXTRA_DIST = d2.dox d2_hooks.dox
|
||||
EXTRA_DIST += d2_parser.yy
|
||||
|
||||
EXTRA_DIST += images/abstract_app_classes.svg images/add_state_model.svg
|
||||
EXTRA_DIST += images/config_data_classes.svg images/config_from_file_sequence.svg
|
||||
EXTRA_DIST += images/config_parser_classes.svg images/cpl_signal_classes.svg
|
||||
EXTRA_DIST += images/cpl_signal_sequence.svg images/d2_app_classes.svg
|
||||
EXTRA_DIST += images/nc_trans_sequence.svg images/remove_state_model.svg
|
||||
EXTRA_DIST += images/request_mgt_classes.svg images/state_model_classes.svg
|
||||
EXTRA_DIST += images/trans_classes.svg images/update_exec_classes.svg
|
||||
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libd2.la
|
||||
|
||||
libd2_la_SOURCES =
|
||||
libd2_la_SOURCES += d2_process.cc d2_process.h
|
||||
libd2_la_SOURCES += d2_lexer.ll location.hh
|
||||
libd2_la_SOURCES += d2_parser.cc d2_parser.h
|
||||
libd2_la_SOURCES += d2_queue_mgr.cc d2_queue_mgr.h
|
||||
libd2_la_SOURCES += d2_update_mgr.cc d2_update_mgr.h
|
||||
libd2_la_SOURCES += nc_add.cc nc_add.h
|
||||
libd2_la_SOURCES += nc_remove.cc nc_remove.h
|
||||
libd2_la_SOURCES += d2_controller.cc d2_controller.h
|
||||
libd2_la_SOURCES += parser_context.cc parser_context.h parser_context_decl.h
|
||||
libd2_la_SOURCES += simple_add.cc simple_add.h
|
||||
libd2_la_SOURCES += simple_remove.cc simple_remove.h
|
||||
libd2_la_SOURCES += simple_add_without_dhcid.cc simple_add_without_dhcid.h
|
||||
libd2_la_SOURCES += simple_remove_without_dhcid.cc simple_remove_without_dhcid.h
|
||||
libd2_la_SOURCES += check_exists_add.cc check_exists_add.h
|
||||
libd2_la_SOURCES += check_exists_remove.cc check_exists_remove.h
|
||||
|
||||
sbin_PROGRAMS = kea-dhcp-ddns
|
||||
|
||||
kea_dhcp_ddns_SOURCES = main.cc
|
||||
|
||||
kea_dhcp_ddns_LDADD = libd2.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
kea_dhcp_ddns_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
kea_dhcp_ddns_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
|
||||
kea_dhcp_ddns_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
kea_dhcp_ddnsdir = $(pkgdatadir)
|
||||
|
||||
if GENERATE_PARSER
|
||||
|
||||
# Generate parser first.
|
||||
all-recursive: d2_lexer.cc location.hh d2_parser.cc d2_parser.h
|
||||
|
||||
parser: d2_lexer.cc location.hh d2_parser.cc d2_parser.h
|
||||
@echo "Flex/bison files regenerated"
|
||||
|
||||
# --- Flex/Bison stuff below --------------------------------------------------
|
||||
# When debugging grammar issues, it's useful to add -v to bison parameters.
|
||||
# bison will generate parser.output file that explains the whole grammar.
|
||||
# It can be used to manually follow what's going on in the parser.
|
||||
# This is especially useful if yydebug_ is set to 1 as that variable
|
||||
# will cause parser to print out its internal state.
|
||||
# Call flex with -s to check that the default rule can be suppressed
|
||||
# Call bison with -W to get warnings like unmarked empty rules
|
||||
# Note C++11 deprecated register still used by flex < 2.6.0
|
||||
location.hh d2_parser.cc d2_parser.h: d2_parser.yy
|
||||
$(YACC) -Wno-yacc --defines=d2_parser.h --report=all \
|
||||
--report-file=d2_parser.report -o d2_parser.cc d2_parser.yy
|
||||
|
||||
d2_lexer.cc: d2_lexer.ll
|
||||
$(LEX) --prefix d2_parser_ -o d2_lexer.cc d2_lexer.ll
|
||||
|
||||
else
|
||||
|
||||
parser location.hh d2_parser.cc d2_parser.h d2_lexer.cc:
|
||||
@echo Parser generation disabled. Configure with --enable-generate-parser to enable it.
|
||||
|
||||
endif
|
@ -1,133 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Add to the tarball:
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += testdata/d2_cfg_tests.json
|
||||
EXTRA_DIST += testdata/get_config.json
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
# Shell tests
|
||||
SHTESTS = d2_process_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
DISTCLEANFILES += d2_process_tests.sh
|
||||
DISTCLEANFILES += test_data_files_config.h
|
||||
DISTCLEANFILES += test_callout_libraries.h
|
||||
DISTCLEANFILES += test_configured_libraries.h
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
# C++ tests
|
||||
PROGRAM_TESTS = d2_unittests
|
||||
|
||||
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) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/d2/tests\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
AM_CPPFLAGS += -DCFG_EXAMPLES=\"$(abs_top_srcdir)/doc/examples/ddns\"
|
||||
AM_CPPFLAGS += -DSYNTAX_FILE=\"$(abs_srcdir)/../d2_parser.yy\"
|
||||
AM_CPPFLAGS += -DTEST_CA_DIR=\"$(abs_top_srcdir)/src/lib/asiolink/testutils/ca\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
d2_unittests_SOURCES = d2_unittests.cc
|
||||
d2_unittests_SOURCES += d2_process_unittests.cc
|
||||
d2_unittests_SOURCES += d2_cfg_mgr_unittests.cc
|
||||
d2_unittests_SOURCES += d2_queue_mgr_unittests.cc
|
||||
d2_unittests_SOURCES += d2_update_mgr_unittests.cc
|
||||
d2_unittests_SOURCES += nc_add_unittests.cc
|
||||
d2_unittests_SOURCES += nc_remove_unittests.cc
|
||||
d2_unittests_SOURCES += d2_controller_unittests.cc
|
||||
d2_unittests_SOURCES += d2_simple_parser_unittest.cc
|
||||
d2_unittests_SOURCES += parser_unittest.cc parser_unittest.h
|
||||
d2_unittests_SOURCES += get_config_unittest.cc
|
||||
d2_unittests_SOURCES += d2_command_unittest.cc
|
||||
d2_unittests_SOURCES += d2_http_command_unittest.cc
|
||||
d2_unittests_SOURCES += simple_add_unittests.cc
|
||||
d2_unittests_SOURCES += simple_remove_unittests.cc
|
||||
d2_unittests_SOURCES += simple_add_without_dhcid_unittests.cc
|
||||
d2_unittests_SOURCES += simple_remove_without_dhcid_unittests.cc
|
||||
d2_unittests_SOURCES += check_exists_add_unittests.cc
|
||||
d2_unittests_SOURCES += check_exists_remove_unittests.cc
|
||||
|
||||
d2_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
d2_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
d2_unittests_LDFLAGS += $(GTEST_LDFLAGS)
|
||||
|
||||
d2_unittests_LDADD = $(top_builddir)/src/bin/d2/libd2.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/d2srv/testutils/libd2srvtest.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/process/testutils/libprocesstest.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/asiolink/testutils/libasiolinktest.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
d2_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
d2_unittests_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS)
|
||||
d2_unittests_LDADD += $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
|
||||
# The basic callout library - contains standard callouts
|
||||
libcallout_la_SOURCES = callout_library.cc
|
||||
libcallout_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libcallout_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libcallout_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libcallout_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libcallout_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libcallout_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
# The d2_srv_configured callout library
|
||||
libconfigured_la_SOURCES = configured_library.cc
|
||||
libconfigured_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libconfigured_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libconfigured_la_LIBADD = $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libconfigured_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libconfigured_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libconfigured_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libconfigured_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libconfigured_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libconfigured_la_LIBADD += $(LOG4CPLUS_LIBS) $(BOOST_LIBS)
|
||||
libconfigured_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
noinst_LTLIBRARIES = libcallout.la libconfigured.la
|
||||
|
||||
nodist_d2_unittests_SOURCES =
|
||||
nodist_d2_unittests_SOURCES += test_data_files_config.h
|
||||
nodist_d2_unittests_SOURCES += test_callout_libraries.h
|
||||
nodist_d2_unittests_SOURCES += test_configured_libraries.h
|
||||
|
||||
# Run C++ tests on "make check".
|
||||
TESTS = $(PROGRAM_TESTS)
|
||||
|
||||
# Run shell tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS += $(SHTESTS)
|
||||
|
||||
# Don't install C++ tests.
|
||||
noinst_PROGRAMS = $(PROGRAM_TESTS)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,127 +0,0 @@
|
||||
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 += -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
EXTRA_DIST = dhcp4.dox dhcp4_hooks.dox dhcp4o6.dox
|
||||
EXTRA_DIST += dhcp4_parser.yy
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libdhcp4.la
|
||||
|
||||
libdhcp4_la_SOURCES =
|
||||
libdhcp4_la_SOURCES += ctrl_dhcp4_srv.cc ctrl_dhcp4_srv.h
|
||||
libdhcp4_la_SOURCES += json_config_parser.cc json_config_parser.h
|
||||
libdhcp4_la_SOURCES += dhcp4_log.cc dhcp4_log.h
|
||||
libdhcp4_la_SOURCES += dhcp4_srv.cc dhcp4_srv.h
|
||||
libdhcp4_la_SOURCES += dhcp4to6_ipc.cc dhcp4to6_ipc.h
|
||||
libdhcp4_la_SOURCES += client_handler.cc client_handler.h
|
||||
libdhcp4_la_SOURCES += dhcp4_lexer.ll location.hh
|
||||
libdhcp4_la_SOURCES += dhcp4_parser.cc dhcp4_parser.h
|
||||
libdhcp4_la_SOURCES += parser_context.cc parser_context.h parser_context_decl.h
|
||||
libdhcp4_la_SOURCES += dhcp4_messages.h dhcp4_messages.cc
|
||||
EXTRA_DIST += dhcp4_messages.mes
|
||||
|
||||
sbin_PROGRAMS = kea-dhcp4
|
||||
|
||||
kea_dhcp4_SOURCES = main.cc
|
||||
|
||||
kea_dhcp4_LDADD = libdhcp4.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
kea_dhcp4_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
kea_dhcp4_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
|
||||
kea_dhcp4_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
kea_dhcp4dir = $(pkgdatadir)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f dhcp4_messages.h dhcp4_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: dhcp4_messages.h dhcp4_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
dhcp4_messages.h dhcp4_messages.cc: dhcp4_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/bin/dhcp4/dhcp4_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages dhcp4_messages.h dhcp4_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
||||
if GENERATE_PARSER
|
||||
|
||||
# Generate parser first.
|
||||
all-recursive: dhcp4_lexer.cc location.hh dhcp4_parser.cc dhcp4_parser.h
|
||||
|
||||
parser: dhcp4_lexer.cc location.hh dhcp4_parser.cc dhcp4_parser.h
|
||||
@echo "Flex/bison files regenerated"
|
||||
|
||||
# --- Flex/Bison stuff below --------------------------------------------------
|
||||
# When debugging grammar issues, it's useful to add -v to bison parameters.
|
||||
# bison will generate parser.output file that explains the whole grammar.
|
||||
# It can be used to manually follow what's going on in the parser.
|
||||
# This is especially useful if yydebug_ is set to 1 as that variable
|
||||
# will cause parser to print out its internal state.
|
||||
# Call flex with -s to check that the default rule can be suppressed
|
||||
# Call bison with -W to get warnings like unmarked empty rules
|
||||
# Note C++11 deprecated register still used by flex < 2.6.0
|
||||
location.hh dhcp4_parser.cc dhcp4_parser.h: dhcp4_parser.yy
|
||||
$(YACC) -Wno-yacc --defines=dhcp4_parser.h --report=all \
|
||||
--report-file=dhcp4_parser.report -o dhcp4_parser.cc dhcp4_parser.yy
|
||||
|
||||
dhcp4_lexer.cc: dhcp4_lexer.ll
|
||||
$(LEX) --prefix parser4_ -o dhcp4_lexer.cc dhcp4_lexer.ll
|
||||
|
||||
else
|
||||
|
||||
parser location.hh dhcp4_parser.cc dhcp4_parser.h dhcp4_lexer.cc:
|
||||
@echo Parser generation disabled. Configure with --enable-generate-parser to enable it.
|
||||
|
||||
endif
|
@ -1,211 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Add to the tarball:
|
||||
EXTRA_DIST = get_config_unittest.cc.skel
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
# Shell tests
|
||||
SHTESTS = dhcp4_process_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
DISTCLEANFILES += marker_file.h
|
||||
DISTCLEANFILES += test_data_files_config.h
|
||||
DISTCLEANFILES += test_libraries.h
|
||||
|
||||
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 += -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/dhcp4/tests\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
AM_CPPFLAGS += -DCFG_EXAMPLES=\"$(abs_top_srcdir)/doc/examples/kea4\"
|
||||
AM_CPPFLAGS += -DSYNTAX_FILE=\"$(abs_srcdir)/../dhcp4_parser.yy\"
|
||||
AM_CPPFLAGS += -DKEA_LFC_EXECUTABLE=\"$(abs_top_builddir)/src/bin/lfc/kea-lfc\"
|
||||
AM_CPPFLAGS += -DTEST_CA_DIR=\"$(abs_top_srcdir)/src/lib/asiolink/testutils/ca\"
|
||||
|
||||
if HAVE_MYSQL
|
||||
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
AM_CPPFLAGS += $(PGSQL_CPPFLAGS)
|
||||
endif
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Build shared libraries for testing. The libtool way to create a shared library
|
||||
# is to specify "-avoid-version -export-dynamic -module" in the library LDFLAGS
|
||||
# (see http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html).
|
||||
# Use of these switches will guarantee that the .so files are created in the
|
||||
# .libs folder and they can be dlopened.
|
||||
# Note that the shared libraries with callouts should not be used together with
|
||||
# the --enable-static-link option. With this option, the bind10 libraries are
|
||||
# statically linked with the program and if the callout invokes the methods
|
||||
# which belong to these libraries, the library with the callout will get its
|
||||
# own copy of the static objects (e.g. logger, ServerHooks) and that will lead
|
||||
# to unexpected errors. For this reason, the --enable-static-link option is
|
||||
# ignored for unit tests built here.
|
||||
|
||||
# -rpath /nowhere is a hack to trigger libtool to not create a
|
||||
# convenience archive, resulting in shared modules
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
libco1_la_SOURCES = callout_library_1.cc callout_library_common.h
|
||||
libco1_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco1_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco1_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
libco2_la_SOURCES = callout_library_2.cc callout_library_common.h
|
||||
libco2_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco2_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco2_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
libco3_la_SOURCES = callout_library_3.cc callout_library_common.h
|
||||
libco3_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco3_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco3_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
libco4_la_SOURCES = callout_library_4.cc callout_library_common.h
|
||||
libco4_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco4_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco4_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
# Don't install test libraries.
|
||||
noinst_LTLIBRARIES = libco1.la libco2.la libco3.la libco4.la
|
||||
|
||||
# C++ tests
|
||||
PROGRAM_TESTS = dhcp4_unittests
|
||||
|
||||
# This list is ordered alphabetically. When adding new files, please maintain
|
||||
# this order.
|
||||
dhcp4_unittests_SOURCES =
|
||||
dhcp4_unittests_SOURCES += classify_unittest.cc
|
||||
dhcp4_unittests_SOURCES += client_handler_unittest.cc
|
||||
dhcp4_unittests_SOURCES += config_parser_unittest.cc
|
||||
dhcp4_unittests_SOURCES += config_backend_unittest.cc
|
||||
dhcp4_unittests_SOURCES += ctrl_dhcp4_srv_unittest.cc
|
||||
dhcp4_unittests_SOURCES += http_control_socket_unittest.cc
|
||||
dhcp4_unittests_SOURCES += d2_unittest.h d2_unittest.cc
|
||||
dhcp4_unittests_SOURCES += decline_unittest.cc
|
||||
dhcp4_unittests_SOURCES += dhcp4_client.cc dhcp4_client.h
|
||||
dhcp4_unittests_SOURCES += dhcp4_srv_unittest.cc
|
||||
dhcp4_unittests_SOURCES += dhcp4_test_utils.cc dhcp4_test_utils.h
|
||||
dhcp4_unittests_SOURCES += dhcp4_unittests.cc
|
||||
dhcp4_unittests_SOURCES += dhcp4to6_ipc_unittest.cc
|
||||
dhcp4_unittests_SOURCES += direct_client_unittest.cc
|
||||
dhcp4_unittests_SOURCES += dora_unittest.cc
|
||||
dhcp4_unittests_SOURCES += fqdn_unittest.cc
|
||||
dhcp4_unittests_SOURCES += get_config_unittest.cc get_config_unittest.h
|
||||
dhcp4_unittests_SOURCES += hooks_unittest.cc
|
||||
dhcp4_unittests_SOURCES += host_options_unittest.cc
|
||||
dhcp4_unittests_SOURCES += host_unittest.cc
|
||||
dhcp4_unittests_SOURCES += inform_unittest.cc
|
||||
dhcp4_unittests_SOURCES += kea_controller_unittest.cc
|
||||
dhcp4_unittests_SOURCES += marker_file.cc
|
||||
dhcp4_unittests_SOURCES += out_of_range_unittest.cc
|
||||
dhcp4_unittests_SOURCES += parser_unittest.cc
|
||||
dhcp4_unittests_SOURCES += release_unittest.cc
|
||||
|
||||
dhcp4_unittests_SOURCES += simple_parser4_unittest.cc
|
||||
dhcp4_unittests_SOURCES += shared_network_unittest.cc
|
||||
dhcp4_unittests_SOURCES += vendor_opts_unittest.cc
|
||||
|
||||
nodist_dhcp4_unittests_SOURCES = marker_file.h test_libraries.h
|
||||
|
||||
dhcp4_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
|
||||
dhcp4_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
if HAVE_MYSQL
|
||||
dhcp4_unittests_LDFLAGS += $(MYSQL_LIBS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
dhcp4_unittests_LDFLAGS += $(PGSQL_LIBS)
|
||||
endif
|
||||
dhcp4_unittests_LDFLAGS += $(GTEST_LDFLAGS)
|
||||
|
||||
dhcp4_unittests_LDADD = $(top_builddir)/src/bin/dhcp4/libdhcp4.la
|
||||
|
||||
if HAVE_PGSQL
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/pgsql/libpgsql.la
|
||||
endif
|
||||
|
||||
if HAVE_MYSQL
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/mysql/libmysql.la
|
||||
endif
|
||||
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/dhcp/testutils/libdhcptest.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
|
||||
if HAVE_PGSQL
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/pgsql/testutils/libpgsqltest.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la
|
||||
endif
|
||||
|
||||
if HAVE_MYSQL
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/mysql/testutils/libmysqltest.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
endif
|
||||
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/database/testutils/libdatabasetest.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/asiolink/testutils/libasiolinktest.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
dhcp4_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
dhcp4_unittests_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS)
|
||||
dhcp4_unittests_LDADD += $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
|
||||
# Run C++ tests on "make check".
|
||||
TESTS = $(PROGRAM_TESTS)
|
||||
|
||||
# Run shell tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS += $(SHTESTS)
|
||||
|
||||
# Don't install C++ tests.
|
||||
noinst_PROGRAMS = $(PROGRAM_TESTS)
|
||||
|
||||
# Use this target if you want to rebuild the get-config unit-tests.
|
||||
#
|
||||
# TODO: We could also automate the replacement step with some variation
|
||||
# of this: https://stackoverflow.com/questions/6790631
|
||||
rebuild-tests:
|
||||
rm -f x u get_config_unittest.cc
|
||||
cp -f get_config_unittest.cc.skel get_config_unittest.cc
|
||||
$(MAKE) CXXFLAGS=-DEXTRACT_CONFIG V=1
|
||||
./dhcp4_unittests --gtest_filter="Dhcp4Parser*" > /dev/null 2> x
|
||||
echo "Please copy content of x file into EXTRACTED_CONFIGS in get_config_unittest.cc"
|
||||
read -p "Press ENTER when ready"
|
||||
$(MAKE) CXXFLAGS=-DGENERATE_ACTION V=1
|
||||
./dhcp4_unittests --gtest_filter="Dhcp4GetConfig*" > /dev/null 2> u
|
||||
echo "Please copy content of u file into UNPARSED_CONFIGS in get_config_unittest.cc"
|
||||
read -p "Press ENTER when ready"
|
||||
touch get_config_unittest.cc
|
||||
$(MAKE)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,127 +0,0 @@
|
||||
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 += -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
EXTRA_DIST = dhcp6.dox dhcp6_hooks.dox dhcp4o6.dox
|
||||
EXTRA_DIST += dhcp6_parser.yy
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libdhcp6.la
|
||||
|
||||
libdhcp6_la_SOURCES =
|
||||
libdhcp6_la_SOURCES += ctrl_dhcp6_srv.cc ctrl_dhcp6_srv.h
|
||||
libdhcp6_la_SOURCES += json_config_parser.cc json_config_parser.h
|
||||
libdhcp6_la_SOURCES += dhcp6_log.cc dhcp6_log.h
|
||||
libdhcp6_la_SOURCES += dhcp6_srv.cc dhcp6_srv.h
|
||||
libdhcp6_la_SOURCES += dhcp6to4_ipc.cc dhcp6to4_ipc.h
|
||||
libdhcp6_la_SOURCES += client_handler.cc client_handler.h
|
||||
libdhcp6_la_SOURCES += dhcp6_lexer.ll location.hh
|
||||
libdhcp6_la_SOURCES += dhcp6_parser.cc dhcp6_parser.h
|
||||
libdhcp6_la_SOURCES += parser_context.cc parser_context.h parser_context_decl.h
|
||||
libdhcp6_la_SOURCES += dhcp6_messages.h dhcp6_messages.cc
|
||||
EXTRA_DIST += dhcp6_messages.mes
|
||||
|
||||
sbin_PROGRAMS = kea-dhcp6
|
||||
|
||||
kea_dhcp6_SOURCES = main.cc
|
||||
|
||||
kea_dhcp6_LDADD = libdhcp6.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.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/log/libkea-log.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
kea_dhcp6_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
kea_dhcp6_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
|
||||
kea_dhcp6_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
kea_dhcp6dir = $(pkgdatadir)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f dhcp6_messages.h dhcp6_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: dhcp6_messages.h dhcp6_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
dhcp6_messages.h dhcp6_messages.cc: dhcp6_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/bin/dhcp6/dhcp6_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages dhcp6_messages.h dhcp6_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
||||
if GENERATE_PARSER
|
||||
|
||||
# Generate parser first.
|
||||
all-recursive: dhcp6_lexer.cc location.hh dhcp6_parser.cc dhcp6_parser.h
|
||||
|
||||
parser: dhcp6_lexer.cc location.hh dhcp6_parser.cc dhcp6_parser.h
|
||||
@echo "Flex/bison files regenerated"
|
||||
|
||||
# --- Flex/Bison stuff below --------------------------------------------------
|
||||
# When debugging grammar issues, it's useful to add -v to bison parameters.
|
||||
# bison will generate parser.output file that explains the whole grammar.
|
||||
# It can be used to manually follow what's going on in the parser.
|
||||
# This is especially useful if yydebug_ is set to 1 as that variable
|
||||
# will cause parser to print out its internal state.
|
||||
# Call flex with -s to check that the default rule can be suppressed
|
||||
# Call bison with -W to get warnings like unmarked empty rules
|
||||
# Note C++11 deprecated register still used by flex < 2.6.0
|
||||
location.hh dhcp6_parser.cc dhcp6_parser.h: dhcp6_parser.yy
|
||||
$(YACC) -Wno-yacc --defines=dhcp6_parser.h --report=all \
|
||||
--report-file=dhcp6_parser.report -o dhcp6_parser.cc dhcp6_parser.yy
|
||||
|
||||
dhcp6_lexer.cc: dhcp6_lexer.ll
|
||||
$(LEX) --prefix parser6_ -o dhcp6_lexer.cc dhcp6_lexer.ll
|
||||
|
||||
else
|
||||
|
||||
parser location.hh dhcp6_parser.cc dhcp6_parser.h dhcp6_lexer.cc:
|
||||
@echo Parser generation disabled. Configure with --enable-generate-parser to enable it.
|
||||
|
||||
endif
|
@ -1,214 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Add to the tarball:
|
||||
EXTRA_DIST = get_config_unittest.cc.skel
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
# Shell tests
|
||||
SHTESTS = dhcp6_process_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
DISTCLEANFILES += marker_file.h
|
||||
DISTCLEANFILES += test_data_files_config.h
|
||||
DISTCLEANFILES += test_libraries.h
|
||||
|
||||
dhcp_data_dir = @localstatedir@/lib/@PACKAGE@
|
||||
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 += -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
AM_CPPFLAGS += -DTOP_BUILDDIR="\"$(top_builddir)\""
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/dhcp6/tests\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
AM_CPPFLAGS += -DCFG_EXAMPLES=\"$(abs_top_srcdir)/doc/examples/kea6\"
|
||||
AM_CPPFLAGS += -DSYNTAX_FILE=\"$(abs_srcdir)/../dhcp6_parser.yy\"
|
||||
AM_CPPFLAGS += -DKEA_LFC_EXECUTABLE=\"$(abs_top_builddir)/src/bin/lfc/kea-lfc\"
|
||||
AM_CPPFLAGS += -DTEST_CA_DIR=\"$(abs_top_srcdir)/src/lib/asiolink/testutils/ca\"
|
||||
AM_CPPFLAGS += -DDHCP_DATA_DIR="\"$(dhcp_data_dir)\""
|
||||
|
||||
if HAVE_MYSQL
|
||||
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
AM_CPPFLAGS += $(PGSQL_CPPFLAGS)
|
||||
endif
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Build shared libraries for testing. The libtool way to create a shared library
|
||||
# is to specify "-avoid-version -export-dynamic -module" in the library LDFLAGS
|
||||
# (see http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html).
|
||||
# Use of these switches will guarantee that the .so files are created in the
|
||||
# .libs folder and they can be dlopened.
|
||||
# Note that the shared libraries with callouts should not be used together with
|
||||
# the --enable-static-link option. With this option, the bind10 libraries are
|
||||
# statically linked with the program and if the callout invokes the methods
|
||||
# which belong to these libraries, the library with the callout will get its
|
||||
# own copy of the static objects (e.g. logger, ServerHooks) and that will lead
|
||||
# to unexpected errors. For this reason, the --enable-static-link option is
|
||||
# ignored for unit tests built here.
|
||||
|
||||
# -rpath /nowhere is a hack to trigger libtool to not create a
|
||||
# convenience archive, resulting in shared modules
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
libco1_la_SOURCES = callout_library_1.cc callout_library_common.h
|
||||
libco1_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco1_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco1_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
libco2_la_SOURCES = callout_library_2.cc callout_library_common.h
|
||||
libco2_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco2_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco2_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
libco3_la_SOURCES = callout_library_3.cc callout_library_common.h
|
||||
libco3_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco3_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco3_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
libco4_la_SOURCES = callout_library_4.cc callout_library_common.h
|
||||
libco4_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libco4_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libco4_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
# Don't install test libraries.
|
||||
noinst_LTLIBRARIES = libco1.la libco2.la libco3.la libco4.la
|
||||
|
||||
# C++ tests
|
||||
PROGRAM_TESTS = dhcp6_unittests
|
||||
|
||||
# This list is ordered alphabetically. When adding new files, please maintain
|
||||
# this order.
|
||||
dhcp6_unittests_SOURCES =
|
||||
dhcp6_unittests_SOURCES += addr_reg_unittest.cc
|
||||
dhcp6_unittests_SOURCES += classify_unittest.cc
|
||||
dhcp6_unittests_SOURCES += client_handler_unittest.cc
|
||||
dhcp6_unittests_SOURCES += config_parser_unittest.cc
|
||||
dhcp6_unittests_SOURCES += config_backend_unittest.cc
|
||||
dhcp6_unittests_SOURCES += confirm_unittest.cc
|
||||
dhcp6_unittests_SOURCES += ctrl_dhcp6_srv_unittest.cc
|
||||
dhcp6_unittests_SOURCES += http_control_socket_unittest.cc
|
||||
dhcp6_unittests_SOURCES += d2_unittest.cc d2_unittest.h
|
||||
dhcp6_unittests_SOURCES += decline_unittest.cc
|
||||
dhcp6_unittests_SOURCES += dhcp6_client.cc dhcp6_client.h
|
||||
dhcp6_unittests_SOURCES += dhcp6_message_test.cc dhcp6_message_test.h
|
||||
dhcp6_unittests_SOURCES += dhcp6_srv_unittest.cc
|
||||
dhcp6_unittests_SOURCES += dhcp6_test_utils.cc dhcp6_test_utils.h
|
||||
dhcp6_unittests_SOURCES += dhcp6_unittests.cc
|
||||
dhcp6_unittests_SOURCES += dhcp6to4_ipc_unittest.cc
|
||||
dhcp6_unittests_SOURCES += fqdn_unittest.cc
|
||||
dhcp6_unittests_SOURCES += get_config_unittest.cc get_config_unittest.h
|
||||
dhcp6_unittests_SOURCES += hooks_unittest.cc
|
||||
dhcp6_unittests_SOURCES += host_unittest.cc
|
||||
dhcp6_unittests_SOURCES += infrequest_unittest.cc
|
||||
dhcp6_unittests_SOURCES += kea_controller_unittest.cc
|
||||
dhcp6_unittests_SOURCES += marker_file.cc
|
||||
dhcp6_unittests_SOURCES += parser_unittest.cc
|
||||
dhcp6_unittests_SOURCES += rebind_unittest.cc
|
||||
dhcp6_unittests_SOURCES += renew_unittest.cc
|
||||
dhcp6_unittests_SOURCES += sarr_unittest.cc
|
||||
dhcp6_unittests_SOURCES += simple_parser6_unittest.cc
|
||||
dhcp6_unittests_SOURCES += shared_network_unittest.cc
|
||||
dhcp6_unittests_SOURCES += tee_times_unittest.cc
|
||||
dhcp6_unittests_SOURCES += vendor_opts_unittest.cc
|
||||
|
||||
nodist_dhcp6_unittests_SOURCES = marker_file.h test_libraries.h
|
||||
|
||||
dhcp6_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
|
||||
dhcp6_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
if HAVE_MYSQL
|
||||
dhcp6_unittests_LDFLAGS += $(MYSQL_LIBS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
dhcp6_unittests_LDFLAGS += $(PGSQL_LIBS)
|
||||
endif
|
||||
dhcp6_unittests_LDFLAGS += $(GTEST_LDFLAGS)
|
||||
|
||||
dhcp6_unittests_LDADD = $(top_builddir)/src/bin/dhcp6/libdhcp6.la
|
||||
|
||||
if HAVE_PGSQL
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/pgsql/libpgsql.la
|
||||
endif
|
||||
|
||||
if HAVE_MYSQL
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/mysql/libmysql.la
|
||||
endif
|
||||
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dhcp/testutils/libdhcptest.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
|
||||
if HAVE_PGSQL
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/pgsql/testutils/libpgsqltest.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la
|
||||
endif
|
||||
|
||||
if HAVE_MYSQL
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/mysql/testutils/libmysqltest.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
endif
|
||||
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/database/testutils/libdatabasetest.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/asiolink/testutils/libasiolinktest.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
dhcp6_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
dhcp6_unittests_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS)
|
||||
dhcp6_unittests_LDADD += $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
|
||||
# Run C++ tests on "make check".
|
||||
TESTS = $(PROGRAM_TESTS)
|
||||
|
||||
# Run shell tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS += $(SHTESTS)
|
||||
|
||||
# Don't install C++ tests.
|
||||
noinst_PROGRAMS = $(PROGRAM_TESTS)
|
||||
|
||||
# Use this target if you want to rebuild the get-config unit-tests.
|
||||
#
|
||||
# TODO: We could also automate the replacement step with some variation
|
||||
# of this: https://stackoverflow.com/questions/6790631
|
||||
rebuild-tests:
|
||||
rm -f x u get_config_unittest.cc
|
||||
cp -f get_config_unittest.cc.skel get_config_unittest.cc
|
||||
$(MAKE) CXXFLAGS=-DEXTRACT_CONFIG V=1
|
||||
./dhcp6_unittests --gtest_filter="Dhcp6Parser*" > /dev/null 2> x
|
||||
echo "Please copy content of x file into EXTRACTED_CONFIGS in get_config_unittest.cc"
|
||||
read -p "Press ENTER when ready"
|
||||
$(MAKE) CXXFLAGS=-DGENERATE_ACTION V=1
|
||||
./dhcp6_unittests --gtest_filter="Dhcp6GetConfig*" > /dev/null 2> u
|
||||
echo "Please copy content of u file into UNPARSED_CONFIGS in get_config_unittest.cc"
|
||||
read -p "Press ENTER when ready"
|
||||
touch get_config_unittest.cc
|
||||
$(MAKE)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,74 +0,0 @@
|
||||
SUBDIRS = . tests
|
||||
|
||||
# Install keactrl in sbin and the keactrl.conf required by the keactrl
|
||||
# in etc. keactrl will look for its configuration file in the etc folder.
|
||||
sbin_SCRIPTS = keactrl
|
||||
KEA_CONFIGFILES = kea-dhcp4.conf
|
||||
KEA_CONFIGFILES += kea-dhcp6.conf
|
||||
KEA_CONFIGFILES += kea-dhcp-ddns.conf
|
||||
KEA_CONFIGFILES += kea-ctrl-agent.conf
|
||||
|
||||
if HAVE_NETCONF
|
||||
KEA_CONFIGFILES += kea-netconf.conf
|
||||
endif
|
||||
|
||||
CONFIGFILES = keactrl.conf $(KEA_CONFIGFILES)
|
||||
|
||||
DISTCLEANFILES = keactrl keactrl.conf
|
||||
CLEANFILES = $(KEA_CONFIGFILES)
|
||||
EXTRA_DIST = keactrl.in
|
||||
EXTRA_DIST += keactrl.conf.in
|
||||
EXTRA_DIST += kea-dhcp4.conf.pre
|
||||
EXTRA_DIST += kea-dhcp6.conf.pre
|
||||
EXTRA_DIST += kea-dhcp-ddns.conf.pre
|
||||
EXTRA_DIST += kea-ctrl-agent.conf.pre
|
||||
EXTRA_DIST += kea-netconf.conf.pre
|
||||
|
||||
# *.conf files are not really sources used for building other targets, but we need
|
||||
# these files to be generated before make install is called.
|
||||
BUILT_SOURCES = $(KEA_CONFIGFILES)
|
||||
|
||||
|
||||
kea-dhcp4.conf: kea-dhcp4.conf.pre
|
||||
$(top_builddir)/tools/path_replacer.sh \
|
||||
$(top_srcdir)/src/bin/keactrl/kea-dhcp4.conf.pre $@
|
||||
|
||||
kea-dhcp6.conf: kea-dhcp6.conf.pre
|
||||
$(top_builddir)/tools/path_replacer.sh \
|
||||
$(top_srcdir)/src/bin/keactrl/kea-dhcp6.conf.pre $@
|
||||
|
||||
kea-dhcp-ddns.conf: kea-dhcp-ddns.conf.pre
|
||||
$(top_builddir)/tools/path_replacer.sh \
|
||||
$(top_srcdir)/src/bin/keactrl/kea-dhcp-ddns.conf.pre $@
|
||||
|
||||
kea-ctrl-agent.conf: kea-ctrl-agent.conf.pre
|
||||
$(top_builddir)/tools/path_replacer.sh \
|
||||
$(top_srcdir)/src/bin/keactrl/kea-ctrl-agent.conf.pre $@
|
||||
|
||||
kea-netconf.conf: kea-netconf.conf.pre
|
||||
$(top_builddir)/tools/path_replacer.sh \
|
||||
$(top_srcdir)/src/bin/keactrl/kea-netconf.conf.pre $@
|
||||
|
||||
if INSTALL_CONFIGURATIONS
|
||||
|
||||
# Since Kea 1.3.0 release we have 4 different Kea configuration files
|
||||
# instead of one, i.e. kea-dhcp4.conf, kea-dhcp6.conf, kea-dhcp-ddns.conf
|
||||
# and kea-ctrl-agent.conf. To facilitate the use of these new files
|
||||
# the keactrl.conf has been updated in Kea 1.3.0 release. Therefore,
|
||||
# we install new version of thea keactrl.conf file unconditionally.
|
||||
# To preserve any user modifications to the old version of the file,
|
||||
# this old file is backed up as keactrl.conf.bak.
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
|
||||
for f in $(CONFIGFILES) ; do \
|
||||
if test -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f && \
|
||||
test $$f = "keactrl.conf"; then \
|
||||
mv $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f \
|
||||
$(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f.bak; \
|
||||
fi; \
|
||||
if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then \
|
||||
${INSTALL_DATA} $$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
endif
|
@ -1,19 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Shell tests
|
||||
SHTESTS = keactrl_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
# Run shell tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS = $(SHTESTS)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,85 +0,0 @@
|
||||
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 = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST = lfc.dox
|
||||
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = liblfc.la
|
||||
|
||||
liblfc_la_SOURCES =
|
||||
liblfc_la_SOURCES += lfc_controller.h lfc_controller.cc
|
||||
liblfc_la_SOURCES += lfc_log.h lfc_log.cc
|
||||
liblfc_la_SOURCES += lfc_messages.h lfc_messages.cc
|
||||
EXTRA_DIST += lfc_messages.mes
|
||||
|
||||
sbin_PROGRAMS = kea-lfc
|
||||
|
||||
kea_lfc_SOURCES = main.cc
|
||||
|
||||
kea_lfc_LDADD = liblfc.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
kea_lfc_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
kea_lfc_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
|
||||
kea_lfc_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
kea_lfcdir = $(pkgdatadir)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f lfc_messages.h lfc_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: lfc_messages.h lfc_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
lfc_messages.h lfc_messages.cc: lfc_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/bin/lfc/lfc_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages lfc_messages.h lfc_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,54 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
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_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/lfc/tests\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
CLEANFILES = $(builddir)/interfaces.txt $(builddir)/logger_lockfile
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS += lfc_unittests
|
||||
|
||||
lfc_unittests_SOURCES = lfc_unittests.cc
|
||||
lfc_unittests_SOURCES += lfc_controller_unittests.cc
|
||||
|
||||
lfc_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
lfc_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
lfc_unittests_LDFLAGS += $(GTEST_LDFLAGS)
|
||||
|
||||
lfc_unittests_LDADD = $(top_builddir)/src/bin/lfc/liblfc.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
lfc_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
lfc_unittests_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS)
|
||||
lfc_unittests_LDADD += $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,139 +0,0 @@
|
||||
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 += -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += $(LIBYANG_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(LIBYANG_INCLUDEDIR)
|
||||
AM_CPPFLAGS += $(LIBYANGCPP_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(LIBYANGCPP_INCLUDEDIR)
|
||||
AM_CPPFLAGS += $(SYSREPO_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(SYSREPO_INCLUDEDIR)
|
||||
AM_CPPFLAGS += $(SYSREPOCPP_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(SYSREPOCPP_INCLUDEDIR)
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
#EXTRA_DIST += netconf.dox netconf_hooks.dox
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libnetconf.la
|
||||
|
||||
libnetconf_la_SOURCES = control_socket.cc control_socket.h
|
||||
libnetconf_la_SOURCES += http_control_socket.cc http_control_socket.h
|
||||
libnetconf_la_SOURCES += stdout_control_socket.cc stdout_control_socket.h
|
||||
libnetconf_la_SOURCES += unix_control_socket.cc unix_control_socket.h
|
||||
libnetconf_la_SOURCES += netconf.cc netconf.h
|
||||
libnetconf_la_SOURCES += netconf_cfg_mgr.cc netconf_cfg_mgr.h
|
||||
libnetconf_la_SOURCES += netconf_config.cc netconf_config.h
|
||||
libnetconf_la_SOURCES += netconf_controller.cc netconf_controller.h
|
||||
libnetconf_la_SOURCES += netconf_log.cc netconf_log.h
|
||||
libnetconf_la_SOURCES += netconf_parser.cc netconf_parser.h
|
||||
libnetconf_la_SOURCES += netconf_process.cc netconf_process.h
|
||||
libnetconf_la_SOURCES += parser_context.cc parser_context.h
|
||||
libnetconf_la_SOURCES += parser_context_decl.h
|
||||
libnetconf_la_SOURCES += simple_parser.cc simple_parser.h
|
||||
libnetconf_la_SOURCES += location.hh
|
||||
libnetconf_la_SOURCES += netconf_lexer.ll netconf_parser.yy
|
||||
libnetconf_la_SOURCES += netconf_messages.h netconf_messages.cc
|
||||
|
||||
EXTRA_DIST = netconf_messages.mes
|
||||
EXTRA_DIST += netconf_lexer.ll
|
||||
EXTRA_DIST += netconf_parser.yy
|
||||
|
||||
sbin_PROGRAMS = kea-netconf
|
||||
|
||||
kea_netconf_SOURCES = main.cc
|
||||
|
||||
kea_netconf_LDADD = libnetconf.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/yang/libkea-yang.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
kea_netconf_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
kea_netconf_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
kea_netconf_LDADD += $(LIBYANG_LIBS)
|
||||
kea_netconf_LDADD += $(LIBYANGCPP_LIBS)
|
||||
kea_netconf_LDADD += $(SYSREPO_LIBS)
|
||||
kea_netconf_LDADD += $(SYSREPOCPP_LIBS)
|
||||
|
||||
kea_netconfdir = $(pkgdatadir)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f netconf_messages.h netconf_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: netconf_messages.h netconf_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
netconf_messages.h netconf_messages.cc: netconf_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/bin/netconf/netconf_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages netconf_messages.h netconf_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
||||
if GENERATE_PARSER
|
||||
|
||||
# Generate parser first.
|
||||
all-recursive: netconf_lexer.cc location.hh netconf_parser.cc netconf_parser.h
|
||||
|
||||
parser: netconf_lexer.cc location.hh netconf_parser.cc netconf_parser.h
|
||||
@echo "Flex/bison files regenerated"
|
||||
|
||||
# --- Flex/Bison stuff below --------------------------------------------------
|
||||
# When debugging grammar issues, it's useful to add -v to bison parameters.
|
||||
# bison will generate parser.output file that explains the whole grammar.
|
||||
# It can be used to manually follow what's going on in the parser.
|
||||
# This is especially useful if yydebug_ is set to 1 as that variable
|
||||
# will cause parser to print out its internal state.
|
||||
# Call flex with -s to check that the default rule can be suppressed
|
||||
# Call bison with -W to get warnings like unmarked empty rules
|
||||
# Note C++11 deprecated register still used by flex < 2.6.0
|
||||
location.hh netconf_parser.cc netconf_parser.h: netconf_parser.yy
|
||||
$(YACC) -Wno-yacc --defines=netconf_parser.h --report=all \
|
||||
--report-file=netconf_parser.report -o netconf_parser.cc \
|
||||
netconf_parser.yy
|
||||
|
||||
netconf_lexer.cc: netconf_lexer.ll
|
||||
$(LEX) --prefix netconf_ -o netconf_lexer.cc netconf_lexer.ll
|
||||
|
||||
else
|
||||
|
||||
parser location.hh netconf_parser.cc netconf_parser.h netconf_lexer.cc:
|
||||
@echo Parser generation disabled. Configure with --enable-generate-parser to enable it.
|
||||
|
||||
endif
|
@ -1,94 +0,0 @@
|
||||
SUBDIRS = . shtests
|
||||
|
||||
EXTRA_DIST = testdata/get_config.json
|
||||
|
||||
AM_CPPFLAGS =
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
|
||||
AM_CPPFLAGS += -DCFG_EXAMPLES=\"$(abs_top_srcdir)/doc/examples/netconf\"
|
||||
AM_CPPFLAGS += -DKEATEST_MODULE
|
||||
AM_CPPFLAGS += -DSYNTAX_FILE=\"$(abs_srcdir)/../netconf_parser.yy\"
|
||||
AM_CPPFLAGS += -DTEST_DATA_SOURCEDIR=\"$(abs_top_srcdir)/src/bin/netconf/tests\"
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/bin/netconf/tests\"
|
||||
AM_CPPFLAGS += -DBASIC_CALLOUT_LIBRARY=\"$(abs_top_builddir)/src/bin/netconf/tests/.libs/libbasic.so\"
|
||||
AM_CPPFLAGS += -DNETCONF_HOOKS_TEST_PATH=\"$(abs_top_builddir)/src/bin/netconf/tests/.libs\"
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += $(LIBYANG_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(LIBYANG_INCLUDEDIR)
|
||||
AM_CPPFLAGS += $(LIBYANGCPP_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(LIBYANGCPP_INCLUDEDIR)
|
||||
AM_CPPFLAGS += $(SYSREPO_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(SYSREPO_INCLUDEDIR)
|
||||
AM_CPPFLAGS += $(SYSREPOCPP_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(SYSREPOCPP_INCLUDEDIR)
|
||||
|
||||
CLEANFILES = *.json *.log
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
|
||||
noinst_LTLIBRARIES = libbasic.la
|
||||
|
||||
TESTS += netconf_unittests
|
||||
|
||||
netconf_unittests_SOURCES = control_socket_unittests.cc
|
||||
netconf_unittests_SOURCES += get_config_unittest.cc
|
||||
netconf_unittests_SOURCES += netconf_cfg_mgr_unittests.cc
|
||||
netconf_unittests_SOURCES += netconf_controller_unittests.cc
|
||||
netconf_unittests_SOURCES += netconf_process_unittests.cc
|
||||
netconf_unittests_SOURCES += netconf_unittests.cc
|
||||
netconf_unittests_SOURCES += parser_unittests.cc
|
||||
netconf_unittests_SOURCES += run_unittests.cc
|
||||
|
||||
netconf_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
netconf_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
|
||||
netconf_unittests_LDADD = $(top_builddir)/src/bin/netconf/libnetconf.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/process/testutils/libprocesstest.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/yang/testutils/libyangtest.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/yang/libkea-yang.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
netconf_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
netconf_unittests_LDADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS)
|
||||
netconf_unittests_LDADD += $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
netconf_unittests_LDADD += $(LIBYANG_LIBS)
|
||||
netconf_unittests_LDADD += $(LIBYANGCPP_LIBS)
|
||||
netconf_unittests_LDADD += $(SYSREPO_LIBS)
|
||||
netconf_unittests_LDADD += $(SYSREPOCPP_LIBS)
|
||||
|
||||
# The basic callout library - contains standard callouts
|
||||
libbasic_la_SOURCES = basic_library.cc
|
||||
libbasic_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libbasic_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
libbasic_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libbasic_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libbasic_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libbasic_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
|
||||
|
||||
endif
|
||||
|
||||
noinst_EXTRA_DIST = configs-list.txt
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,19 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Shell tests
|
||||
SHTESTS = netconf_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(SHTESTS)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
# Run shell tests on "make check".
|
||||
check_SCRIPTS = $(SHTESTS)
|
||||
TESTS = $(SHTESTS)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install shell tests.
|
||||
noinst_SCRIPTS = $(SHTESTS)
|
@ -1,56 +0,0 @@
|
||||
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 = $(KEA_CXXFLAGS)
|
||||
|
||||
AM_LDFLAGS = -lm
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS += -static
|
||||
endif
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libperfdhcp.la
|
||||
|
||||
libperfdhcp_la_SOURCES =
|
||||
libperfdhcp_la_SOURCES += command_options.cc command_options.h
|
||||
libperfdhcp_la_SOURCES += localized_option.h
|
||||
libperfdhcp_la_SOURCES += perf_pkt6.cc perf_pkt6.h
|
||||
libperfdhcp_la_SOURCES += perf_pkt4.cc perf_pkt4.h
|
||||
libperfdhcp_la_SOURCES += packet_storage.h
|
||||
libperfdhcp_la_SOURCES += pkt_transform.cc pkt_transform.h
|
||||
libperfdhcp_la_SOURCES += rate_control.cc rate_control.h
|
||||
libperfdhcp_la_SOURCES += stats_mgr.cc stats_mgr.h
|
||||
libperfdhcp_la_SOURCES += test_control.cc test_control.h
|
||||
libperfdhcp_la_SOURCES += receiver.cc receiver.h
|
||||
libperfdhcp_la_SOURCES += perf_socket.cc perf_socket.h
|
||||
libperfdhcp_la_SOURCES += abstract_scen.h
|
||||
libperfdhcp_la_SOURCES += avalanche_scen.cc avalanche_scen.h
|
||||
libperfdhcp_la_SOURCES += basic_scen.cc basic_scen.h
|
||||
|
||||
sbin_PROGRAMS = perfdhcp
|
||||
perfdhcp_SOURCES = main.cc
|
||||
|
||||
perfdhcp_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS)
|
||||
|
||||
perfdhcp_LDADD = libperfdhcp.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
perfdhcp_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
perfdhcp_LDADD += $(CRYPTO_LIBS)
|
||||
perfdhcp_LDADD += $(BOOST_LIBS)
|
||||
perfdhcp_LDADD += $(PTHREAD_LDFLAGS)
|
||||
|
||||
# ... and the documentation
|
||||
EXTRA_DIST = perfdhcp_internals.dox
|
||||
|
@ -1,57 +0,0 @@
|
||||
SUBDIRS = . testdata
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/bin -I$(top_srcdir)/src/bin
|
||||
AM_CPPFLAGS += -I$(srcdir)/.. -I$(builddir)/..
|
||||
AM_CPPFLAGS += -DTEST_DATA_DIR=\"$(abs_srcdir)/testdata\"
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
# The test[1-5].hex are created by the TestControl.PacketTemplates
|
||||
# unit tests and have to be removed.
|
||||
CLEANFILES += test1.hex test2.hex test3.hex test4.hex test5.hex
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += run_unittests
|
||||
run_unittests_SOURCES = run_unittests.cc
|
||||
run_unittests_SOURCES += command_options_unittest.cc
|
||||
run_unittests_SOURCES += perf_pkt6_unittest.cc
|
||||
run_unittests_SOURCES += perf_pkt4_unittest.cc
|
||||
run_unittests_SOURCES += localized_option_unittest.cc
|
||||
run_unittests_SOURCES += packet_storage_unittest.cc
|
||||
run_unittests_SOURCES += rate_control_unittest.cc
|
||||
run_unittests_SOURCES += stats_mgr_unittest.cc
|
||||
run_unittests_SOURCES += test_control_unittest.cc
|
||||
run_unittests_SOURCES += receiver_unittest.cc
|
||||
run_unittests_SOURCES += perf_socket_unittest.cc
|
||||
run_unittests_SOURCES += basic_scen_unittest.cc
|
||||
run_unittests_SOURCES += avalanche_scen_unittest.cc
|
||||
run_unittests_SOURCES += command_options_helper.h
|
||||
|
||||
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
|
||||
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
run_unittests_LDADD = $(top_builddir)/src/bin/perfdhcp/libperfdhcp.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
run_unittests_LDADD += $(CRYPTO_LIBS) $(BOOST_LIBS) $(GTEST_LDADD)
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
5
src/bin/perfdhcp/tests/testdata/Makefile.am
vendored
5
src/bin/perfdhcp/tests/testdata/Makefile.am
vendored
@ -1,5 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
EXTRA_DIST = discover-example.hex request4-example.hex
|
||||
EXTRA_DIST += solicit-example.hex request6-example.hex
|
||||
EXTRA_DIST += mac-list.txt relay4-list.txt relay6-list.txt
|
@ -1,12 +0,0 @@
|
||||
SUBDIRS = . tests
|
||||
|
||||
pkgpython_PYTHON = kea_conn.py kea_connector3.py
|
||||
|
||||
sbin_SCRIPTS = kea-shell
|
||||
|
||||
CLEANFILES = *.pyc
|
||||
|
||||
CLEANDIRS = __pycache__
|
||||
|
||||
clean-local:
|
||||
rm -rf $(CLEANDIRS)
|
@ -1,37 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
# Needed by shell_unittest.py to access python modules like kea_conn.
|
||||
TESTS_ENVIRONMENT = PYTHONPATH="$(abs_top_srcdir)/src/bin/shell"
|
||||
|
||||
# Python tests
|
||||
PYTESTS = shell_unittest.py
|
||||
|
||||
# Shell tests
|
||||
SHTESTS =
|
||||
SHTESTS += ca_basic_auth_tests.sh
|
||||
SHTESTS += d2_basic_auth_tests.sh
|
||||
SHTESTS += dhcp4_basic_auth_tests.sh
|
||||
SHTESTS += dhcp6_basic_auth_tests.sh
|
||||
SHTESTS += shell_ca_process_tests.sh
|
||||
SHTESTS += shell_d2_process_tests.sh
|
||||
SHTESTS += shell_dhcp4_process_tests.sh
|
||||
SHTESTS += shell_dhcp6_process_tests.sh
|
||||
SHTESTS += tls_ca_process_tests.sh
|
||||
SHTESTS += tls_d2_process_tests.sh
|
||||
SHTESTS += tls_dhcp4_process_tests.sh
|
||||
SHTESTS += tls_dhcp6_process_tests.sh
|
||||
|
||||
# As with every file generated by ./configure, clean them up when running
|
||||
# "make distclean", but not on "make clean".
|
||||
DISTCLEANFILES = $(PYTESTS) $(SHTESTS)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
# Run tests on "make check".
|
||||
check_SCRIPTS = $(PYTESTS) $(SHTESTS)
|
||||
TESTS = $(PYTESTS) $(SHTESTS)
|
||||
|
||||
endif
|
||||
|
||||
# Don't install tests.
|
||||
noinst_SCRIPTS = $(PYTESTS) $(SHTESTS)
|
@ -1 +0,0 @@
|
||||
SUBDIRS = dhcp d2
|
@ -1,4 +0,0 @@
|
||||
SUBDIRS =
|
||||
if HAVE_GSSAPI
|
||||
SUBDIRS += gss_tsig
|
||||
endif
|
@ -1,97 +0,0 @@
|
||||
SUBDIRS = . testutils libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(GSSAPI_CFLAGS) $(BOOST_INCLUDES)
|
||||
AM_CPPFLAGS += $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = gss_tsig_messages.mes
|
||||
EXTRA_DIST += gss_tsig.dox Doxyfile
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
noinst_LTLIBRARIES = libgss_tsig.la
|
||||
|
||||
libgss_tsig_la_SOURCES = gss_tsig_callouts.cc
|
||||
libgss_tsig_la_SOURCES += gss_tsig_cfg.cc gss_tsig_cfg.h
|
||||
libgss_tsig_la_SOURCES += gss_tsig_context.cc gss_tsig_context.h
|
||||
libgss_tsig_la_SOURCES += gss_tsig_impl.cc gss_tsig_impl.h
|
||||
libgss_tsig_la_SOURCES += gss_tsig_key.cc gss_tsig_key.h
|
||||
libgss_tsig_la_SOURCES += gss_tsig_log.cc gss_tsig_log.h
|
||||
libgss_tsig_la_SOURCES += gss_tsig_messages.cc gss_tsig_messages.h
|
||||
libgss_tsig_la_SOURCES += gss_tsig_api.cc gss_tsig_api.h
|
||||
libgss_tsig_la_SOURCES += managed_key.cc managed_key.h
|
||||
libgss_tsig_la_SOURCES += tkey_exchange.cc tkey_exchange.h
|
||||
libgss_tsig_la_SOURCES += version.cc
|
||||
|
||||
libgss_tsig_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libgss_tsig_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libddns_gss_tsig.la
|
||||
|
||||
libddns_gss_tsig_la_SOURCES =
|
||||
|
||||
libddns_gss_tsig_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libddns_gss_tsig_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
|
||||
libddns_gss_tsig_la_LIBADD = libgss_tsig.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libddns_gss_tsig_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libddns_gss_tsig_la_LIBADD += $(GSSAPI_LIBS)
|
||||
libddns_gss_tsig_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libddns_gss_tsig_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libddns_gss_tsig_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f gss_tsig_messages.h gss_tsig_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: gss_tsig_messages.h gss_tsig_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
gss_tsig_messages.h gss_tsig_messages.cc: gss_tsig_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/d2/gss_tsig/gss_tsig_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages gss_tsig_messages.h gss_tsig_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,64 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/d2/gss_tsig -I$(top_srcdir)/src/hooks/d2/gss_tsig
|
||||
AM_CPPFLAGS += $(GSSAPI_CFLAGS) $(BOOST_INCLUDES)
|
||||
AM_CPPFLAGS += $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/d2/gss_tsig/libloadtests\"
|
||||
AM_CPPFLAGS += -DLIBDHCP_GSS_TSIG_SO=\"$(abs_top_builddir)/src/hooks/d2/gss_tsig/.libs/libddns_gss_tsig.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Some versions of GCC warn about some versions of Boost regarding
|
||||
# missing initializer for members in its posix_time.
|
||||
# https://svn.boost.org/trac/boost/ticket/3477
|
||||
# But older GCC compilers don't have the flag.
|
||||
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += libddns_gss_tsig_unittests
|
||||
|
||||
libddns_gss_tsig_unittests_SOURCES = run_unittests.cc
|
||||
libddns_gss_tsig_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
libddns_gss_tsig_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
libddns_gss_tsig_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
libddns_gss_tsig_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
libddns_gss_tsig_unittests_LDADD = $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libddns_gss_tsig_unittests_LDADD += $(GSSAPI_LIBS)
|
||||
libddns_gss_tsig_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
libddns_gss_tsig_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
libddns_gss_tsig_unittests_LDADD += $(BOOST_LIBS)
|
||||
libddns_gss_tsig_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,103 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/d2/gss_tsig -I$(top_srcdir)/src/hooks/d2/gss_tsig
|
||||
AM_CPPFLAGS += -DTEST_DATA_DIR=\"$(abs_srcdir)\"
|
||||
AM_CPPFLAGS += $(GSSAPI_CFLAGS) $(BOOST_INCLUDES)
|
||||
AM_CPPFLAGS += $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST = doc.txt administrator.ccache testdenied.ccache dns.keytab
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += gss_tsig_unittests
|
||||
|
||||
gss_tsig_unittests_SOURCES = run_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += dns_update_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_api_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_api_utils.h
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_callouts_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_cfg_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_context_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_impl_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += gss_tsig_key_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += managed_key_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += tkey_unittests.cc
|
||||
gss_tsig_unittests_SOURCES += tkey_exchange_unittests.cc
|
||||
|
||||
gss_tsig_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
gss_tsig_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
gss_tsig_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
gss_tsig_unittests_LDADD = $(top_builddir)/src/hooks/d2/gss_tsig/testutils/libgsstsigtest.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/hooks/d2/gss_tsig/libgss_tsig.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/d2srv/testutils/libd2srvtest.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dhcp/testutils/libdhcptest.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
gss_tsig_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
gss_tsig_unittests_LDADD += $(GSSAPI_LIBS)
|
||||
gss_tsig_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
gss_tsig_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
gss_tsig_unittests_LDADD += $(BOOST_LIBS)
|
||||
gss_tsig_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
nsupdate_SOURCES = nsupdate.cc
|
||||
|
||||
nsupdate_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
nsupdate_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
nsupdate_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
nsupdate_LDADD = $(top_builddir)/src/hooks/d2/gss_tsig/libgss_tsig.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
nsupdate_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
nsupdate_LDADD += $(GSSAPI_LIBS) $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS) nsupdate
|
||||
endif
|
||||
|
||||
# Heimdal requires restricted permissions on the credential cache files.
|
||||
check-recursive: pre-check-recursive
|
||||
|
||||
pre-check-recursive:
|
||||
chmod go-rw $(abs_srcdir)/administrator.ccache
|
||||
chmod go-rw $(abs_srcdir)/testdenied.ccache
|
||||
|
||||
.PHONY=pre-check-recursive
|
@ -1,27 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/d2/gss_tsig -I$(top_srcdir)/src/hooks/d2/gss_tsig
|
||||
AM_CPPFLAGS += -DTEST_DATA_DIR=\"$(abs_srcdir)\"
|
||||
AM_CPPFLAGS += $(GSSAPI_CFLAGS) $(BOOST_INCLUDES)
|
||||
AM_CPPFLAGS += $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
noinst_LTLIBRARIES = libgsstsigtest.la
|
||||
|
||||
libgsstsigtest_la_SOURCES = gss_tsig_dns_server.cc gss_tsig_dns_server.h
|
||||
|
||||
libgsstsigtest_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libgsstsigtest_la_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
libgsstsigtest_la_LIBADD = $(top_builddir)/src/lib/d2srv/libkea-d2srv.la
|
||||
|
||||
libgsstsigtest_la_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
endif
|
@ -1,11 +0,0 @@
|
||||
SUBDIRS = bootp class_cmds ddns_tuning flex_id flex_option high_availability host_cache host_cmds lease_cmds limits perfmon ping_check
|
||||
|
||||
if HAVE_MYSQL
|
||||
SUBDIRS += mysql
|
||||
endif
|
||||
|
||||
if HAVE_PGSQL
|
||||
SUBDIRS += pgsql
|
||||
endif
|
||||
|
||||
SUBDIRS += forensic_log lease_query radius run_script stat_cmds subnet_cmds user_chk
|
@ -1,82 +0,0 @@
|
||||
SUBDIRS = . tests libloadtests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file and doxygen file is included in the distribution
|
||||
EXTRA_DIST = bootp_messages.mes
|
||||
EXTRA_DIST += bootp.dox
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libbootp.la
|
||||
|
||||
libbootp_la_SOURCES = bootp_callouts.cc
|
||||
libbootp_la_SOURCES += bootp_log.cc bootp_log.h
|
||||
libbootp_la_SOURCES += bootp_messages.cc bootp_messages.h
|
||||
libbootp_la_SOURCES += version.cc
|
||||
|
||||
libbootp_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libbootp_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_bootp.la
|
||||
|
||||
libdhcp_bootp_la_SOURCES =
|
||||
libdhcp_bootp_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_bootp_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_bootp_la_LIBADD = libbootp.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_bootp_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_bootp_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_bootp_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_bootp_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f bootp_messages.h bootp_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: bootp_messages.h bootp_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
bootp_messages.h bootp_messages.cc: bootp_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/bootp/bootp_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages bootp_messages.h bootp_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
@ -1,55 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/bootp -I$(top_srcdir)/src/hooks/dhcp/bootp
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_BOOTP_SO=\"$(abs_top_builddir)/src/hooks/dhcp/bootp/.libs/libdhcp_bootp.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES =
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
hook_load_unittests_SOURCES += run_unittests.cc
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,56 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/bootp -I$(top_srcdir)/src/hooks/dhcp/bootp
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES)
|
||||
AM_CPPFLAGS += -DBOOTP_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/bootp/.libs/libdhcp_bootp.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += bootp_unittests
|
||||
|
||||
bootp_unittests_SOURCES = run_unittests.cc
|
||||
bootp_unittests_SOURCES += bootp_unittests.cc
|
||||
|
||||
bootp_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
bootp_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
bootp_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
bootp_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/bootp/libbootp.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
bootp_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
bootp_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
bootp_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
bootp_unittests_LDADD += $(BOOST_LIBS)
|
||||
bootp_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,92 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = class_cmds_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libclass_cmds.la
|
||||
|
||||
libclass_cmds_la_SOURCES = class_cmds.cc class_cmds.h
|
||||
libclass_cmds_la_SOURCES += class_cmds_callouts.cc
|
||||
libclass_cmds_la_SOURCES += class_cmds_log.cc class_cmds_log.h
|
||||
libclass_cmds_la_SOURCES += class_cmds_messages.cc class_cmds_messages.h
|
||||
libclass_cmds_la_SOURCES += version.cc
|
||||
|
||||
libclass_cmds_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libclass_cmds_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_class_cmds.la
|
||||
|
||||
libdhcp_class_cmds_la_SOURCES =
|
||||
libdhcp_class_cmds_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_class_cmds_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_class_cmds_la_LIBADD = libclass_cmds.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_class_cmds_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
|
||||
EXTRA_DIST += class_cmds.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f class_cmds_messages.h class_cmds_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: class_cmds_messages.h class_cmds_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
class_cmds_messages.h class_cmds_messages.cc: class_cmds_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/class_cmds/class_cmds_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages class_cmds_messages.h class_cmds_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,54 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/class_cmds -I$(top_srcdir)/src/hooks/dhcp/class_cmds
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_CLASS_CMDS_SO=\"$(abs_top_builddir)/src/hooks/dhcp/class_cmds/.libs/libdhcp_class_cmds.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES =
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
hook_load_unittests_SOURCES += run_unittests.cc
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,59 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/class_cmds -I$(top_srcdir)/src/hooks/dhcp/class_cmds
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/class_cmds/.libs/libdhcp_class_cmds.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += class_cmds_unittests
|
||||
|
||||
class_cmds_unittests_SOURCES = run_unittests.cc
|
||||
class_cmds_unittests_SOURCES += class_cmds_unittest.cc
|
||||
|
||||
class_cmds_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
class_cmds_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
class_cmds_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
class_cmds_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/class_cmds/libclass_cmds.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
class_cmds_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
|
||||
class_cmds_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
class_cmds_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
class_cmds_unittests_LDADD += $(BOOST_LIBS)
|
||||
class_cmds_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,98 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file and doxygen file is included in the distribution
|
||||
EXTRA_DIST = ddns_tuning_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libddns_tuning.la
|
||||
|
||||
libddns_tuning_la_SOURCES = ddns_tuning.cc ddns_tuning.h
|
||||
libddns_tuning_la_SOURCES += expression_cache.cc expression_cache.h
|
||||
libddns_tuning_la_SOURCES += ddns_tuning_callouts.cc
|
||||
libddns_tuning_la_SOURCES += ddns_tuning_log.cc ddns_tuning_log.h
|
||||
libddns_tuning_la_SOURCES += ddns_tuning_messages.cc ddns_tuning_messages.h
|
||||
libddns_tuning_la_SOURCES += version.cc
|
||||
|
||||
libddns_tuning_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libddns_tuning_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_ddns_tuning.la
|
||||
|
||||
libdhcp_ddns_tuning_la_SOURCES =
|
||||
libdhcp_ddns_tuning_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_ddns_tuning_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_ddns_tuning_la_LIBADD = libddns_tuning.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_ddns_tuning_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# Doxygen documentation
|
||||
EXTRA_DIST += ddns_tuning.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f ddns_tuning_messages.h ddns_tuning_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: ddns_tuning_messages.h ddns_tuning_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
ddns_tuning_messages.h ddns_tuning_messages.cc: ddns_tuning_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages ddns_tuning_messages.h ddns_tuning_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,61 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/ddns_tuning -I$(top_srcdir)/src/hooks/dhcp/ddns_tuning
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DDDNS_TUNING_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/ddns_tuning/.libs/libdhcp_ddns_tuning.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES = run_unittests.cc
|
||||
hook_load_unittests_SOURCES += callout6_unittests.cc callout4_unittests.cc callout_unittests.cc callout_unittests.h
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,62 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/ddns_tuning -I$(top_srcdir)/src/hooks/dhcp/ddns_tuning
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DDDNS_TUNING_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/ddns_tuning/.libs/libdhcp_ddns_tuning.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += ddns_tuning_unittests
|
||||
|
||||
ddns_tuning_unittests_SOURCES = run_unittests.cc
|
||||
ddns_tuning_unittests_SOURCES += ddns_tuning_unittests.cc
|
||||
ddns_tuning_unittests_SOURCES += expression_cache_unittests.cc
|
||||
|
||||
ddns_tuning_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
ddns_tuning_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
ddns_tuning_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
ddns_tuning_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/ddns_tuning/libddns_tuning.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
ddns_tuning_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
ddns_tuning_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
ddns_tuning_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
ddns_tuning_unittests_LDADD += $(BOOST_LIBS)
|
||||
ddns_tuning_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,99 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
flex_id_dir = @localstatedir@/lib/@PACKAGE@
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DFLEX_ID_DIR="\"$(flex_id_dir)\""
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
EXTRA_DIST = libdhcp_flex_id.dox
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST += flex_id_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libflexid.la
|
||||
|
||||
libflexid_la_SOURCES =
|
||||
libflexid_la_SOURCES += load_unload.cc
|
||||
libflexid_la_SOURCES += callouts.cc
|
||||
libflexid_la_SOURCES += flex_id.h
|
||||
libflexid_la_SOURCES += flex_id_log.cc flex_id_log.h
|
||||
libflexid_la_SOURCES += flex_id_messages.cc flex_id_messages.h
|
||||
libflexid_la_SOURCES += version.cc
|
||||
|
||||
libflexid_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libflexid_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_flex_id.la
|
||||
|
||||
libdhcp_flex_id_la_SOURCES =
|
||||
libdhcp_flex_id_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_flex_id_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_flex_id_la_LIBADD = libflexid.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_flex_id_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_flex_id_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_flex_id_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_flex_id_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# Doxygen documentation
|
||||
|
||||
EXTRA_DIST += libdhcp_flex_id.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f flex_id_messages.h flex_id_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: flex_id_messages.h flex_id_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
flex_id_messages.h flex_id_messages.cc: flex_id_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/flex_id/flex_id_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages flex_id_messages.h flex_id_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,58 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/flex_id -I$(top_srcdir)/src/hooks/dhcp/flex_id
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/flex_id/libloadtests\"
|
||||
AM_CPPFLAGS += -DLIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/flex_id/.libs/libdhcp_flex_id.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += flex_id_unittests
|
||||
|
||||
flex_id_unittests_SOURCES = run_unittests.cc
|
||||
flex_id_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
flex_id_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
flex_id_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
flex_id_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
flex_id_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
flex_id_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
flex_id_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
flex_id_unittests_LDADD += $(BOOST_LIBS)
|
||||
flex_id_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,59 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/flex_id -I$(top_srcdir)/src/hooks/dhcp/flex_id
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/flex_id/tests\"
|
||||
AM_CPPFLAGS += -DLIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/flex_id/.libs/libdhcp_flex_id.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += flex_id_unittests
|
||||
|
||||
flex_id_unittests_SOURCES = run_unittests.cc
|
||||
flex_id_unittests_SOURCES += callout_unittests.cc
|
||||
|
||||
flex_id_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
flex_id_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
flex_id_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
flex_id_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/flex_id/libflexid.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
flex_id_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
flex_id_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
flex_id_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
flex_id_unittests_LDADD += $(BOOST_LIBS)
|
||||
flex_id_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,88 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file and doxygen file is included in the distribution
|
||||
EXTRA_DIST = flex_option_messages.mes
|
||||
EXTRA_DIST += flex_option.dox
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libflex_option.la
|
||||
|
||||
libflex_option_la_SOURCES = flex_option.cc flex_option.h
|
||||
libflex_option_la_SOURCES += flex_option_callouts.cc
|
||||
libflex_option_la_SOURCES += flex_option_log.cc flex_option_log.h
|
||||
libflex_option_la_SOURCES += flex_option_messages.cc flex_option_messages.h
|
||||
libflex_option_la_SOURCES += version.cc
|
||||
|
||||
libflex_option_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libflex_option_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_flex_option.la
|
||||
|
||||
libdhcp_flex_option_la_SOURCES =
|
||||
libdhcp_flex_option_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_flex_option_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_flex_option_la_LIBADD = libflex_option.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_flex_option_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_flex_option_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_flex_option_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_flex_option_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f flex_option_messages.h flex_option_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: flex_option_messages.h flex_option_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
flex_option_messages.h flex_option_messages.cc: flex_option_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/flex_option/flex_option_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages flex_option_messages.h flex_option_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
@ -1,61 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/flex_option -I$(top_srcdir)/src/hooks/dhcp/flex_option
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DFLEX_OPTION_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/flex_option/.libs/libdhcp_flex_option.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += flex_option_unittests
|
||||
|
||||
flex_option_unittests_SOURCES = run_unittests.cc
|
||||
flex_option_unittests_SOURCES += callout_unittests.cc
|
||||
flex_option_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
flex_option_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
flex_option_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
flex_option_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
flex_option_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
flex_option_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
flex_option_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
flex_option_unittests_LDADD += $(BOOST_LIBS)
|
||||
flex_option_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,63 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/flex_option -I$(top_srcdir)/src/hooks/dhcp/flex_option
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DFLEX_OPTION_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/flex_option/.libs/libdhcp_flex_option.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += flex_option_unittests
|
||||
|
||||
flex_option_unittests_SOURCES = run_unittests.cc
|
||||
flex_option_unittests_SOURCES += test_flex_option.h
|
||||
flex_option_unittests_SOURCES += flex_option_unittests.cc
|
||||
flex_option_unittests_SOURCES += sub_option_unittests.cc
|
||||
|
||||
flex_option_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
flex_option_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
flex_option_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
flex_option_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/flex_option/libflex_option.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
flex_option_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
flex_option_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
flex_option_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
flex_option_unittests_LDADD += $(BOOST_LIBS)
|
||||
flex_option_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,108 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Some versions of GCC warn about some versions of Boost regarding
|
||||
# missing initializer for members in its posix_time.
|
||||
# https://svn.boost.org/trac/boost/ticket/3477
|
||||
# But older GCC compilers don't have the flag.
|
||||
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST += legal_log_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = liblegl.la
|
||||
|
||||
liblegl_la_SOURCES =
|
||||
liblegl_la_SOURCES += load_unload.cc
|
||||
liblegl_la_SOURCES += command_callouts.cc
|
||||
liblegl_la_SOURCES += lease4_callouts.cc
|
||||
liblegl_la_SOURCES += lease6_callouts.cc
|
||||
liblegl_la_SOURCES += legal_log_log.cc legal_log_log.h
|
||||
liblegl_la_SOURCES += legal_log_messages.cc legal_log_messages.h
|
||||
liblegl_la_SOURCES += legal_syslog.cc legal_syslog.h
|
||||
liblegl_la_SOURCES += rotating_file.cc rotating_file.h
|
||||
liblegl_la_SOURCES += subnets_user_context.h
|
||||
liblegl_la_SOURCES += version.cc
|
||||
|
||||
liblegl_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
liblegl_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_legal_log.la
|
||||
|
||||
libdhcp_legal_log_la_SOURCES =
|
||||
libdhcp_legal_log_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_legal_log_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_legal_log_la_LIBADD = liblegl.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_legal_log_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_legal_log_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_legal_log_la_LIBADD += $(BOOST_LIBS)
|
||||
libdhcp_legal_log_la_LIBADD += $(CRYPTO_LIBS)
|
||||
|
||||
# Doxygen documentation
|
||||
|
||||
EXTRA_DIST += libdhcp_legal_log.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f legal_log_messages.h legal_log_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: legal_log_messages.h legal_log_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
legal_log_messages.h legal_log_messages.cc: legal_log_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/forensic_log/legal_log_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages legal_log_messages.h legal_log_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,98 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src -I$(top_srcdir)/src
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/forensic_log -I$(top_srcdir)/src/hooks/dhcp/forensic_log
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/forensic_log/libloadtests\"
|
||||
AM_CPPFLAGS += -DLEGAL_LOG_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/forensic_log/.libs/libdhcp_legal_log.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
if HAVE_MYSQL
|
||||
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
|
||||
endif
|
||||
|
||||
if HAVE_PGSQL
|
||||
AM_CPPFLAGS += $(PGSQL_CPPFLAGS)
|
||||
endif
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Some versions of GCC warn about some versions of Boost regarding
|
||||
# missing initializer for members in its posix_time.
|
||||
# https://svn.boost.org/trac/boost/ticket/3477
|
||||
# But older GCC compilers don't have the flag.
|
||||
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += libdhcp_legal_log_unittests
|
||||
|
||||
libdhcp_legal_log_unittests_SOURCES = run_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
libdhcp_legal_log_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
libdhcp_legal_log_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
libdhcp_legal_log_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
libdhcp_legal_log_unittests_LDADD =
|
||||
|
||||
if HAVE_PGSQL
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/pgsql/libpgsql.la
|
||||
endif
|
||||
|
||||
if HAVE_MYSQL
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/mysql/libmysql.la
|
||||
endif
|
||||
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
|
||||
if HAVE_PGSQL
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/pgsql/testutils/libpgsqltest.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la
|
||||
endif
|
||||
|
||||
if HAVE_MYSQL
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/mysql/testutils/libmysqltest.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
endif
|
||||
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_legal_log_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
libdhcp_legal_log_unittests_LDADD += $(BOOST_LIBS)
|
||||
libdhcp_legal_log_unittests_LDADD += $(GTEST_LDADD)
|
||||
if HAVE_MYSQL
|
||||
libdhcp_legal_log_unittests_LDADD += $(MYSQL_LIBS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
libdhcp_legal_log_unittests_LDADD += $(PGSQL_LIBS)
|
||||
endif
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,71 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/forensic_log -I$(top_srcdir)/src/hooks/dhcp/forensic_log
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/forensic_log/tests\"
|
||||
AM_CPPFLAGS += -DFORENSIC_PREROTATE_TEST_SH=\"$(abs_top_builddir)/src/hooks/dhcp/forensic_log/tests/forensic_prerotate_test.sh\"
|
||||
AM_CPPFLAGS += -DINVALID_FORENSIC_PREROTATE_TEST_SH=\"$(abs_top_srcdir)/README\"
|
||||
AM_CPPFLAGS += -DFORENSIC_POSTROTATE_TEST_SH=\"$(abs_top_builddir)/src/hooks/dhcp/forensic_log/tests/forensic_postrotate_test.sh\"
|
||||
AM_CPPFLAGS += -DINVALID_FORENSIC_POSTROTATE_TEST_SH=\"$(abs_top_srcdir)/README\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Some versions of GCC warn about some versions of Boost regarding
|
||||
# missing initializer for members in its posix_time.
|
||||
# https://svn.boost.org/trac/boost/ticket/3477
|
||||
# But older GCC compilers don't have the flag.
|
||||
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += libdhcp_legal_log_unittests
|
||||
|
||||
libdhcp_legal_log_unittests_SOURCES = run_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += legal_log_mgr_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += command_log_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += legal_log4_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += legal_log6_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += rotating_file_unittests.cc
|
||||
libdhcp_legal_log_unittests_SOURCES += test_utils.h
|
||||
|
||||
libdhcp_legal_log_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
libdhcp_legal_log_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
libdhcp_legal_log_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
libdhcp_legal_log_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/forensic_log/liblegl.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/database/testutils/libdatabasetest.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_legal_log_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_legal_log_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
libdhcp_legal_log_unittests_LDADD += $(BOOST_LIBS)
|
||||
libdhcp_legal_log_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,97 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = ha_messages.mes
|
||||
EXTRA_DIST += ha.dox
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libha.la
|
||||
|
||||
libha_la_SOURCES = command_creator.cc command_creator.h
|
||||
libha_la_SOURCES += communication_state.cc communication_state.h
|
||||
libha_la_SOURCES += ha_callouts.cc
|
||||
libha_la_SOURCES += ha_config.cc ha_config.h
|
||||
libha_la_SOURCES += ha_config_parser.cc ha_config_parser.h
|
||||
libha_la_SOURCES += ha_impl.cc ha_impl.h
|
||||
libha_la_SOURCES += ha_log.cc ha_log.h
|
||||
libha_la_SOURCES += ha_messages.cc ha_messages.h
|
||||
libha_la_SOURCES += ha_relationship_mapper.h
|
||||
libha_la_SOURCES += ha_server_type.h
|
||||
libha_la_SOURCES += ha_service.cc ha_service.h
|
||||
libha_la_SOURCES += ha_service_states.cc ha_service_states.h
|
||||
libha_la_SOURCES += lease_sync_filter.cc lease_sync_filter.h
|
||||
libha_la_SOURCES += lease_update_backlog.cc lease_update_backlog.h
|
||||
libha_la_SOURCES += query_filter.cc query_filter.h
|
||||
libha_la_SOURCES += version.cc
|
||||
|
||||
libha_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libha_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_ha.la
|
||||
|
||||
libdhcp_ha_la_SOURCES =
|
||||
libdhcp_ha_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_ha_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
|
||||
libdhcp_ha_la_LIBADD = libha.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_ha_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f ha_messages.h ha_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: ha_messages.h ha_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
ha_messages.h ha_messages.cc: ha_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/high_availability/ha_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages ha_messages.h ha_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
@ -1,61 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/high_availability -I$(top_srcdir)/src/hooks/dhcp/high_availability
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_HA_SO=\"$(abs_top_builddir)/src/hooks/dhcp/high_availability/.libs/libdhcp_ha.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += ha_unittests
|
||||
|
||||
ha_unittests_SOURCES = run_unittests.cc
|
||||
ha_unittests_SOURCES += load_unload_unittests.cc
|
||||
ha_unittests_SOURCES += close_unittests.cc
|
||||
|
||||
ha_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
ha_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
ha_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
ha_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
ha_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
ha_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
ha_unittests_LDADD += $(BOOST_LIBS)
|
||||
ha_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,73 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/high_availability -I$(top_srcdir)/src/hooks/dhcp/high_availability
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_HA_SO=\"$(abs_top_builddir)/src/hooks/dhcp/high_availability/.libs/libdhcp_ha.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
TEST_CA_DIR = $(abs_top_srcdir)/src/lib/asiolink/testutils/ca
|
||||
AM_CPPFLAGS += -DTEST_CA_DIR=\"$(TEST_CA_DIR)\"
|
||||
TEST_HTTP_DIR = $(abs_top_srcdir)/src/lib/http/tests/testdata
|
||||
AM_CPPFLAGS += -DTEST_HTTP_DIR=\"$(TEST_HTTP_DIR)\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += ha_unittests
|
||||
|
||||
ha_unittests_SOURCES = command_creator_unittest.cc
|
||||
ha_unittests_SOURCES += communication_state_unittest.cc
|
||||
ha_unittests_SOURCES += ha_config_unittest.cc
|
||||
ha_unittests_SOURCES += ha_impl_unittest.cc
|
||||
ha_unittests_SOURCES += ha_service_unittest.cc
|
||||
ha_unittests_SOURCES += ha_test.cc ha_test.h
|
||||
ha_unittests_SOURCES += ha_mt_unittest.cc
|
||||
ha_unittests_SOURCES += ha_relationship_mapper_unittest.cc
|
||||
ha_unittests_SOURCES += lease_sync_filter_unittest.cc
|
||||
ha_unittests_SOURCES += lease_update_backlog_unittest.cc
|
||||
ha_unittests_SOURCES += query_filter_unittest.cc
|
||||
ha_unittests_SOURCES += run_unittests.cc
|
||||
|
||||
ha_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
ha_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
ha_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
ha_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/high_availability/libha.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
ha_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
ha_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
ha_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
ha_unittests_LDADD += $(BOOST_LIBS)
|
||||
ha_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,98 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = host_cache_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libhostcache.la
|
||||
|
||||
libhostcache_la_SOURCES =
|
||||
libhostcache_la_SOURCES += container.h entry.cc
|
||||
libhostcache_la_SOURCES += host_cache.cc host_cache.h
|
||||
libhostcache_la_SOURCES += host_cache_callout.cc
|
||||
libhostcache_la_SOURCES += host_cache_impl.cc host_cache_impl.h
|
||||
libhostcache_la_SOURCES += host_cache_log.cc host_cache_log.h
|
||||
libhostcache_la_SOURCES += host_cache_messages.cc host_cache_messages.h
|
||||
libhostcache_la_SOURCES += host_cache_parsers.cc host_cache_parsers.h
|
||||
libhostcache_la_SOURCES += version.cc
|
||||
|
||||
libhostcache_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libhostcache_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_host_cache.la
|
||||
|
||||
libdhcp_host_cache_la_SOURCES =
|
||||
libdhcp_host_cache_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_host_cache_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_host_cache_la_LIBADD = libhostcache.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_host_cache_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_host_cache_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_host_cache_la_LIBADD += $(BOOST_LIBS)
|
||||
libdhcp_host_cache_la_LIBADD += $(CRYPTO_LIBS)
|
||||
|
||||
# Doxygen documentation
|
||||
|
||||
EXTRA_DIST += host_cache.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f host_cache_messages.h host_cache_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: host_cache_messages.h host_cache_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
host_cache_messages.h host_cache_messages.cc: host_cache_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/host_cache/host_cache_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages host_cache_messages.h host_cache_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,56 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/host_cache -I$(top_srcdir)/src/hooks/dhcp/host_cache
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/host_cache/tests\"
|
||||
AM_CPPFLAGS += -DLIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/host_cache/.libs/libdhcp_host_cache.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += libdhcp_host_cache_unittests
|
||||
|
||||
libdhcp_host_cache_unittests_SOURCES = run_unittests.cc
|
||||
libdhcp_host_cache_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
libdhcp_host_cache_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
libdhcp_host_cache_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
libdhcp_host_cache_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
libdhcp_host_cache_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_host_cache_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_host_cache_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
libdhcp_host_cache_unittests_LDADD += $(BOOST_LIBS)
|
||||
libdhcp_host_cache_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,63 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/host_cache -I$(top_srcdir)/src/hooks/dhcp/host_cache
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/host_cache/tests\"
|
||||
AM_CPPFLAGS += -DLIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/host_cache/.libs/libdhcp_host_cache.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += host_cache_unittests
|
||||
|
||||
host_cache_unittests_SOURCES = run_unittests.cc
|
||||
host_cache_unittests_SOURCES += host_data_source_unittests.cc
|
||||
host_cache_unittests_SOURCES += cache_unittests.cc
|
||||
host_cache_unittests_SOURCES += command_unittests.cc
|
||||
|
||||
host_cache_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
host_cache_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
host_cache_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
host_cache_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/host_cache/libhostcache.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/database/testutils/libdatabasetest.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
host_cache_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
host_cache_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
host_cache_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
host_cache_unittests_LDADD += $(BOOST_LIBS)
|
||||
host_cache_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,93 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = host_cmds_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libhost_cmds.la
|
||||
|
||||
libhost_cmds_la_SOURCES = host_cmds.cc host_cmds.h
|
||||
libhost_cmds_la_SOURCES += host_cmds_callouts.cc
|
||||
libhost_cmds_la_SOURCES += host_data_parser.h
|
||||
libhost_cmds_la_SOURCES += host_cmds_log.cc host_cmds_log.h
|
||||
libhost_cmds_la_SOURCES += host_cmds_messages.cc host_cmds_messages.h
|
||||
libhost_cmds_la_SOURCES += version.cc
|
||||
|
||||
libhost_cmds_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libhost_cmds_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_host_cmds.la
|
||||
|
||||
libdhcp_host_cmds_la_SOURCES =
|
||||
libdhcp_host_cmds_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_host_cmds_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_host_cmds_la_LIBADD = libhost_cmds.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_host_cmds_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
|
||||
EXTRA_DIST += host_cmds.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f host_cmds_messages.h host_cmds_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: host_cmds_messages.h host_cmds_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
host_cmds_messages.h host_cmds_messages.cc: host_cmds_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/host_cmds/host_cmds_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages host_cmds_messages.h host_cmds_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,54 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/host_cmds -I$(top_srcdir)/src/hooks/dhcp/host_cmds
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_HOST_CMDS_SO=\"$(abs_top_builddir)/src/hooks/dhcp/host_cmds/.libs/libdhcp_host_cmds.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES =
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
hook_load_unittests_SOURCES += run_unittests.cc
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,56 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/host_cmds -I$(top_srcdir)/src/hooks/dhcp/host_cmds
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += host_cmds_unittests
|
||||
|
||||
host_cmds_unittests_SOURCES = run_unittests.cc
|
||||
host_cmds_unittests_SOURCES += host_cmds_unittest.cc
|
||||
host_cmds_unittests_SOURCES += host_data_parser_unittest.cc
|
||||
|
||||
host_cmds_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
host_cmds_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
host_cmds_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
host_cmds_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/host_cmds/libhost_cmds.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
host_cmds_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
host_cmds_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
host_cmds_unittests_LDADD += $(BOOST_LIBS)
|
||||
host_cmds_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
host_cmds_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,91 +0,0 @@
|
||||
SUBDIRS = . tests libloadtests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file and doxygen file is included in the distribution
|
||||
EXTRA_DIST = lease_cmds_messages.mes
|
||||
EXTRA_DIST += lease_cmds.dox
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = liblease_cmds.la
|
||||
|
||||
liblease_cmds_la_SOURCES = lease_cmds.cc lease_cmds.h
|
||||
liblease_cmds_la_SOURCES += lease_cmds_callouts.cc
|
||||
liblease_cmds_la_SOURCES += lease_cmds_exceptions.h
|
||||
liblease_cmds_la_SOURCES += lease_parser.h lease_parser.cc
|
||||
liblease_cmds_la_SOURCES += lease_cmds_log.cc lease_cmds_log.h
|
||||
liblease_cmds_la_SOURCES += lease_cmds_messages.cc lease_cmds_messages.h
|
||||
liblease_cmds_la_SOURCES += binding_variables.h binding_variables.cc
|
||||
liblease_cmds_la_SOURCES += version.cc
|
||||
|
||||
liblease_cmds_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
liblease_cmds_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_lease_cmds.la
|
||||
|
||||
libdhcp_lease_cmds_la_SOURCES =
|
||||
libdhcp_lease_cmds_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_lease_cmds_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_lease_cmds_la_LIBADD = liblease_cmds.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_lease_cmds_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_lease_cmds_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_lease_cmds_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f lease_cmds_messages.h lease_cmds_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: lease_cmds_messages.h lease_cmds_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
lease_cmds_messages.h lease_cmds_messages.cc: lease_cmds_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages lease_cmds_messages.h lease_cmds_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
@ -1,58 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/lease_cmds -I$(top_srcdir)/src/hooks/dhcp/lease_cmds
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_LEASE_CMDS_SO=\"$(abs_top_builddir)/src/hooks/dhcp/lease_cmds/.libs/libdhcp_lease_cmds.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES =
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
hook_load_unittests_SOURCES += lease_cmds_unittest.cc lease_cmds_unittest.h
|
||||
hook_load_unittests_SOURCES += lease_cmds4_unittest.cc
|
||||
hook_load_unittests_SOURCES += lease_cmds6_unittest.cc
|
||||
hook_load_unittests_SOURCES += run_unittests.cc
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,64 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/lease_cmds -I$(top_srcdir)/src/hooks/dhcp/lease_cmds
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += lease_cmds_unittests
|
||||
|
||||
lease_cmds_unittests_SOURCES = run_unittests.cc
|
||||
lease_cmds_unittests_SOURCES += binding_variables_unittest.cc
|
||||
lease_cmds_unittests_SOURCES += lease_cmds_func_unittest.h
|
||||
lease_cmds_unittests_SOURCES += lease_cmds_func4_unittest.cc
|
||||
lease_cmds_unittests_SOURCES += lease_cmds_func6_unittest.cc
|
||||
|
||||
lease_cmds_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
lease_cmds_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
lease_cmds_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
lease_cmds_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/lease_cmds/liblease_cmds.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
lease_cmds_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
lease_cmds_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
lease_cmds_unittests_LDADD += $(BOOST_LIBS)
|
||||
lease_cmds_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,107 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = lease_query_messages.mes
|
||||
EXTRA_DIST += lease_query.dox Doxyfile
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
noinst_LTLIBRARIES = liblease_query.la
|
||||
|
||||
liblease_query_la_SOURCES = lease_query_callouts.cc
|
||||
liblease_query_la_SOURCES += lease_query_connection.cc lease_query_connection.h
|
||||
liblease_query_la_SOURCES += lease_query_impl.cc lease_query_impl.h
|
||||
liblease_query_la_SOURCES += lease_query_impl_factory.cc lease_query_impl_factory.h
|
||||
liblease_query_la_SOURCES += lease_query_impl4.cc lease_query_impl4.h
|
||||
liblease_query_la_SOURCES += lease_query_impl6.cc lease_query_impl6.h
|
||||
liblease_query_la_SOURCES += lease_query_listener.h
|
||||
liblease_query_la_SOURCES += lease_query_log.cc lease_query_log.h
|
||||
liblease_query_la_SOURCES += lease_query_messages.cc lease_query_messages.h
|
||||
liblease_query_la_SOURCES += blq_msg.h
|
||||
liblease_query_la_SOURCES += bulk_lease_query.h
|
||||
liblease_query_la_SOURCES += bulk_lease_query4.cc bulk_lease_query4.h
|
||||
liblease_query_la_SOURCES += bulk_lease_query6.cc bulk_lease_query6.h
|
||||
liblease_query_la_SOURCES += blq_service.cc blq_service.h
|
||||
liblease_query_la_SOURCES += mt_lease_query_mgr.cc mt_lease_query_mgr.h
|
||||
liblease_query_la_SOURCES += version.cc
|
||||
|
||||
liblease_query_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
liblease_query_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_lease_query.la
|
||||
|
||||
libdhcp_lease_query_la_SOURCES =
|
||||
|
||||
libdhcp_lease_query_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_lease_query_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
|
||||
libdhcp_lease_query_la_LIBADD = liblease_query.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/tcp/libkea-tcp.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_lease_query_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_lease_query_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_lease_query_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_lease_query_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f lease_query_messages.h lease_query_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: lease_query_messages.h lease_query_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
lease_query_messages.h lease_query_messages.cc: lease_query_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/lease_query/lease_query_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages lease_query_messages.h lease_query_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,68 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/lease_query -I$(top_srcdir)/src/hooks/dhcp/lease_query
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/lease_query/libloadtests\"
|
||||
AM_CPPFLAGS += -DLIBDHCP_LEASE_QUERY_SO=\"$(abs_top_builddir)/src/hooks/dhcp/lease_query/.libs/libdhcp_lease_query.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Some versions of GCC warn about some versions of Boost regarding
|
||||
# missing initializer for members in its posix_time.
|
||||
# https://svn.boost.org/trac/boost/ticket/3477
|
||||
# But older GCC compilers don't have the flag.
|
||||
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += libdhcp_lease_query_unittests
|
||||
|
||||
libdhcp_lease_query_unittests_SOURCES = run_unittests.cc
|
||||
libdhcp_lease_query_unittests_SOURCES += load_unload_unittests.cc
|
||||
|
||||
libdhcp_lease_query_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
libdhcp_lease_query_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
libdhcp_lease_query_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
libdhcp_lease_query_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/tcp/libkea-tcp.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/database/testutils/libdatabasetest.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_lease_query_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_lease_query_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
libdhcp_lease_query_unittests_LDADD += $(BOOST_LIBS)
|
||||
libdhcp_lease_query_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,111 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS =
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src -I$(top_srcdir)/src
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/lease_query -I$(top_srcdir)/src/hooks/dhcp/lease_query
|
||||
if HAVE_MYSQL
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/mysql -I$(top_srcdir)/src/hooks/dhcp/mysql
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/pgsql -I$(top_srcdir)/src/hooks/dhcp/pgsql
|
||||
endif
|
||||
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/hooks/dhcp/lease_query/tests\"
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += lease_query_unittests
|
||||
|
||||
lease_query_unittests_SOURCES = run_unittests.cc
|
||||
lease_query_unittests_SOURCES += accept_filter4_unittest.cc
|
||||
lease_query_unittests_SOURCES += accept_filter6_unittest.cc
|
||||
lease_query_unittests_SOURCES += blq4_utils.h blq6_utils.h
|
||||
lease_query_unittests_SOURCES += bulk_lease_query4_unittest.cc
|
||||
lease_query_unittests_SOURCES += bulk_lease_query6_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query_impl4_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query_impl6_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query4_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query6_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query_connection_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query_listener4_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query_listener6_unittest.cc
|
||||
lease_query_unittests_SOURCES += lease_query_test_client.h
|
||||
lease_query_unittests_SOURCES += mt_lease_query_mgr4_unittest.cc
|
||||
lease_query_unittests_SOURCES += mt_lease_query_mgr6_unittest.cc
|
||||
lease_query_unittests_SOURCES += test_lease_mgr.h
|
||||
|
||||
lease_query_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
if HAVE_MYSQL
|
||||
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
AM_CPPFLAGS += $(PGSQL_CPPFLAGS)
|
||||
endif
|
||||
|
||||
lease_query_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
if HAVE_MYSQL
|
||||
lease_query_unittests_LDFLAGS += $(MYSQL_LIBS)
|
||||
endif
|
||||
if HAVE_PGSQL
|
||||
lease_query_unittests_LDFLAGS += $(PGSQL_LIBS)
|
||||
endif
|
||||
|
||||
lease_query_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
lease_query_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/lease_query/liblease_query.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/tcp/libkea-tcp.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcp/testutils/libdhcptest.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
|
||||
if HAVE_PGSQL
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/pgsql/libpgsql.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/pgsql/testutils/libpgsqltest.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la
|
||||
endif
|
||||
if HAVE_MYSQL
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/hooks/dhcp/mysql/libmysql.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/mysql/testutils/libmysqltest.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
endif
|
||||
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/asiolink/testutils/libasiolinktest.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
lease_query_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
lease_query_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
lease_query_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
lease_query_unittests_LDADD += $(BOOST_LIBS)
|
||||
lease_query_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,111 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
limits_dir = @localstatedir@/lib/@PACKAGE@
|
||||
|
||||
AM_CPPFLAGS =
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp -I$(top_srcdir)/src/hooks/dhcp
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
# Ensure that the message file is included in the distribution.
|
||||
EXTRA_DIST += limits_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# Internal library
|
||||
|
||||
noinst_LTLIBRARIES = liblimits.la
|
||||
|
||||
liblimits_la_SOURCES =
|
||||
liblimits_la_SOURCES += configuration.cc configuration.h
|
||||
liblimits_la_SOURCES += dhcpv4_callouts.cc
|
||||
liblimits_la_SOURCES += dhcpv6_callouts.cc
|
||||
liblimits_la_SOURCES += limits_logger.cc limits_logger.h
|
||||
liblimits_la_SOURCES += limits_messages.cc limits_messages.h
|
||||
liblimits_la_SOURCES += load_unload.cc
|
||||
liblimits_la_SOURCES += limit_manager.cc limit_manager.h
|
||||
liblimits_la_SOURCES += version.cc
|
||||
|
||||
liblimits_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
liblimits_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_limits.la
|
||||
|
||||
libdhcp_limits_la_SOURCES =
|
||||
libdhcp_limits_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_limits_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_limits_la_LIBADD = liblimits.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_limits_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_limits_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
|
||||
# Doxygen documentation
|
||||
|
||||
EXTRA_DIST += libdhcp_limits.dox Doxyfile
|
||||
|
||||
devel:
|
||||
mkdir -p html
|
||||
(cat Doxyfile; echo PROJECT_NUMBER=$(PACKAGE_VERSION)) | doxygen - > html/doxygen.log 2> html/doxygen-error.log
|
||||
echo `grep -i ": warning:" html/doxygen-error.log | wc -l` warnings/errors detected.
|
||||
|
||||
clean-local:
|
||||
rm -rf html
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f limits_messages.cc limits_messages.h
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: limits_messages.h limits_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
limits_messages.h limits_messages.cc: limits_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/limits/limits_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages limits_messages.h limits_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
@ -1,48 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp -I$(top_srcdir)/src/hooks/dhcp
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_LIMITS_SO=\"$(abs_top_builddir)/src/hooks/dhcp/limits/.libs/libdhcp_limits.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = limits_unit_tests_load_unload
|
||||
|
||||
limits_unit_tests_load_unload_SOURCES =
|
||||
limits_unit_tests_load_unload_SOURCES += limits_unit_tests_load_unload.cc
|
||||
limits_unit_tests_load_unload_SOURCES += limits_unit_tests_main.cc
|
||||
limits_unit_tests_load_unload_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
limits_unit_tests_load_unload_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
limits_unit_tests_load_unload_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
limits_unit_tests_load_unload_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
limits_unit_tests_load_unload_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
limits_unit_tests_load_unload_LDADD += $(LOG4CPLUS_LIBS)
|
||||
limits_unit_tests_load_unload_LDADD += $(CRYPTO_LIBS)
|
||||
limits_unit_tests_load_unload_LDADD += $(BOOST_LIBS)
|
||||
limits_unit_tests_load_unload_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,50 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp -I$(top_srcdir)/src/hooks/dhcp
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = limits_unit_tests
|
||||
|
||||
limits_unit_tests_SOURCES =
|
||||
limits_unit_tests_SOURCES += limits_unit_tests_lease_limiting.cc
|
||||
limits_unit_tests_SOURCES += limits_unit_tests_limit_manager.cc
|
||||
limits_unit_tests_SOURCES += limits_unit_tests_rate_limiting.cc
|
||||
limits_unit_tests_SOURCES += limits_unit_tests_main.cc
|
||||
limits_unit_tests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
limits_unit_tests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
limits_unit_tests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
limits_unit_tests_LDADD = $(top_builddir)/src/hooks/dhcp/limits/liblimits.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
limits_unit_tests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
limits_unit_tests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
limits_unit_tests_LDADD += $(CRYPTO_LIBS)
|
||||
limits_unit_tests_LDADD += $(BOOST_LIBS)
|
||||
limits_unit_tests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,125 +0,0 @@
|
||||
SUBDIRS = . tests libloadtests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(MYSQL_CPPFLAGS) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = mysql_cb_messages.mes
|
||||
EXTRA_DIST += mysql_fb_messages.mes
|
||||
EXTRA_DIST += mysql_hb_messages.mes
|
||||
EXTRA_DIST += mysql_lb_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libmysql.la
|
||||
|
||||
libmysql_la_SOURCES = mysql_callouts.cc
|
||||
libmysql_la_SOURCES += mysql_cb_dhcp4.cc mysql_cb_dhcp4.h
|
||||
libmysql_la_SOURCES += mysql_cb_dhcp6.cc mysql_cb_dhcp6.h
|
||||
libmysql_la_SOURCES += mysql_cb_impl.cc mysql_cb_impl.h
|
||||
libmysql_la_SOURCES += mysql_cb_messages.cc mysql_cb_messages.h
|
||||
libmysql_la_SOURCES += mysql_cb_log.cc mysql_cb_log.h
|
||||
libmysql_la_SOURCES += mysql_fb_messages.cc mysql_fb_messages.h
|
||||
libmysql_la_SOURCES += mysql_fb_log.cc mysql_fb_log.h
|
||||
libmysql_la_SOURCES += mysql_query_macros_dhcp.h
|
||||
libmysql_la_SOURCES += mysql_hb_log.cc mysql_hb_log.h
|
||||
libmysql_la_SOURCES += mysql_hb_messages.cc mysql_hb_messages.h
|
||||
libmysql_la_SOURCES += mysql_host_data_source.cc mysql_host_data_source.h
|
||||
libmysql_la_SOURCES += mysql_lb_log.cc mysql_lb_log.h
|
||||
libmysql_la_SOURCES += mysql_lb_messages.cc mysql_lb_messages.h
|
||||
libmysql_la_SOURCES += mysql_lease_mgr.cc mysql_lease_mgr.h
|
||||
libmysql_la_SOURCES += mysql_legal_log.cc mysql_legal_log.h
|
||||
libmysql_la_SOURCES += version.cc
|
||||
|
||||
libmysql_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libmysql_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_mysql.la
|
||||
|
||||
libdhcp_mysql_la_SOURCES =
|
||||
libdhcp_mysql_la_LDFLAGS = $(AM_LDFLAGS) $(MYSQL_LIBS)
|
||||
libdhcp_mysql_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
|
||||
libdhcp_mysql_la_LIBADD = libmysql.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_mysql_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_mysql_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_mysql_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_mysql_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f mysql_cb_messages.h mysql_cb_messages.cc
|
||||
rm -f mysql_fb_messages.h mysql_fb_messages.cc
|
||||
rm -f mysql_hb_messages.h mysql_hb_messages.cc
|
||||
rm -f mysql_lb_messages.h mysql_lb_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: mysql_cb_messages.h mysql_cb_messages.cc \
|
||||
mysql_fb_messages.h mysql_fb_messages.cc \
|
||||
mysql_hb_messages.h mysql_hb_messages.cc \
|
||||
mysql_lb_messages.h mysql_lb_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
mysql_cb_messages.h mysql_cb_messages.cc: mysql_cb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/mysql/mysql_cb_messages.mes)
|
||||
|
||||
mysql_fb_messages.h mysql_fb_messages.cc: mysql_fb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/mysql/mysql_fb_messages.mes)
|
||||
|
||||
mysql_hb_messages.h mysql_hb_messages.cc: mysql_hb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/mysql/mysql_hb_messages.mes)
|
||||
|
||||
mysql_lb_messages.h mysql_lb_messages.cc: mysql_lb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/mysql/mysql_lb_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages: mysql_cb_messages.h mysql_cb_messages.cc \
|
||||
mysql_fb_messages.h mysql_fb_messages.cc \
|
||||
mysql_hb_messages.h mysql_hb_messages.cc \
|
||||
mysql_lb_messages.h mysql_lb_messages.cc
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
@ -1,56 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/mysql -I$(top_srcdir)/src/hooks/dhcp/mysql
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(MYSQL_CPPFLAGS) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_MYSQL_SO=\"$(abs_top_builddir)/src/hooks/dhcp/mysql/.libs/libdhcp_mysql.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES =
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
hook_load_unittests_SOURCES += run_unittests.cc
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,72 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/mysql -I$(top_srcdir)/src/hooks/dhcp/mysql
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(MYSQL_CPPFLAGS) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
TEST_CA_DIR = $(top_srcdir)/src/lib/asiolink/testutils/ca
|
||||
AM_CPPFLAGS += -DTEST_CA_DIR=\"$(TEST_CA_DIR)\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += mysql_unittests
|
||||
|
||||
mysql_unittests_SOURCES = mysql_cb_impl_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_cb_dhcp4_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_cb_dhcp4_mgr_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_cb_dhcp6_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_cb_dhcp6_mgr_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_forensic_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_host_data_source_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_lease_mgr_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_lease_extended_info_unittest.cc
|
||||
mysql_unittests_SOURCES += mysql_bootp_unittest.cc
|
||||
mysql_unittests_SOURCES += run_unittests.cc
|
||||
|
||||
mysql_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
mysql_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
mysql_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
mysql_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/mysql/libmysql.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/mysql/testutils/libmysqltest.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/mysql/libkea-mysql.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
mysql_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
mysql_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
mysql_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
mysql_unittests_LDADD += $(BOOST_LIBS)
|
||||
mysql_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,93 +0,0 @@
|
||||
SUBDIRS = . libloadtests tests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file and doxygen file is included in the distribution
|
||||
EXTRA_DIST = perfmon_messages.mes
|
||||
EXTRA_DIST += perfmon.dox
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libperfmon.la
|
||||
|
||||
libperfmon_la_SOURCES = perfmon_callouts.cc
|
||||
libperfmon_la_SOURCES += perfmon_log.cc perfmon_log.h
|
||||
libperfmon_la_SOURCES += perfmon_messages.cc perfmon_messages.h
|
||||
libperfmon_la_SOURCES += monitored_duration.cc monitored_duration.h
|
||||
libperfmon_la_SOURCES += alarm.cc alarm.h
|
||||
libperfmon_la_SOURCES += monitored_duration_store.cc monitored_duration_store.h
|
||||
libperfmon_la_SOURCES += alarm_store.cc alarm_store.h
|
||||
libperfmon_la_SOURCES += perfmon_config.cc perfmon_config.h
|
||||
libperfmon_la_SOURCES += perfmon_mgr.cc perfmon_mgr.h
|
||||
libperfmon_la_SOURCES += version.cc
|
||||
|
||||
libperfmon_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libperfmon_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_perfmon.la
|
||||
|
||||
libdhcp_perfmon_la_SOURCES =
|
||||
libdhcp_perfmon_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libdhcp_perfmon_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
libdhcp_perfmon_la_LIBADD = libperfmon.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_perfmon_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_perfmon_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_perfmon_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_perfmon_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f perfmon_messages.h perfmon_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: perfmon_messages.h perfmon_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
perfmon_messages.h perfmon_messages.cc: perfmon_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/perfmon/perfmon_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages perfmon_messages.h perfmon_messages.cc:
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
@ -1,55 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/perfmon -I$(top_srcdir)/src/hooks/dhcp/perfmon
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DLIBDHCP_PERFMON_SO=\"$(abs_top_builddir)/src/hooks/dhcp/perfmon/.libs/libdhcp_perfmon.so\"
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
if HAVE_GTEST
|
||||
|
||||
TESTS = hook_load_unittests
|
||||
|
||||
hook_load_unittests_SOURCES =
|
||||
hook_load_unittests_SOURCES += load_unload_unittests.cc
|
||||
hook_load_unittests_SOURCES += run_unittests.cc
|
||||
hook_load_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
hook_load_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
hook_load_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
hook_load_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
hook_load_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
hook_load_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
hook_load_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
hook_load_unittests_LDADD += $(BOOST_LIBS)
|
||||
hook_load_unittests_LDADD += $(GTEST_LDADD)
|
||||
|
||||
noinst_PROGRAMS = $(TESTS)
|
||||
|
||||
endif
|
@ -1,66 +0,0 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += -I$(top_builddir)/src/hooks/dhcp/perfmon -I$(top_srcdir)/src/hooks/dhcp/perfmon
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CPPFLAGS += -DPERFMON_LIB_SO=\"$(abs_top_builddir)/src/hooks/dhcp/perfmon/.libs/libdhcp_perfmon.so\"
|
||||
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
|
||||
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
if USE_STATIC_LINK
|
||||
AM_LDFLAGS = -static
|
||||
endif
|
||||
|
||||
# Unit test data files need to get installed.
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
TESTS_ENVIRONMENT = $(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)
|
||||
|
||||
LOG_COMPILER = $(LIBTOOL)
|
||||
AM_LOG_FLAGS = --mode=execute
|
||||
|
||||
TESTS =
|
||||
if HAVE_GTEST
|
||||
TESTS += perfmon_unittests
|
||||
|
||||
perfmon_unittests_SOURCES = run_unittests.cc
|
||||
perfmon_unittests_SOURCES += monitored_duration_unittests.cc
|
||||
perfmon_unittests_SOURCES += alarm_unittests.cc
|
||||
perfmon_unittests_SOURCES += monitored_duration_store_unittests.cc
|
||||
perfmon_unittests_SOURCES += alarm_store_unittests.cc
|
||||
perfmon_unittests_SOURCES += perfmon_config_unittests.cc
|
||||
perfmon_unittests_SOURCES += perfmon_mgr_unittests.cc
|
||||
perfmon_unittests_SOURCES += perfmon_cmds_unittests.cc
|
||||
perfmon_unittests_SOURCES += duration_key_parser_unittests.cc
|
||||
perfmon_unittests_SOURCES += alarm_parser_unittests.cc
|
||||
|
||||
perfmon_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
|
||||
|
||||
perfmon_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||
|
||||
perfmon_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
|
||||
perfmon_unittests_LDADD = $(top_builddir)/src/hooks/dhcp/perfmon/libperfmon.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/testutils/libkea-testutils.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
perfmon_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
perfmon_unittests_LDADD += $(LOG4CPLUS_LIBS)
|
||||
perfmon_unittests_LDADD += $(CRYPTO_LIBS)
|
||||
perfmon_unittests_LDADD += $(BOOST_LIBS)
|
||||
perfmon_unittests_LDADD += $(GTEST_LDADD)
|
||||
endif
|
||||
noinst_PROGRAMS = $(TESTS)
|
@ -1,125 +0,0 @@
|
||||
SUBDIRS = . tests libloadtests
|
||||
|
||||
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||
AM_CPPFLAGS += $(BOOST_INCLUDES) $(PGSQL_CPPFLAGS) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
|
||||
AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
||||
|
||||
# Ensure that the message file is included in the distribution
|
||||
EXTRA_DIST = pgsql_cb_messages.mes
|
||||
EXTRA_DIST += pgsql_fb_messages.mes
|
||||
EXTRA_DIST += pgsql_hb_messages.mes
|
||||
EXTRA_DIST += pgsql_lb_messages.mes
|
||||
|
||||
CLEANFILES = *.gcno *.gcda
|
||||
|
||||
# convenience archive
|
||||
|
||||
noinst_LTLIBRARIES = libpgsql.la
|
||||
|
||||
libpgsql_la_SOURCES = pgsql_callouts.cc
|
||||
libpgsql_la_SOURCES += pgsql_cb_dhcp4.cc pgsql_cb_dhcp4.h
|
||||
libpgsql_la_SOURCES += pgsql_cb_dhcp6.cc pgsql_cb_dhcp6.h
|
||||
libpgsql_la_SOURCES += pgsql_cb_impl.cc pgsql_cb_impl.h
|
||||
libpgsql_la_SOURCES += pgsql_cb_messages.cc pgsql_cb_messages.h
|
||||
libpgsql_la_SOURCES += pgsql_cb_log.cc pgsql_cb_log.h
|
||||
libpgsql_la_SOURCES += pgsql_fb_messages.cc pgsql_fb_messages.h
|
||||
libpgsql_la_SOURCES += pgsql_fb_log.cc pgsql_fb_log.h
|
||||
libpgsql_la_SOURCES += pgsql_query_macros_dhcp.h
|
||||
libpgsql_la_SOURCES += pgsql_hb_log.cc pgsql_hb_log.h
|
||||
libpgsql_la_SOURCES += pgsql_hb_messages.cc pgsql_hb_messages.h
|
||||
libpgsql_la_SOURCES += pgsql_host_data_source.cc pgsql_host_data_source.h
|
||||
libpgsql_la_SOURCES += pgsql_lb_log.cc pgsql_lb_log.h
|
||||
libpgsql_la_SOURCES += pgsql_lb_messages.cc pgsql_lb_messages.h
|
||||
libpgsql_la_SOURCES += pgsql_lease_mgr.cc pgsql_lease_mgr.h
|
||||
libpgsql_la_SOURCES += pgsql_legal_log.cc pgsql_legal_log.h
|
||||
libpgsql_la_SOURCES += version.cc
|
||||
|
||||
libpgsql_la_CXXFLAGS = $(AM_CXXFLAGS)
|
||||
libpgsql_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
# install the shared object into $(libdir)/kea/hooks
|
||||
lib_hooksdir = $(libdir)/kea/hooks
|
||||
lib_hooks_LTLIBRARIES = libdhcp_pgsql.la
|
||||
|
||||
libdhcp_pgsql_la_SOURCES =
|
||||
libdhcp_pgsql_la_LDFLAGS = $(AM_LDFLAGS) $(PGSQL_LIBS)
|
||||
libdhcp_pgsql_la_LDFLAGS += -avoid-version -export-dynamic -module
|
||||
|
||||
libdhcp_pgsql_la_LIBADD = libpgsql.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/process/libkea-process.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/eval/libkea-eval.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/stats/libkea-stats.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/http/libkea-http.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/pgsql/libkea-pgsql.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/database/libkea-database.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
|
||||
libdhcp_pgsql_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
|
||||
libdhcp_pgsql_la_LIBADD += $(LOG4CPLUS_LIBS)
|
||||
libdhcp_pgsql_la_LIBADD += $(CRYPTO_LIBS)
|
||||
libdhcp_pgsql_la_LIBADD += $(BOOST_LIBS)
|
||||
|
||||
# If we want to get rid of all generated messages files, we need to use
|
||||
# make maintainer-clean. The proper way to introduce custom commands for
|
||||
# that operation is to define maintainer-clean-local target. However,
|
||||
# make maintainer-clean also removes Makefile, so running configure script
|
||||
# is required. To make it easy to rebuild messages without going through
|
||||
# reconfigure, a new target messages-clean has been added.
|
||||
maintainer-clean-local:
|
||||
rm -f pgsql_cb_messages.h pgsql_cb_messages.cc
|
||||
rm -f pgsql_fb_messages.h pgsql_fb_messages.cc
|
||||
rm -f pgsql_hb_messages.h pgsql_hb_messages.cc
|
||||
rm -f pgsql_lb_messages.h pgsql_lb_messages.cc
|
||||
|
||||
# To regenerate messages files, one can do:
|
||||
#
|
||||
# make messages-clean
|
||||
# make messages
|
||||
#
|
||||
# This is needed only when a .mes file is modified.
|
||||
messages-clean: maintainer-clean-local
|
||||
|
||||
if GENERATE_MESSAGES
|
||||
|
||||
# Define rule to build logging source files from message file
|
||||
messages: pgsql_cb_messages.h pgsql_cb_messages.cc \
|
||||
pgsql_fb_messages.h pgsql_fb_messages.cc \
|
||||
pgsql_hb_messages.h pgsql_hb_messages.cc \
|
||||
pgsql_lb_messages.h pgsql_lb_messages.cc
|
||||
@echo Message files regenerated
|
||||
|
||||
pgsql_cb_messages.h pgsql_cb_messages.cc: pgsql_cb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/pgsql/pgsql_cb_messages.mes)
|
||||
|
||||
pgsql_fb_messages.h pgsql_fb_messages.cc: pgsql_fb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/pgsql/pgsql_fb_messages.mes)
|
||||
|
||||
pgsql_hb_messages.h pgsql_hb_messages.cc: pgsql_hb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/pgsql/pgsql_hb_messages.mes)
|
||||
|
||||
pgsql_lb_messages.h pgsql_lb_messages.cc: pgsql_lb_messages.mes
|
||||
(cd $(top_srcdir); \
|
||||
$(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/pgsql/pgsql_lb_messages.mes)
|
||||
|
||||
else
|
||||
|
||||
messages: pgsql_cb_messages.h pgsql_cb_messages.cc \
|
||||
pgsql_fb_messages.h pgsql_fb_messages.cc \
|
||||
pgsql_hb_messages.h pgsql_hb_messages.cc \
|
||||
pgsql_lb_messages.h pgsql_lb_messages.cc
|
||||
@echo Messages generation disabled. Configure with --enable-generate-messages to enable it.
|
||||
|
||||
endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user