blob: 70b72c7339c914e36cb670bc30573e6facf04bbc [file] [log] [blame]
Marri Devender Rao947258d2018-09-25 10:52:24 -05001AM_CPPFLAGS = \
2 -I$(top_srcdir) \
3 $(PTHREAD_CPPFLAGS) \
4 $(SDBUSPLUS_CPPFLAGS) \
5 $(PHOSPHOR_DBUS_INTERFACES_CPPFLAGS)
6
7AM_CFLAGS = \
8 $(PTHREAD_CFLAGS) \
9 $(SDBUSPLUS_CFLAGS) \
Patrick Venture3dd74012018-12-03 07:46:55 -080010 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
11 $(PHOSPHOR_LOGGING_CFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050012
13AM_CXXFLAGS = \
14 $(PTHREAD_CXXFLAGS) \
15 $(SDBUSPLUS_CXXFLAGS) \
16 $(PHOSPHOR_DBUS_INTERFACES_CXXFLAGS)
17
18AM_LDFLAGS = \
19 -lstdc++fs \
20 $(SDBUSPLUS_LIBS) \
21 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Patrick Venture3dd74012018-12-03 07:46:55 -080022 $(PHOSPHOR_LOGGING_LIBS) \
Patrick Venture8d100c12018-12-03 08:36:00 -080023 $(OPENSSL_LIBS) \
Marri Devender Rao947258d2018-09-25 10:52:24 -050024 -lgtest -lgtest_main -lgmock $(PTHREAD_CFLAGS) $(OESDK_TESTCASE_FLAGS)
25
26check_PROGRAMS =
27
28# Run all 'check' test programs
29TESTS = $(check_PROGRAMS)
30
31# Build/add certs_manager_test to test suite
32check_PROGRAMS += certs_manager_test
Jayanth Othayothdd74bd22018-09-28 06:13:35 -050033certs_manager_test_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_CPPFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050034certs_manager_test_LDFLAGS = $(AM_LDFLAGS) $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS)
35certs_manager_test_SOURCES = certs_manager_test.cpp
36certs_manager_test_LDADD = $(top_builddir)/certs_manager.o