Makefile.am 3.0 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 = $(B10_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. # Until logging in dynamically loaded libraries is fixed,
  11. # Define rule to build logging source files from message file
  12. # user_chk_messages.h user_chk_messages.cc: s-messages
  13. # Until logging in dynamically loaded libraries is fixed, exclude these.
  14. # s-messages: user_chk_messages.mes
  15. # $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/hooks/dhcp/user_chk/user_chk_messages.mes
  16. # touch $@
  17. # Tell automake that the message files are built as part of the build process
  18. # (so that they are built before the main library is built).
  19. # BUILT_SOURCES = user_chk_messages.h user_chk_messages.cc
  20. BUILT_SOURCES =
  21. # Ensure that the message file is included in the distribution
  22. EXTRA_DIST = libdhcp_user_chk.dox
  23. # Get rid of generated message files on a clean
  24. #CLEANFILES = *.gcno *.gcda user_chk_messages.h user_chk_messages.cc s-messages
  25. CLEANFILES = *.gcno *.gcda
  26. nodistdir=$(abs_top_builddir)/src/hooks/dhcp/user_chk
  27. nodist_LTLIBRARIES = libdhcp_user_chk.la
  28. libdhcp_user_chk_la_SOURCES =
  29. libdhcp_user_chk_la_SOURCES += load_unload.cc
  30. libdhcp_user_chk_la_SOURCES += pkt_receive_co.cc
  31. libdhcp_user_chk_la_SOURCES += pkt_send_co.cc
  32. libdhcp_user_chk_la_SOURCES += subnet_select_co.cc
  33. libdhcp_user_chk_la_SOURCES += user.cc user.h
  34. libdhcp_user_chk_la_SOURCES += user_chk.h
  35. # Until logging in dynamically loaded libraries is fixed, exclude these.
  36. #libdhcp_user_chk_la_SOURCES += user_chk_log.cc user_chk_log.h
  37. libdhcp_user_chk_la_SOURCES += user_data_source.h
  38. libdhcp_user_chk_la_SOURCES += user_file.cc user_file.h
  39. libdhcp_user_chk_la_SOURCES += user_registry.cc user_registry.h
  40. libdhcp_user_chk_la_SOURCES += version.cc
  41. # Until logging in dynamically loaded libraries is fixed, exclude these.
  42. #nodist_libdhcp_user_chk_la_SOURCES = user_chk_messages.cc user_chk_messages.h
  43. libdhcp_user_chk_la_CXXFLAGS = $(AM_CXXFLAGS)
  44. libdhcp_user_chk_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
  45. libdhcp_user_chk_la_LDFLAGS = $(AM_LDFLAGS)
  46. libdhcp_user_chk_la_LDFLAGS += -avoid-version -export-dynamic -module
  47. libdhcp_user_chk_la_LIBADD =
  48. libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/hooks/libb10-hooks.la
  49. libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/log/libb10-log.la
  50. libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
  51. libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/util/libb10-util.la
  52. libdhcp_user_chk_la_LIBADD += $(top_builddir)/src/lib/util/threads/libb10-threads.la
  53. if USE_CLANGPP
  54. # Disable unused parameter warning caused by some of the
  55. # Boost headers when compiling with clang.
  56. libdhcp_user_chk_la_CXXFLAGS += -Wno-unused-parameter
  57. endif