diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:36:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:36:04 +0000 |
commit | 040eee1aa49b49df4698d83a05af57c220127fd1 (patch) | |
tree | f635435954e6ccde5eee9893889e24f30ca68346 /src/hooks/dhcp/user_chk/Makefile.am | |
parent | Initial commit. (diff) | |
download | isc-kea-040eee1aa49b49df4698d83a05af57c220127fd1.tar.xz isc-kea-040eee1aa49b49df4698d83a05af57c220127fd1.zip |
Adding upstream version 2.2.0.upstream/2.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/hooks/dhcp/user_chk/Makefile.am')
-rw-r--r-- | src/hooks/dhcp/user_chk/Makefile.am | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/hooks/dhcp/user_chk/Makefile.am b/src/hooks/dhcp/user_chk/Makefile.am new file mode 100644 index 0000000..a88fb62 --- /dev/null +++ b/src/hooks/dhcp/user_chk/Makefile.am @@ -0,0 +1,81 @@ +SUBDIRS = . tests + +AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib +AM_CPPFLAGS += $(BOOST_INCLUDES) +AM_CXXFLAGS = $(KEA_CXXFLAGS) + +EXTRA_DIST = libdhcp_user_chk.dox +# Ensure that the message file is included in the distribution +EXTRA_DIST += user_chk_messages.mes + +CLEANFILES = *.gcno *.gcda + +# convenience archive + +noinst_LTLIBRARIES = libduc.la + +libduc_la_SOURCES = +libduc_la_SOURCES += load_unload.cc +libduc_la_SOURCES += pkt_receive_co.cc +libduc_la_SOURCES += pkt_send_co.cc +libduc_la_SOURCES += subnet_select_co.cc +libduc_la_SOURCES += user.cc user.h +libduc_la_SOURCES += user_chk.h +libduc_la_SOURCES += user_chk_log.cc user_chk_log.h +libduc_la_SOURCES += user_chk_messages.cc user_chk_messages.h +libduc_la_SOURCES += user_data_source.h +libduc_la_SOURCES += user_file.cc user_file.h +libduc_la_SOURCES += user_registry.cc user_registry.h +libduc_la_SOURCES += version.cc + +libduc_la_CXXFLAGS = $(AM_CXXFLAGS) +libduc_la_CPPFLAGS = $(AM_CPPFLAGS) + +noinst_LTLIBRARIES += libdhcp_user_chk.la + +libdhcp_user_chk_la_SOURCES = +libdhcp_user_chk_la_LDFLAGS = $(AM_LDFLAGS) +libdhcp_user_chk_la_LDFLAGS += -avoid-version -export-dynamic -module +# -rpath /nowhere is a hack to trigger libtool to not create a +# convenience archive, resulting in shared modules +libdhcp_user_chk_la_LDFLAGS += -rpath /nowhere +libdhcp_user_chk_la_LIBADD = libduc.la +libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la +libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la +libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la +libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la +libdhcp_user_chk_la_LIBADD += $(LOG4CPLUS_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 user_chk_messages.h user_chk_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: user_chk_messages.h user_chk_messages.cc + @echo Message files regenerated + +user_chk_messages.h user_chk_messages.cc: user_chk_messages.mes + $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/user_chk/user_chk_messages.mes + +else + +messages user_chk_messages.h user_chk_messages.cc: + @echo Messages generation disabled. Configure with --enable-generate-messages to enable it. + +endif + |