blob: a8cd3b7d94f48abe395f1596a94258117a05bd5f [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 YU96232822017-01-20 14:05:46 +08009 TestEpochBase.cpp \
Lei YUaf5abc52017-03-07 17:49:17 +080010 TestBmcEpoch.cpp \
Lei YU415b9642017-02-09 11:37:26 +080011 TestHostEpoch.cpp \
Lei YUddd54422017-04-18 16:38:44 +080012 TestManager.cpp \
13 TestUtils.cpp
Lei YU2f9c0cc2017-01-20 14:02:03 +080014
15test_LDADD = $(top_builddir)/libtimemanager.la
16
17test_CPPFLAGS = $(GTEST_CPPFLAGS) \
Lei YUbd024392018-09-10 10:34:56 +080018 $(GMOCK_CFLAGS) \
19 $(GTEST_MAIN_CFLAGS) \
Lei YU2f9c0cc2017-01-20 14:02:03 +080020 $(AM_CPPFLAGS)
21
22test_CXXFLAGS = $(PTHREAD_CFLAGS) \
23 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Lei YU19b37ee2018-09-18 14:46:36 +080024 $(SDBUSPLUS_CFLAGS) -flto
Lei YU2f9c0cc2017-01-20 14:02:03 +080025
Lei YUbd024392018-09-10 10:34:56 +080026test_LDFLAGS = $(GMOCK_LIBS) \
27 $(GTEST_MAIN_LIBS) \
Lei YU2f9c0cc2017-01-20 14:02:03 +080028 $(PTHREAD_LIBS) \
29 $(OESDK_TESTCASE_FLAGS)
30
31test_LDFLAGS += $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
32 $(SDBUSPLUS_LIBS)