blob: f179262e01d199f3b3a2e7583856a1f36175495a [file] [log] [blame]
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -05001if AUTOCONF_CODE_COVERAGE_2019_01_06
2include $(top_srcdir)/Makefile.am.include
3include $(top_srcdir)/aminclude_static.am
4clean-local: code-coverage-clean
5distclean-local: code-coverage-dist-clean
6else
7@CODE_COVERAGE_RULES@
8endif
9
10AM_LIBS = $(CODE_COVERAGE_LIBS)
11AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG $(GTEST_CPPFLAGS)
12AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
13AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
14AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \
15 $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS)
16
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -050017AM_DEFAULT_SOURCE_EXT = .cpp
18
19# Build these headers, don't install them
20noinst_HEADERS = \
Jayanth Othayothcfbc8dc2018-09-03 07:22:27 -050021 certs_manager.hpp \
Marri Devender Rao6ceec402019-02-01 03:15:19 -060022 argument.hpp \
Marri Devender Raof4d63482019-05-02 06:35:34 -050023 certificate.hpp \
Marri Devender Raoffad1ef2019-06-03 04:54:12 -050024 csr.hpp \
25 watch.hpp
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -050026
Patrick Venture278a6a62019-03-28 12:57:35 -070027bin_PROGRAMS = \
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -050028 phosphor-certificate-manager
29
30phosphor_certificate_manager_SOURCES = \
31 mainapp.cpp \
Jayanth Othayothcfbc8dc2018-09-03 07:22:27 -050032 certs_manager.cpp \
Marri Devender Rao6ceec402019-02-01 03:15:19 -060033 argument.cpp \
Marri Devender Raof4d63482019-05-02 06:35:34 -050034 certificate.cpp \
Marri Devender Raoffad1ef2019-06-03 04:54:12 -050035 csr.cpp \
36 watch.cpp
Jayanth Othayothcfbc8dc2018-09-03 07:22:27 -050037
38phosphor_certificate_manager_LDFLAGS = \
39 $(SDBUSPLUS_LIBS) \
Marri Devender Raof4682712019-03-19 05:00:28 -050040 $(SDEVENTPLUS_LIBS) \
Jayanth Othayothcfbc8dc2018-09-03 07:22:27 -050041 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Patrick Venture3dd74012018-12-03 07:46:55 -080042 $(PHOSPHOR_LOGGING_LIBS) \
Patrick Venture8d100c12018-12-03 08:36:00 -080043 $(OPENSSL_LIBS) \
44 -lstdc++fs
Jayanth Othayothcfbc8dc2018-09-03 07:22:27 -050045
46phosphor_certificate_manager_CXXFLAGS = \
47 $(SYSTEMD_CFLAGS) \
Marri Devender Raof4682712019-03-19 05:00:28 -050048 $(SDEVENTPLUS_LIBS) \
Patrick Venture3dd74012018-12-03 07:46:55 -080049 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
50 $(PHOSPHOR_LOGGING_CFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050051
Lakshminarayana R. Kammath480f30d2020-05-21 10:02:28 -050052SUBDIRS = test
53
54check_PROGRAMS =
55XFAIL_TESTS =
56
57TESTS = $(check_PROGRAMS)