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 | 9623282 | 2017-01-20 14:05:46 +0800 | [diff] [blame] | 9 | TestEpochBase.cpp \ |
Lei YU | af5abc5 | 2017-03-07 17:49:17 +0800 | [diff] [blame] | 10 | TestBmcEpoch.cpp \ |
Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 11 | TestHostEpoch.cpp \ |
Lei YU | ddd5442 | 2017-04-18 16:38:44 +0800 | [diff] [blame] | 12 | TestManager.cpp \ |
| 13 | TestUtils.cpp |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 14 | |
| 15 | test_LDADD = $(top_builddir)/libtimemanager.la |
| 16 | |
| 17 | test_CPPFLAGS = $(GTEST_CPPFLAGS) \ |
Lei YU | bd02439 | 2018-09-10 10:34:56 +0800 | [diff] [blame] | 18 | $(GMOCK_CFLAGS) \ |
| 19 | $(GTEST_MAIN_CFLAGS) \ |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 20 | $(AM_CPPFLAGS) |
| 21 | |
| 22 | test_CXXFLAGS = $(PTHREAD_CFLAGS) \ |
| 23 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Lei YU | 19b37ee | 2018-09-18 14:46:36 +0800 | [diff] [blame^] | 24 | $(SDBUSPLUS_CFLAGS) -flto |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 25 | |
Lei YU | bd02439 | 2018-09-10 10:34:56 +0800 | [diff] [blame] | 26 | test_LDFLAGS = $(GMOCK_LIBS) \ |
| 27 | $(GTEST_MAIN_LIBS) \ |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 28 | $(PTHREAD_LIBS) \ |
| 29 | $(OESDK_TESTCASE_FLAGS) |
| 30 | |
| 31 | test_LDFLAGS += $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 32 | $(SDBUSPLUS_LIBS) |