Vishwanatha Subbanna | 035a969 | 2017-09-15 18:50:43 +0530 | [diff] [blame^] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
| 3 | # Run all 'check' test programs |
| 4 | TESTS = $(check_PROGRAMS) |
| 5 | |
| 6 | # Build/add utest to test suite |
| 7 | check_PROGRAMS = utest |
| 8 | utest_CPPFLAGS = -Igtest \ |
| 9 | $(GTEST_CPPFLAGS) \ |
| 10 | $(AM_CPPFLAGS) \ |
| 11 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 12 | $(SDBUSPLUS_CFLAGS) |
| 13 | |
| 14 | utest_CXXFLAGS = $(PTHREAD_CFLAGS) |
| 15 | |
| 16 | utest_LDFLAGS = -lgtest_main \ |
| 17 | -lgtest \ |
| 18 | $(PTHREAD_LIBS) \ |
| 19 | $(OESDK_TESTCASE_FLAGS) \ |
| 20 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 21 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 22 | $(SDBUSPLUS_LIBS) \ |
| 23 | -lcrypt \ |
| 24 | -lstdc++fs |
| 25 | |
| 26 | utest_SOURCES = utest.cpp |
| 27 | utest_LDADD = $(top_builddir)/user.o |