Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. # Define rule to build logging source files from message file
  6. hooks_messages.h hooks_messages.cc: s-messages
  7. s-messages: hooks_messages.mes
  8. $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/lib/hooks/hooks_messages.mes
  9. touch $@
  10. # Tell automake that the message files are built as part of the build process
  11. # (so that they are built before the main library is built).
  12. BUILT_SOURCES = hooks_messages.h hooks_messages.cc
  13. # Ensure that the message file is included in the distribution
  14. EXTRA_DIST = hooks_messages.mes
  15. # Include developer's guide files
  16. EXTRA_DIST += hooks_user.dox hooks_maintenance.dox hooks_component_developer.dox
  17. # Include images used in Developer's guide
  18. EXTRA_DIST += images/DataScopeArgument.dia images/DataScopeArgument.png
  19. EXTRA_DIST += images/DataScopeContext.dia images/DataScopeContext.png
  20. EXTRA_DIST += images/HooksUml.dia images/HooksUml.png
  21. # Get rid of generated message files on a clean
  22. CLEANFILES = *.gcno *.gcda hooks_messages.h hooks_messages.cc s-messages
  23. lib_LTLIBRARIES = libkea-hooks.la
  24. libkea_hooks_la_SOURCES =
  25. libkea_hooks_la_SOURCES += callout_handle.cc callout_handle.h
  26. libkea_hooks_la_SOURCES += callout_manager.cc callout_manager.h
  27. libkea_hooks_la_SOURCES += hooks.h
  28. libkea_hooks_la_SOURCES += hooks_log.cc hooks_log.h
  29. libkea_hooks_la_SOURCES += hooks_manager.cc hooks_manager.h
  30. libkea_hooks_la_SOURCES += libinfo.cc libinfo.h
  31. libkea_hooks_la_SOURCES += library_handle.cc library_handle.h
  32. libkea_hooks_la_SOURCES += library_manager.cc library_manager.h
  33. libkea_hooks_la_SOURCES += library_manager_collection.cc library_manager_collection.h
  34. libkea_hooks_la_SOURCES += pointer_converter.h
  35. libkea_hooks_la_SOURCES += server_hooks.cc server_hooks.h
  36. nodist_libkea_hooks_la_SOURCES = hooks_messages.cc hooks_messages.h
  37. libkea_hooks_la_CXXFLAGS = $(AM_CXXFLAGS)
  38. libkea_hooks_la_CPPFLAGS = $(AM_CPPFLAGS)
  39. libkea_hooks_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 1:0:0
  40. libkea_hooks_la_LIBADD =
  41. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
  42. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/util/threads/libkea-threads.la
  43. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
  44. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
  45. libkea_hooks_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  46. libkea_hooks_la_LIBADD += $(LOG4CPLUS_LIBS)
  47. # Specify the headers for copying into the installation directory tree. User-
  48. # written libraries only need the definitions from the headers for the
  49. # CalloutHandle and LibraryHandle objects. CalloutManager may be required by
  50. # users testing statically linked KEA binaries.
  51. libkea_hooks_includedir = $(pkgincludedir)/hooks
  52. libkea_hooks_include_HEADERS = \
  53. callout_handle.h \
  54. callout_manager.h \
  55. library_handle.h \
  56. hooks.h \
  57. server_hooks.h