diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:15:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:15:43 +0000 |
commit | f5f56e1a1c4d9e9496fcb9d81131066a964ccd23 (patch) | |
tree | 49e44c6f87febed37efb953ab5485aa49f6481a7 /src/bin/netconf/Makefile.am | |
parent | Initial commit. (diff) | |
download | isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.tar.xz isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.zip |
Adding upstream version 2.4.1.upstream/2.4.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/bin/netconf/Makefile.am')
-rw-r--r-- | src/bin/netconf/Makefile.am | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/src/bin/netconf/Makefile.am b/src/bin/netconf/Makefile.am new file mode 100644 index 0000000..5f82d72 --- /dev/null +++ b/src/bin/netconf/Makefile.am @@ -0,0 +1,138 @@ +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 + $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/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 |