Makefile.am 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES)
  4. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
  5. AM_CXXFLAGS = $(KEA_CXXFLAGS)
  6. if USE_GXX
  7. # ASIO header files used in session.cc will trigger the "unused-parameter"
  8. # warning. Unfortunately there doesn't seem to be an easy way to selectively
  9. # avoid the error. As a short term workaround we suppress this warning
  10. # for the entire this module. See also src/bin/auth/Makefile.am.
  11. AM_CXXFLAGS += -Wno-unused-parameter
  12. AM_CXXFLAGS += -fno-strict-aliasing
  13. endif
  14. lib_LTLIBRARIES = libkea-cc.la
  15. libkea_cc_la_SOURCES = data.cc data.h session.cc session.h
  16. libkea_cc_la_SOURCES += logger.cc logger.h
  17. nodist_libkea_cc_la_SOURCES = cc_messages.cc cc_messages.h
  18. libkea_cc_la_SOURCES += proto_defs.cc proto_defs.h
  19. libkea_cc_la_LIBADD = $(top_builddir)/src/lib/log/libkea-log.la
  20. CLEANFILES = *.gcno *.gcda session_config.h cc_messages.cc cc_messages.h \
  21. s-messages
  22. session_config.h: session_config.h.pre
  23. $(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" session_config.h.pre >$@
  24. cc_messages.cc cc_messages.h: s-messages
  25. s-messages: cc_messages.mes
  26. $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/cc/cc_messages.mes
  27. touch $@
  28. BUILT_SOURCES = session_config.h cc_messages.cc cc_messages.h proto_defs.h
  29. # This rule is here, but we added proto_defs.h to the git repo,
  30. # so the script is no longer needed.
  31. #proto_defs.h: $(top_srcdir)/src/lib/util/python/const2hdr.py proto_defs.cc
  32. # $(PYTHON) $(top_srcdir)/src/lib/util/python/const2hdr.py $(srcdir)/proto_defs.cc $@
  33. EXTRA_DIST = cc_messages.mes