Andrew Jeffery | a607a0d | 2018-05-23 16:15:26 +0930 | [diff] [blame] | 1 | AM_CPPFLAGS = \ |
| 2 | $(PTHREAD_CPPFLAGS) \ |
| 3 | $(SDBUSPLUS_CPPFLAGS) \ |
| 4 | $(PHOSPHOR_DBUS_INTERFACES_CPPFLAGS) \ |
| 5 | $(CODE_COVERAGE_CPPFLAGS) |
| 6 | AM_CFLAGS = \ |
| 7 | $(PTHREAD_CFLAGS) \ |
| 8 | $(SDBUSPLUS_CFLAGS) \ |
| 9 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 10 | $(CODE_COVERAGE_CFLAGS) |
| 11 | AM_CXXFLAGS = \ |
| 12 | $(PTHREAD_CXXFLAGS) \ |
| 13 | $(SDBUSPLUS_CXXFLAGS) \ |
| 14 | $(PHOSPHOR_DBUS_INTERFACES_CXXFLAGS) \ |
| 15 | $(CODE_COVERAGE_CXXFLAGS) |
| 16 | AM_LDFLAGS = \ |
Andrew Jeffery | e185efb | 2018-05-24 12:59:06 +0930 | [diff] [blame] | 17 | -lstdc++fs \ |
Andrew Jeffery | a607a0d | 2018-05-23 16:15:26 +0930 | [diff] [blame] | 18 | $(SDBUSPLUS_LIBS) \ |
| 19 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 20 | $(CODE_COVERAGE_LIBS) \ |
| 21 | -lgtest -lgtest_main -lgmock $(PTHREAD_CFLAGS) $(OESDK_TESTCASE_FLAGS) |
| 22 | |
| 23 | test_physical_SOURCES = %reldir%/physical.cpp |
Andrew Jeffery | 42e02d3 | 2018-05-24 13:34:05 +0930 | [diff] [blame] | 24 | test_physical_LDADD = physical.o sysfs.o |
Andrew Jeffery | a607a0d | 2018-05-23 16:15:26 +0930 | [diff] [blame] | 25 | |
Andrew Jeffery | e185efb | 2018-05-24 12:59:06 +0930 | [diff] [blame] | 26 | test_sysfs_SOURCES = %reldir%/sysfs.cpp |
| 27 | test_sysfs_LDADD = sysfs.cpp |
| 28 | |
| 29 | check_PROGRAMS += \ |
| 30 | %reldir%/physical \ |
| 31 | %reldir%/sysfs |