blob: cacedcde4badf28f14b5da8e1a94688bf330c663 [file] [log] [blame]
Lei YU2f9c0cc2017-01-20 14:02:03 +08001AM_CPPFLAGS = -I${top_srcdir}
2check_PROGRAMS =
3
4TESTS = $(check_PROGRAMS)
5
6check_PROGRAMS += test
7
8test_SOURCES = \
Lei YUaf5abc52017-03-07 17:49:17 +08009 TestBmcEpoch.cpp \
Lei YUddd54422017-04-18 16:38:44 +080010 TestManager.cpp \
11 TestUtils.cpp
Lei YU2f9c0cc2017-01-20 14:02:03 +080012
13test_LDADD = $(top_builddir)/libtimemanager.la
14
15test_CPPFLAGS = $(GTEST_CPPFLAGS) \
Lei YUbd024392018-09-10 10:34:56 +080016 $(GMOCK_CFLAGS) \
17 $(GTEST_MAIN_CFLAGS) \
Lei YU2f9c0cc2017-01-20 14:02:03 +080018 $(AM_CPPFLAGS)
19
20test_CXXFLAGS = $(PTHREAD_CFLAGS) \
21 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Lei YU19b37ee2018-09-18 14:46:36 +080022 $(SDBUSPLUS_CFLAGS) -flto
Lei YU2f9c0cc2017-01-20 14:02:03 +080023
Lei YUbd024392018-09-10 10:34:56 +080024test_LDFLAGS = $(GMOCK_LIBS) \
25 $(GTEST_MAIN_LIBS) \
Lei YU2f9c0cc2017-01-20 14:02:03 +080026 $(PTHREAD_LIBS) \
27 $(OESDK_TESTCASE_FLAGS)
28
29test_LDFLAGS += $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
30 $(SDBUSPLUS_LIBS)