1AM_CPPFLAGS = -I$(top_srcdir) 2 3TESTS = $(check_PROGRAMS) 4 5check_PROGRAMS = test_policy test_callout 6 7test_cppflags = \ 8 -Igtest \ 9 $(GTEST_CPPFLAGS) \ 10 $(AM_CPPFLAGS) 11 12test_cxxflags = \ 13 $(PTHREAD_CFLAGS) \ 14 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ 15 $(IBM_DBUS_INTERFACES_CFLAGS) \ 16 $(SDBUSPLUS_CFLAGS) \ 17 $(PHOSPHOR_LOGGING_CFLAGS) 18 19test_ldflags = \ 20 -lgtest_main -lgtest \ 21 -lstdc++fs \ 22 $(PTHREAD_LIBS) \ 23 $(OESDK_TESTCASE_FLAGS) \ 24 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ 25 $(IBM_DBUS_INTERFACES_LIBS) \ 26 $(SDBUSPLUS_LIBS) 27 28test_policy_CPPFLAGS = $(test_cppflags) 29test_policy_CXXFLAGS = $(test_cxxflags) 30test_policy_LDFLAGS = $(test_ldflags) 31test_policy_SOURCES = test_policy.cpp 32test_policy_LDADD = \ 33 $(top_builddir)/policy_table.o \ 34 $(top_builddir)/policy_find.o 35 36test_callout_CPPFLAGS = $(test_cppflags) 37test_callout_CXXFLAGS = $(test_cxxflags) 38test_callout_LDFLAGS = $(test_ldflags) 39test_callout_SOURCES = test_callout.cpp 40 41test_callout_LDADD = \ 42 $(top_builddir)/callout.o 43 44 45