Makefile.am 1.73 KB
Newer Older
1 2 3
SUBDIRS = .

AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
4
AM_CPPFLAGS += $(BOOST_INCLUDES) $(LOG4CPLUS_INCLUDES)
5 6 7 8 9 10 11 12 13 14 15
AM_CXXFLAGS = $(B10_CXXFLAGS)

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

CLEANFILES = *.gcno *.gcda

TESTS =
if HAVE_GTEST
TESTS += run_unittests
16 17
run_unittests_SOURCES  = run_unittests.cc
run_unittests_SOURCES += log_formatter_unittest.cc
18
run_unittests_SOURCES += logger_level_impl_unittest.cc
19
run_unittests_SOURCES += logger_level_unittest.cc
Stephen Morris's avatar
Stephen Morris committed
20
run_unittests_SOURCES += logger_manager_unittest.cc
21
run_unittests_SOURCES += logger_unittest.cc
22
run_unittests_SOURCES += logger_specification_unittest.cc
23
run_unittests_SOURCES += message_dictionary_unittest.cc
24
run_unittests_SOURCES += message_initializer_unittest_2.cc
25 26 27 28
run_unittests_SOURCES += message_initializer_unittest.cc
run_unittests_SOURCES += message_reader_unittest.cc
run_unittests_SOURCES += output_option_unittest.cc
run_unittests_SOURCES += root_logger_name_unittest.cc
29

30
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
31
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS) $(LOG4CPLUS_LDFLAGS)
32

33 34
run_unittests_LDADD  = $(GTEST_LDADD)
run_unittests_LDADD += $(top_builddir)/src/lib/log/liblog.la
35
run_unittests_LDADD += $(top_builddir)/src/lib/util/libutil.la
36 37
endif

38 39 40
TESTS += logger_support_test
logger_support_test_SOURCES = logger_support_test.cc
logger_support_test_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
41
logger_support_test_LDFLAGS = $(AM_LDFLAGS) $(LOG4CPLUS_LDFLAGS)
42
logger_support_test_LDADD  = $(top_builddir)/src/lib/log/liblog.la
43
logger_support_test_LDADD += $(top_builddir)/src/lib/util/libutil.la
44

45
noinst_PROGRAMS = $(TESTS)
46 47 48 49 50

# Additional test using the shell
PYTESTS = run_time_init_test.sh
check-local:
	$(SHELL) $(abs_builddir)/run_time_init_test.sh