Makefile.am 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES) $(BOTAN_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. # Define rule to build logging source files from message file
  11. dhcp_ddns_messages.h dhcp_ddns_messages.cc: s-messages
  12. s-messages: dhcp_ddns_messages.mes
  13. $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/dhcp_ddns/dhcp_ddns_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 = dhcp_ddns_messages.h dhcp_ddns_messages.cc
  18. # Ensure that the message file is included in the distribution
  19. EXTRA_DIST = dhcp_ddns_messages.mes libdhcp_ddns.dox
  20. # Get rid of generated message files on a clean
  21. CLEANFILES = *.gcno *.gcda dhcp_ddns_messages.h dhcp_ddns_messages.cc s-messages
  22. lib_LTLIBRARIES = libb10-dhcp_ddns.la
  23. libb10_dhcp_ddns_la_SOURCES =
  24. libb10_dhcp_ddns_la_SOURCES += dhcp_ddns_log.cc dhcp_ddns_log.h
  25. libb10_dhcp_ddns_la_SOURCES += ncr_io.cc ncr_io.h
  26. libb10_dhcp_ddns_la_SOURCES += ncr_msg.cc ncr_msg.h
  27. libb10_dhcp_ddns_la_SOURCES += ncr_udp.cc ncr_udp.h
  28. libb10_dhcp_ddns_la_SOURCES += watch_socket.cc watch_socket.h
  29. nodist_libb10_dhcp_ddns_la_SOURCES = dhcp_ddns_messages.cc dhcp_ddns_messages.h
  30. libb10_dhcp_ddns_la_CXXFLAGS = $(AM_CXXFLAGS)
  31. libb10_dhcp_ddns_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
  32. libb10_dhcp_ddns_la_LDFLAGS = $(AM_LDFLAGS)
  33. libb10_dhcp_ddns_la_LDFLAGS += ${BOTAN_LDFLAGS}
  34. libb10_dhcp_ddns_la_LIBADD =
  35. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cc/libb10-cc.la
  36. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libb10-cryptolink.la
  37. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/dhcp/libb10-dhcp++.la
  38. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/log/libb10-log.la
  39. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/util/libb10-util.la
  40. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
  41. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
  42. libb10_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cc/libb10-cc.la
  43. libb10_dhcp_ddns_la_LIBADD += ${BOTAN_LIBS} ${BOTAN_RPATH}
  44. if USE_CLANGPP
  45. # Disable unused parameter warning caused by some of the
  46. # Boost headers when compiling with clang.
  47. libb10_dhcp_ddns_la_CXXFLAGS += -Wno-unused-parameter
  48. endif