blob: 82101f77479c43059105ac1c60a9d65d8f74908b [file] [log] [blame]
Deepak Kodihalli1b24f972019-02-01 04:09:13 -06001AM_CPPFLAGS = -I$(top_srcdir)
2
3TESTS = $(check_PROGRAMS)
4
5check_PROGRAMS = \
6 libpldm_base_test \
7 libpldmresponder_base_test
8
9test_cppflags = \
10 -Igtest \
11 $(GTEST_CPPFLAGS) \
12 $(AM_CPPFLAGS)
13
14test_cxxflags = \
15 $(PTHREAD_CFLAGS)
16
17test_ldflags = \
18 -lgtest_main \
19 -lgtest \
20 $(PTHREAD_LIBS) \
21 $(OESDK_TESTCASE_FLAGS)
22
23libpldm_base_test_CPPFLAGS = $(test_cppflags)
24libpldm_base_test_CXXFLAGS = $(test_cxxflags)
25libpldm_base_test_LDFLAGS = $(test_ldflags)
26libpldm_base_test_LDADD = $(top_builddir)/libpldm/base.o
27libpldm_base_test_SOURCES = libpldm_base_test.cpp
28
29libpldmresponder_base_test_CPPFLAGS = $(test_cppflags)
30libpldmresponder_base_test_CXXFLAGS = $(test_cxxflags)
31libpldmresponder_base_test_LDFLAGS = $(test_ldflags)
32libpldmresponder_base_test_LDADD = \
33 $(top_builddir)/libpldm/base.o \
34 $(top_builddir)/libpldmresponder/base.o
35libpldmresponder_base_test_SOURCES = libpldmresponder_base_test.cpp