blob: d644de805c30c63fb1255f0143f1db1298db2d64 [file] [log] [blame]
Andrew Geissler4cea4d22017-07-10 15:13:33 -05001AM_CPPFLAGS = -I$(top_srcdir)
2check_PROGRAMS = utest
3
4# Run all 'check' test programs
5TESTS = $(check_PROGRAMS)
6
7# Build/add utest to test suite
8utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
9utest_CXXFLAGS = $(PTHREAD_CFLAGS)
10utest_LDFLAGS = -lgtest_main -lgtest \
11 $(PTHREAD_LIBS) \
12 $(OESDK_TESTCASE_FLAGS) \
13 $(SYSTEMD_LIBS) \
14 ${SDBUSPLUS_LIBS} \
15 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053016 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler4cea4d22017-07-10 15:13:33 -050017 -lstdc++fs
18utest_SOURCES = utest.cpp
19utest_LDADD = $(top_builddir)/powercap.o \
20 $(top_builddir)/occ_status.o \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053021 $(top_builddir)/occ_device.o \
22 $(top_builddir)/occ_errors.o \
Vishwanatha Subbanna30e329a2017-07-24 23:13:14 +053023 $(top_builddir)/utils.o \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053024 $(top_builddir)/org/open_power/OCC/Device/error.o