Makefile.am 3.23 KB
Newer Older
1 2 3 4 5
SUBDIRS = interprocess .
if !CROSS_COMPILING
SUBDIRS += compiler
endif
SUBDIRS += tests
6 7

AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
8
AM_CPPFLAGS += $(BOOST_INCLUDES)
9
AM_CPPFLAGS += -DTOP_BUILDDIR=\"$(abs_top_builddir)\"
10

11 12
AM_CXXFLAGS = $(KEA_CXXFLAGS)

13
CLEANFILES = *.gcno *.gcda
14

15 16 17
lib_LTLIBRARIES = libkea-log.la
libkea_log_la_SOURCES  =
libkea_log_la_SOURCES += logimpl_messages.cc logimpl_messages.h
Francis Dupont's avatar
Francis Dupont committed
18
libkea_log_la_SOURCES += log_dbglevels.cc log_dbglevels.h
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
libkea_log_la_SOURCES += log_formatter.h log_formatter.cc
libkea_log_la_SOURCES += logger.cc logger.h
libkea_log_la_SOURCES += logger_impl.cc logger_impl.h
libkea_log_la_SOURCES += logger_level.h
libkea_log_la_SOURCES += logger_level.cc logger_level.h
libkea_log_la_SOURCES += logger_level_impl.cc logger_level_impl.h
libkea_log_la_SOURCES += logger_manager.cc logger_manager.h
libkea_log_la_SOURCES += logger_manager_impl.cc logger_manager_impl.h
libkea_log_la_SOURCES += logger_name.cc logger_name.h
libkea_log_la_SOURCES += logger_specification.h
libkea_log_la_SOURCES += logger_support.cc logger_support.h
libkea_log_la_SOURCES += logger_unittest_support.cc logger_unittest_support.h
libkea_log_la_SOURCES += log_messages.cc log_messages.h
libkea_log_la_SOURCES += macros.h
libkea_log_la_SOURCES += message_dictionary.cc message_dictionary.h
libkea_log_la_SOURCES += message_exception.h
libkea_log_la_SOURCES += message_initializer.cc message_initializer.h
libkea_log_la_SOURCES += message_reader.cc message_reader.h
libkea_log_la_SOURCES += message_types.h
libkea_log_la_SOURCES += output_option.cc output_option.h
libkea_log_la_SOURCES += buffer_appender_impl.cc buffer_appender_impl.h
40

41
EXTRA_DIST  = logging.dox
42 43
EXTRA_DIST += logimpl_messages.mes
EXTRA_DIST += log_messages.mes
44

45
# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
46
# KEA_CXXFLAGS)
47
libkea_log_la_CXXFLAGS = $(AM_CXXFLAGS)
48
if USE_GXX
49
libkea_log_la_CXXFLAGS += -Wno-unused-parameter -Wno-deprecated-declarations
50
endif
51
libkea_log_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
52 53 54 55
libkea_log_la_LIBADD   = $(top_builddir)/src/lib/log/interprocess/libkea-log_interprocess.la
libkea_log_la_LIBADD  += $(top_builddir)/src/lib/util/threads/libkea-threads.la
libkea_log_la_LIBADD  += $(top_builddir)/src/lib/util/libkea-util.la
libkea_log_la_LIBADD  += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
56
libkea_log_la_LIBADD  += $(LOG4CPLUS_LIBS)
57
libkea_log_la_LDFLAGS = -no-undefined -version-info 3:1:0
58

59
# Specify the headers for copying into the installation directory tree.
60 61
libkea_log_includedir = $(pkgincludedir)/log
libkea_log_include_HEADERS = \
62
	buffer_appender_impl.h \
63 64
	log_dbglevels.h \
	log_formatter.h \
65
	log_messages.h \
66 67 68 69 70 71 72 73 74 75
	logger.h \
	logger_impl.h \
	logger_level.h \
	logger_level_impl.h \
	logger_manager.h \
	logger_manager_impl.h \
	logger_name.h \
	logger_specification.h \
	logger_support.h \
	logger_unittest_support.h \
76
	logimpl_messages.h \
77 78 79 80 81 82
	macros.h \
	message_dictionary.h \
	message_exception.h \
	message_initializer.h \
	message_reader.h \
	message_types.h \
83
	output_option.h
84

85 86 87 88 89
libkea_log_interprocess_includedir = $(pkgincludedir)/log/interprocess
libkea_log_interprocess_include_HEADERS = \
	interprocess/interprocess_sync.h \
	interprocess/interprocess_sync_file.h \
	interprocess/interprocess_sync_null.h