Makefile.am 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. # Include developer's guide files
  21. EXTRA_DIST += hooks_user.dox hooks_maintenance.dox hooks_component_developer.dox
  22. # Include images used in Developer's guide
  23. EXTRA_DIST += images/DataScopeArgument.dia images/DataScopeArgument.png
  24. EXTRA_DIST += images/DataScopeContext.dia images/DataScopeContext.png
  25. EXTRA_DIST += images/HooksUml.dia images/HooksUml.png
  26. # Get rid of generated message files on a clean
  27. CLEANFILES = *.gcno *.gcda hooks_messages.h hooks_messages.cc s-messages
  28. lib_LTLIBRARIES = libkea-hooks.la
  29. libkea_hooks_la_SOURCES =
  30. libkea_hooks_la_SOURCES += callout_handle.cc callout_handle.h
  31. libkea_hooks_la_SOURCES += callout_manager.cc callout_manager.h
  32. libkea_hooks_la_SOURCES += hooks_log.cc hooks_log.h
  33. libkea_hooks_la_SOURCES += hooks_manager.cc hooks_manager.h
  34. libkea_hooks_la_SOURCES += library_handle.cc library_handle.h
  35. libkea_hooks_la_SOURCES += library_manager.cc library_manager.h
  36. libkea_hooks_la_SOURCES += library_manager_collection.cc library_manager_collection.h
  37. libkea_hooks_la_SOURCES += pointer_converter.h
  38. libkea_hooks_la_SOURCES += server_hooks.cc server_hooks.h
  39. nodist_libkea_hooks_la_SOURCES = hooks_messages.cc hooks_messages.h
  40. libkea_hooks_la_CXXFLAGS = $(AM_CXXFLAGS)
  41. libkea_hooks_la_CPPFLAGS = $(AM_CPPFLAGS)
  42. libkea_hooks_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 1:0:0
  43. libkea_hooks_la_LIBADD =
  44. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
  45. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/util/threads/libkea-threads.la
  46. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
  47. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  48. libkea_hooks_la_LIBADD += $(LOG4CPLUS_LIBS)
  49. # Specify the headers for copying into the installation directory tree. User-
  50. # written libraries only need the definitions from the headers for the
  51. # CalloutHandle and LibraryHandle objects. CalloutManager may be required by
  52. # users testing statically linked KEA binaries.
  53. libkea_hooks_includedir = $(pkgincludedir)/hooks
  54. libkea_hooks_include_HEADERS = \
  55. callout_handle.h \
  56. callout_manager.h \
  57. library_handle.h \
  58. hooks.h \
  59. server_hooks.h
  60. if USE_CLANGPP
  61. # Disable unused parameter warning caused by some of the
  62. # Boost headers when compiling with clang.
  63. libkea_hooks_la_CXXFLAGS += -Wno-unused-parameter
  64. endif