Makefile.am 1.1 KB
Newer Older
1 2
SUBDIRS = testdata .

JINMEI Tatuya's avatar
JINMEI Tatuya committed
3
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
4
AM_CPPFLAGS += $(BOOST_INCLUDES)
5

6 7
AM_CXXFLAGS = $(B10_CXXFLAGS)

JINMEI Tatuya's avatar
JINMEI Tatuya committed
8 9 10 11
if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

12 13
CLEANFILES = *.gcno *.gcda

14 15 16
lib_LTLIBRARIES = libfake_session.la
libfake_session_la_SOURCES = fake_session.h fake_session.cc

17 18 19
TESTS =
if HAVE_GTEST
TESTS += run_unittests
20
run_unittests_SOURCES = ccsession_unittests.cc module_spec_unittests.cc config_data_unittests.cc run_unittests.cc
21

22
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
23
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
24
run_unittests_LDADD =  $(GTEST_LDADD)
JINMEI Tatuya's avatar
JINMEI Tatuya committed
25
run_unittests_LDADD += $(top_builddir)/src/lib/cc/libcc.la
26 27 28
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
run_unittests_LDADD += $(top_builddir)/src/lib/util/io/libutil_io.la
run_unittests_LDADD += $(top_builddir)/src/lib/util/libutil.la
29
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
Jelte Jansen's avatar
Jelte Jansen committed
30
run_unittests_LDADD += libfake_session.la
31
run_unittests_LDADD += $(top_builddir)/src/lib/config/libcfgclient.la
32 33 34 35

endif

noinst_PROGRAMS = $(TESTS)