blob: 1b07171668ebbb3db8119ff699ab3fc1c04f17cb [file] [log] [blame]
Patrick Venture609fe982018-04-17 17:51:56 -07001AM_CPPFLAGS = -I$(top_srcdir)/ $(GTEST_CFLAGS) $(GMOCK_CFLAGS)
2AM_CXXFLAGS = $(PTHREAD_CFLAGS) \
3 $(GTEST_CFLAGS) \
4 $(GMOCK_CFLAGS) \
5 $(SDBUSPLUS_CFLAGS) \
6 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
7AM_LDFLAGS = $(GTEST_LIBS) \
8 $(PTHREAD_LIBS) \
9 $(GMOCK_LIBS) \
10 $(OESDK_TESTCASE_FLAGS) \
11 $(SDBUSPLUS_LIBS) \
12 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
13
14# Run all 'check' test programs
Patrick Venture50552372018-06-07 10:53:56 -070015check_PROGRAMS = hwmon_unittest fanpwm_unittest
Patrick Venture609fe982018-04-17 17:51:56 -070016TESTS = $(check_PROGRAMS)
17
18hwmon_unittest_SOURCES = hwmon_unittest.cpp
19hwmon_unittest_LDADD = $(top_builddir)/hwmon.o
20
Patrick Venture50552372018-06-07 10:53:56 -070021fanpwm_unittest_SOURCES = fanpwm_unittest.cpp
22fanpwm_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) $(top_builddir)/fan_pwm.o