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