Andrew Geissler | 4cea4d2 | 2017-07-10 15:13:33 -0500 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | check_PROGRAMS = utest |
| 3 | |
| 4 | # Run all 'check' test programs |
| 5 | TESTS = $(check_PROGRAMS) |
| 6 | |
| 7 | # Build/add utest to test suite |
| 8 | utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
| 9 | utest_CXXFLAGS = $(PTHREAD_CFLAGS) |
| 10 | utest_LDFLAGS = -lgtest_main -lgtest \ |
| 11 | $(PTHREAD_LIBS) \ |
| 12 | $(OESDK_TESTCASE_FLAGS) \ |
| 13 | $(SYSTEMD_LIBS) \ |
| 14 | ${SDBUSPLUS_LIBS} \ |
| 15 | $(OPENPOWER_DBUS_INTERFACES_LIBS) \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 16 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Andrew Geissler | 4cea4d2 | 2017-07-10 15:13:33 -0500 | [diff] [blame] | 17 | -lstdc++fs |
| 18 | utest_SOURCES = utest.cpp |
| 19 | utest_LDADD = $(top_builddir)/powercap.o \ |
| 20 | $(top_builddir)/occ_status.o \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 21 | $(top_builddir)/occ_device.o \ |
| 22 | $(top_builddir)/occ_errors.o \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 23 | $(top_builddir)/utils.o \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 24 | $(top_builddir)/org/open_power/OCC/Device/error.o |