Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 1 | AM_CPPFLAGS = -I${top_srcdir} |
| 2 | check_PROGRAMS = |
| 3 | |
| 4 | TESTS = $(check_PROGRAMS) |
| 5 | |
| 6 | check_PROGRAMS += test |
| 7 | |
| 8 | test_SOURCES = \ |
Lei YU | af5abc5 | 2017-03-07 17:49:17 +0800 | [diff] [blame] | 9 | TestBmcEpoch.cpp \ |
Lei YU | ddd5442 | 2017-04-18 16:38:44 +0800 | [diff] [blame] | 10 | TestManager.cpp \ |
| 11 | TestUtils.cpp |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 12 | |
| 13 | test_LDADD = $(top_builddir)/libtimemanager.la |
| 14 | |
| 15 | test_CPPFLAGS = $(GTEST_CPPFLAGS) \ |
Lei YU | bd02439 | 2018-09-10 10:34:56 +0800 | [diff] [blame] | 16 | $(GMOCK_CFLAGS) \ |
| 17 | $(GTEST_MAIN_CFLAGS) \ |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 18 | $(AM_CPPFLAGS) |
| 19 | |
| 20 | test_CXXFLAGS = $(PTHREAD_CFLAGS) \ |
| 21 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Lei YU | 19b37ee | 2018-09-18 14:46:36 +0800 | [diff] [blame] | 22 | $(SDBUSPLUS_CFLAGS) -flto |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 23 | |
Lei YU | bd02439 | 2018-09-10 10:34:56 +0800 | [diff] [blame] | 24 | test_LDFLAGS = $(GMOCK_LIBS) \ |
| 25 | $(GTEST_MAIN_LIBS) \ |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 26 | $(PTHREAD_LIBS) \ |
| 27 | $(OESDK_TESTCASE_FLAGS) |
| 28 | |
| 29 | test_LDFLAGS += $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 30 | $(SDBUSPLUS_LIBS) |