Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. if USE_LOG4CXX
  2. SUBDIRS = . compiler tests
  3. endif
  4. AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
  5. AM_CPPFLAGS += $(BOOST_INCLUDES)
  6. AM_CPPFLAGS += $(LOG4CXX_INCLUDES)
  7. AM_CPPFLAGS += -I$(top_srcdir)/src/lib/log -I$(top_builddir)/src/lib/log
  8. CLEANFILES = *.gcno *.gcda
  9. lib_LTLIBRARIES = liblog.la
  10. liblog_la_SOURCES =
  11. liblog_la_SOURCES += dbglevels.h
  12. liblog_la_SOURCES += dummylog.h dummylog.cc
  13. if USE_LOG4CXX
  14. liblog_la_SOURCES += filename.h filename.cc
  15. liblog_la_SOURCES += logger.cc logger.h
  16. liblog_la_SOURCES += logger_support.cc logger_support.h
  17. liblog_la_SOURCES += messagedef.cc messagedef.h
  18. liblog_la_SOURCES += message_dictionary.cc message_dictionary.h
  19. liblog_la_SOURCES += message_exception.h message_exception.cc
  20. liblog_la_SOURCES += message_initializer.cc message_initializer.h
  21. liblog_la_SOURCES += message_reader.cc message_reader.h
  22. liblog_la_SOURCES += message_types.h
  23. liblog_la_SOURCES += root_logger_name.cc root_logger_name.h
  24. liblog_la_SOURCES += strutil.h strutil.cc
  25. liblog_la_SOURCES += xdebuglevel.cc xdebuglevel.h
  26. liblog_la_LDFLAGS = $(LOG4CXX_LDFLAGS)
  27. endif
  28. # Note: the ordering matters: -Wno-... must follow -Wextra (defined in
  29. # B10_CXXFLAGS)
  30. liblog_la_CXXFLAGS = $(AM_CXXFLAGS)
  31. if USE_GXX
  32. liblog_la_CXXFLAGS += -Wno-unused-parameter
  33. endif
  34. if USE_CLANGPP
  35. # Same for clang++, but we need to turn off -Werror completely.
  36. liblog_la_CXXFLAGS += -Wno-error
  37. endif
  38. liblog_la_CPPFLAGS = $(AM_CPPFLAGS)