Makefile.am 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES)
  4. AM_CXXFLAGS = $(KEA_CXXFLAGS)
  5. # Some versions of GCC warn about some versions of Boost regarding
  6. # missing initializer for members in its posix_time.
  7. # https://svn.boost.org/trac/boost/ticket/3477
  8. # But older GCC compilers don't have the flag.
  9. AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
  10. # Define rule to build logging source files from message file
  11. hooks_messages.h hooks_messages.cc: s-messages
  12. s-messages: hooks_messages.mes
  13. $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/hooks/hooks_messages.mes
  14. touch $@
  15. # Tell automake that the message files are built as part of the build process
  16. # (so that they are built before the main library is built).
  17. BUILT_SOURCES = hooks_messages.h hooks_messages.cc
  18. # Ensure that the message file is included in the distribution
  19. EXTRA_DIST = hooks_messages.mes
  20. # Get rid of generated message files on a clean
  21. CLEANFILES = *.gcno *.gcda hooks_messages.h hooks_messages.cc s-messages
  22. lib_LTLIBRARIES = libkea-hooks.la
  23. libkea_hooks_la_SOURCES =
  24. libkea_hooks_la_SOURCES += callout_handle.cc callout_handle.h
  25. libkea_hooks_la_SOURCES += callout_manager.cc callout_manager.h
  26. libkea_hooks_la_SOURCES += hooks.h hooks.cc
  27. libkea_hooks_la_SOURCES += hooks_log.cc hooks_log.h
  28. libkea_hooks_la_SOURCES += hooks_manager.cc hooks_manager.h
  29. libkea_hooks_la_SOURCES += library_handle.cc library_handle.h
  30. libkea_hooks_la_SOURCES += library_manager.cc library_manager.h
  31. libkea_hooks_la_SOURCES += library_manager_collection.cc library_manager_collection.h
  32. libkea_hooks_la_SOURCES += pointer_converter.h
  33. libkea_hooks_la_SOURCES += server_hooks.cc server_hooks.h
  34. nodist_libkea_hooks_la_SOURCES = hooks_messages.cc hooks_messages.h
  35. libkea_hooks_la_CXXFLAGS = $(AM_CXXFLAGS)
  36. libkea_hooks_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
  37. libkea_hooks_la_LDFLAGS = $(AM_LDFLAGS)
  38. libkea_hooks_la_LIBADD =
  39. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
  40. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
  41. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  42. # Specify the headers for copying into the installation directory tree. User-
  43. # written libraries only need the definitions from the headers for the
  44. # CalloutHandle and LibraryHandle objects. CalloutManager may be required by
  45. # users testing statically linked KEA binaries.
  46. libkea_hooks_includedir = $(pkgincludedir)/hooks
  47. libkea_hooks_include_HEADERS = \
  48. callout_handle.h \
  49. callout_manager.h \
  50. library_handle.h \
  51. hooks.h \
  52. server_hooks.h
  53. if USE_CLANGPP
  54. # Disable unused parameter warning caused by some of the
  55. # Boost headers when compiling with clang.
  56. libkea_hooks_la_CXXFLAGS += -Wno-unused-parameter
  57. endif