Makefile.am 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. dhcp_ddns_messages.h dhcp_ddns_messages.cc: s-messages
  7. s-messages: dhcp_ddns_messages.mes
  8. $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/lib/dhcp_ddns/dhcp_ddns_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 = dhcp_ddns_messages.h dhcp_ddns_messages.cc
  13. # Ensure that the message file is included in the distribution
  14. EXTRA_DIST = dhcp_ddns_messages.mes libdhcp_ddns.dox
  15. # Get rid of generated message files on a clean
  16. CLEANFILES = *.gcno *.gcda dhcp_ddns_messages.h dhcp_ddns_messages.cc s-messages
  17. lib_LTLIBRARIES = libkea-dhcp_ddns.la
  18. libkea_dhcp_ddns_la_SOURCES =
  19. libkea_dhcp_ddns_la_SOURCES += dhcp_ddns_log.cc dhcp_ddns_log.h
  20. libkea_dhcp_ddns_la_SOURCES += ncr_io.cc ncr_io.h
  21. libkea_dhcp_ddns_la_SOURCES += ncr_msg.cc ncr_msg.h
  22. libkea_dhcp_ddns_la_SOURCES += ncr_udp.cc ncr_udp.h
  23. nodist_libkea_dhcp_ddns_la_SOURCES = dhcp_ddns_messages.cc dhcp_ddns_messages.h
  24. libkea_dhcp_ddns_la_CXXFLAGS = $(AM_CXXFLAGS)
  25. libkea_dhcp_ddns_la_CPPFLAGS = $(AM_CPPFLAGS)
  26. libkea_dhcp_ddns_la_LDFLAGS = $(AM_LDFLAGS)
  27. libkea_dhcp_ddns_la_LDFLAGS += $(CRYPTO_LDFLAGS)
  28. libkea_dhcp_ddns_la_LDFLAGS += -no-undefined -version-info 1:2:0
  29. libkea_dhcp_ddns_la_LIBADD =
  30. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
  31. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
  32. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
  33. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
  34. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
  35. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
  36. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
  37. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/util/threads/libkea-threads.la
  38. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
  39. libkea_dhcp_ddns_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  40. libkea_dhcp_ddns_la_LIBADD += $(LOG4CPLUS_LIBS) $(CRYPTO_LIBS) $(BOOST_LIBS)
  41. # Specify the headers for copying into the installation directory tree.
  42. libkea_dhcp_ddns_includedir = $(pkgincludedir)/dhcp_ddns
  43. libkea_dhcp_ddns_include_HEADERS = \
  44. dhcp_ddns_log.h \
  45. ncr_io.h \
  46. ncr_msg.h \
  47. ncr_udp.h