blob: f0a94c60338a943e7d241a84c2d92da5b40f62f7 [file] [log] [blame]
Gunnar Mills01d55c32017-04-20 10:52:15 -05001AM_CPPFLAGS = -I$(top_srcdir)
2
3# gtest unit tests which run during a 'make check'
4check_PROGRAMS = utest
5
6# Run all 'check' test programs
7TESTS = $(check_PROGRAMS)
8
9# Build/add utest to test suite
10utest_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
Saqib Khanba239882017-05-26 08:41:54 -050011utest_CXXFLAGS = $(PTHREAD_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) \
Lei YU1be8d502018-06-20 11:48:36 +080012 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
13 -DUBIFS_LAYOUT
Saqib Khanba239882017-05-26 08:41:54 -050014utest_LDFLAGS = -lgtest_main -lgtest $(PTHREAD_LIBS) \
15 $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(OESDK_TESTCASE_FLAGS) \
Saqib Khan26a960d2017-09-19 14:23:28 -050016 $(PHOSPHOR_LOGGING_LIBS) -lstdc++fs -lssl -lcrypto
Gunnar Mills01d55c32017-04-20 10:52:15 -050017
18utest_SOURCES = utest.cpp
Jayanth Othayoth6be275b2018-02-27 08:36:38 -060019
20utest_LDADD = \
21 $(top_builddir)/image_verify.cpp \
22 $(top_builddir)/version.cpp