blob: 6022c65e3f509dd42137e8647a63f4dd54494af8 [file] [log] [blame]
AM_CPPFLAGS = -I$(top_srcdir)
check_PROGRAMS = utest
# Run all 'check' test programs
TESTS = $(check_PROGRAMS)
# Build/add utest to test suite
utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
utest_CXXFLAGS = $(PTHREAD_CFLAGS)
utest_LDFLAGS = -lgtest_main -lgtest \
$(PTHREAD_LIBS) \
$(OESDK_TESTCASE_FLAGS) \
$(SYSTEMD_LIBS) \
${SDBUSPLUS_LIBS} \
$(OPENPOWER_DBUS_INTERFACES_LIBS) \
-lstdc++fs
utest_SOURCES = utest.cpp
utest_LDADD = $(top_builddir)/powercap.o \
$(top_builddir)/occ_status.o \
$(top_builddir)/occ_device.o