|
@@ -8,6 +8,18 @@ endif
|
|
|
|
|
|
AM_CXXFLAGS = $(B10_CXXFLAGS)
|
|
AM_CXXFLAGS = $(B10_CXXFLAGS)
|
|
|
|
|
|
|
|
+# Define rule to build logging source files from message file
|
|
|
|
+dhcpsrv_messages.h dhcpsrv_messages.cc: dhcpsrv_messages.mes
|
|
|
|
+ $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/dhcpsrv/dhcpsrv_messages.mes
|
|
|
|
+
|
|
|
|
+# Tell Automake that the nsas_messages.{cc,h} source files are created in the build
|
|
|
|
+# process, so it must create these before doing anything else. Although they
|
|
|
|
+# are a dependency of the library (so will be created from the message file
|
|
|
|
+# anyway), there is no guarantee as to exactly _when_ in the build they will be
|
|
|
|
+# created. As the .h file is included in other sources file (so must be
|
|
|
|
+# present when they are compiled), the safest option is to create it first.
|
|
|
|
+BUILT_SOURCES = dhcpsrv_messages.h dhcpsrv_messages.cc
|
|
|
|
+
|
|
# Some versions of GCC warn about some versions of Boost regarding
|
|
# Some versions of GCC warn about some versions of Boost regarding
|
|
# missing initializer for members in its posix_time.
|
|
# missing initializer for members in its posix_time.
|
|
# https://svn.boost.org/trac/boost/ticket/3477
|
|
# https://svn.boost.org/trac/boost/ticket/3477
|
|
@@ -20,6 +32,7 @@ lib_LTLIBRARIES = libb10-dhcpsrv.la
|
|
libb10_dhcpsrv_la_SOURCES =
|
|
libb10_dhcpsrv_la_SOURCES =
|
|
libb10_dhcpsrv_la_SOURCES += addr_utilities.cc addr_utilities.h
|
|
libb10_dhcpsrv_la_SOURCES += addr_utilities.cc addr_utilities.h
|
|
libb10_dhcpsrv_la_SOURCES += alloc_engine.cc alloc_engine.h
|
|
libb10_dhcpsrv_la_SOURCES += alloc_engine.cc alloc_engine.h
|
|
|
|
+libb10_dhcpsrv_la_SOURCES += dhcpsrv_log.cc dhcpsrv_log.h
|
|
libb10_dhcpsrv_la_SOURCES += cfgmgr.cc cfgmgr.h
|
|
libb10_dhcpsrv_la_SOURCES += cfgmgr.cc cfgmgr.h
|
|
libb10_dhcpsrv_la_SOURCES += lease_mgr.cc lease_mgr.h
|
|
libb10_dhcpsrv_la_SOURCES += lease_mgr.cc lease_mgr.h
|
|
libb10_dhcpsrv_la_SOURCES += lease_mgr_factory.cc lease_mgr_factory.h
|
|
libb10_dhcpsrv_la_SOURCES += lease_mgr_factory.cc lease_mgr_factory.h
|
|
@@ -31,6 +44,8 @@ libb10_dhcpsrv_la_SOURCES += pool.cc pool.h
|
|
libb10_dhcpsrv_la_SOURCES += subnet.cc subnet.h
|
|
libb10_dhcpsrv_la_SOURCES += subnet.cc subnet.h
|
|
libb10_dhcpsrv_la_SOURCES += triplet.h
|
|
libb10_dhcpsrv_la_SOURCES += triplet.h
|
|
|
|
|
|
|
|
+nodist_libb10_dhcpsrv_la_SOURCES = dhcpsrv_messages.h dhcpsrv_messages.cc
|
|
|
|
+
|
|
libb10_dhcpsrv_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
libb10_dhcpsrv_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
libb10_dhcpsrv_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
|
|
libb10_dhcpsrv_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
|
|
libb10_dhcpsrv_la_LIBADD = $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
|
|
libb10_dhcpsrv_la_LIBADD = $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
|