blob: 08aeeeeae6763966b0937678380b07031372eb06 [file] [log] [blame]
Marri Devender Rao947258d2018-09-25 10:52:24 -05001AM_CPPFLAGS = \
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -05002 -I$(top_srcdir) \
3 $(CODE_COVERAGE_CPPFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -05004
5AM_CFLAGS = \
Patrick Ventureca4f7882018-12-03 09:05:32 -08006 $(SDBUSPLUS_CFLAGS) \
Marri Devender Raof4682712019-03-19 05:00:28 -05007 $(SDEVENTPLUS_CFLAGS) \
Patrick Ventureca4f7882018-12-03 09:05:32 -08008 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -05009 $(PHOSPHOR_LOGGING_CFLAGS) \
10 $(CODE_COVERAGE_CPPFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050011
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -050012AM_CXXFLAGS = \
13 $(CODE_COVERAGE_CXXFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050014
15AM_LDFLAGS = \
Patrick Ventureca4f7882018-12-03 09:05:32 -080016 -lstdc++fs \
17 $(SDBUSPLUS_LIBS) \
Marri Devender Raof4682712019-03-19 05:00:28 -050018 $(SDEVENTPLUS_LIBS) \
Patrick Ventureca4f7882018-12-03 09:05:32 -080019 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
20 $(PHOSPHOR_LOGGING_LIBS) \
21 $(OPENSSL_LIBS) \
Marri Devender Rao6ceec402019-02-01 03:15:19 -060022 $(GTEST_LIBS) -lgmock_main $(GMOCK_LIBS) \
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -050023 $(OESDK_TESTCASE_FLAGS) \
24 $(CODE_COVERAGE_LIBS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050025
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
Marri Devender Rao6ceec402019-02-01 03:15:19 -060037certs_manager_test_LDADD += $(top_builddir)/certificate.o
Marri Devender Raof4682712019-03-19 05:00:28 -050038certs_manager_test_LDADD += $(top_builddir)/csr.o
Marri Devender Raoffad1ef2019-06-03 04:54:12 -050039certs_manager_test_LDADD += $(top_builddir)/watch.o
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -050040certs_manager_test_LDADD += $(CODE_COVERAGE_LIBS)