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