Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. SUBDIRS = . tests
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
  3. AM_CPPFLAGS += $(BOOST_INCLUDES)
  4. AM_CXXFLAGS = $(B10_CXXFLAGS)
  5. # There is a build problem with python3.4 (a new field tp_finalize) has been
  6. # added and now compiler complains about it not being properly initialized in
  7. # construtor. Since the whole python thing goes away, it's counter-productive
  8. # to spend any time on making this work on both python3.3 and 3.4, so
  9. # ingoring the warning seems the way to go.
  10. AM_CXXFLAGS += -Wno-error
  11. pythondir = $(pyexecdir)/isc
  12. python_LTLIBRARIES = log.la
  13. log_la_SOURCES = log.cc
  14. log_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
  15. # Note: PYTHON_CXXFLAGS may have some -Wno... workaround, which must be
  16. # placed after -Wextra defined in AM_CXXFLAGS
  17. log_la_CXXFLAGS = $(AM_CXXFLAGS) $(PYTHON_CXXFLAGS)
  18. log_la_LDFLAGS = $(PYTHON_LDFLAGS)
  19. log_la_LDFLAGS += -module -avoid-version
  20. log_la_LIBADD = $(top_builddir)/src/lib/log/libkea-log.la
  21. log_la_LIBADD += $(top_builddir)/src/lib/cc/libkea-cc.la
  22. log_la_LIBADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
  23. log_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
  24. log_la_LIBADD += $(PYTHON_LIB)
  25. # This is not installed, it helps locate the module during tests
  26. EXTRA_DIST = __init__.py
  27. pytest:
  28. $(SHELL) tests/log_test
  29. CLEANDIRS = __pycache__
  30. clean-local:
  31. rm -rf $(CLEANDIRS)