Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir)/ $(GTEST_CFLAGS) $(GMOCK_CFLAGS) |
Patrick Venture | 9f51481 | 2018-06-27 10:19:32 -0700 | [diff] [blame] | 2 | AM_CXXFLAGS = \ |
| 3 | $(GTEST_MAIN_CFLAGS) |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 4 | $(SDBUSPLUS_CFLAGS) \ |
| 5 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Patrick Venture | 9f51481 | 2018-06-27 10:19:32 -0700 | [diff] [blame] | 6 | AM_LDFLAGS = \ |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 7 | $(GMOCK_LIBS) \ |
Patrick Venture | 9f51481 | 2018-06-27 10:19:32 -0700 | [diff] [blame] | 8 | $(GTEST_MAIN_LIBS) \ |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 9 | $(OESDK_TESTCASE_FLAGS) \ |
| 10 | $(SDBUSPLUS_LIBS) \ |
| 11 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 12 | |
| 13 | # Run all 'check' test programs |
Patrick Venture | 0e2d68d | 2018-12-19 07:53:45 -0800 | [diff] [blame] | 14 | check_PROGRAMS = hwmon_unittest fanpwm_unittest sensor_unittest |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 15 | TESTS = $(check_PROGRAMS) |
| 16 | |
| 17 | hwmon_unittest_SOURCES = hwmon_unittest.cpp |
| 18 | hwmon_unittest_LDADD = $(top_builddir)/hwmon.o |
| 19 | |
Patrick Venture | 5055237 | 2018-06-07 10:53:56 -0700 | [diff] [blame] | 20 | fanpwm_unittest_SOURCES = fanpwm_unittest.cpp |
| 21 | fanpwm_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) $(top_builddir)/fan_pwm.o |
Patrick Venture | 0e2d68d | 2018-12-19 07:53:45 -0800 | [diff] [blame] | 22 | |
| 23 | sensor_unittest_SOURCES = sensor_unittest.cpp |
| 24 | sensor_unittest_CXXFLAGS = \ |
| 25 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 26 | $(GPIOPLUS_CFLAGS) |
| 27 | sensor_unittest_LDADD = \ |
| 28 | -lstdc++fs \ |
| 29 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 30 | $(GPIOPLUS_LIBS) \ |
| 31 | $(top_builddir)/sensor.o \ |
| 32 | $(top_builddir)/hwmon.o \ |
Patrick Venture | 99b9581 | 2018-12-19 08:59:15 -0800 | [diff] [blame] | 33 | env.o \ |
| 34 | gpio.o |