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 = libkea-dhcp_ddns.la
  23. libkea_dhcp_ddns_la_SOURCES =
  24. libkea_dhcp_ddns_la_SOURCES += dhcp_ddns_log.cc dhcp_ddns_log.h
  25. libkea_dhcp_ddns_la_SOURCES += ncr_io.cc ncr_io.h
  26. libkea_dhcp_ddns_la_SOURCES += ncr_msg.cc ncr_msg.h
  27. libkea_dhcp_ddns_la_SOURCES += ncr_udp.cc ncr_udp.h
  28. libkea_dhcp_ddns_la_SOURCES += watch_socket.cc watch_socket.h
  29. nodist_libkea_dhcp_ddns_la_SOURCES = dhcp_ddns_messages.cc dhcp_ddns_messages.h
  30. libkea_dhcp_ddns_la_CXXFLAGS = $(AM_CXXFLAGS)
  31. libkea_dhcp_ddns_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
  32. libkea_dhcp_ddns_la_LDFLAGS = $(AM_LDFLAGS)
  33. libkea_dhcp_ddns_la_LDFLAGS += ${BOTAN_LDFLAGS}
  34. libkea_dhcp_ddns_la_LIBADD =
  35. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
  36. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
  37. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
  38. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
  39. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
  40. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  41. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
  42. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
  43. libkea_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. libkea_dhcp_ddns_la_CXXFLAGS += -Wno-unused-parameter
  48. endif