Lakshminarayana R. Kammath | 480f30d | 2020-05-21 10:02:28 -0500 | [diff] [blame] | 1 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 2 | include $(top_srcdir)/Makefile.am.include |
| 3 | include $(top_srcdir)/aminclude_static.am |
| 4 | clean-local: code-coverage-clean |
| 5 | distclean-local: code-coverage-dist-clean |
| 6 | else |
| 7 | @CODE_COVERAGE_RULES@ |
| 8 | endif |
| 9 | |
| 10 | AM_LIBS = $(CODE_COVERAGE_LIBS) |
| 11 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG $(GTEST_CPPFLAGS) |
| 12 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 13 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
| 14 | AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \ |
| 15 | $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS) |
| 16 | |
Jayanth Othayoth | 0aa0d11 | 2018-09-03 03:47:27 -0500 | [diff] [blame] | 17 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 18 | |
| 19 | # Build these headers, don't install them |
| 20 | noinst_HEADERS = \ |
Jayanth Othayoth | cfbc8dc | 2018-09-03 07:22:27 -0500 | [diff] [blame] | 21 | certs_manager.hpp \ |
Marri Devender Rao | 6ceec40 | 2019-02-01 03:15:19 -0600 | [diff] [blame] | 22 | argument.hpp \ |
Marri Devender Rao | f4d6348 | 2019-05-02 06:35:34 -0500 | [diff] [blame] | 23 | certificate.hpp \ |
Marri Devender Rao | ffad1ef | 2019-06-03 04:54:12 -0500 | [diff] [blame] | 24 | csr.hpp \ |
| 25 | watch.hpp |
Jayanth Othayoth | 0aa0d11 | 2018-09-03 03:47:27 -0500 | [diff] [blame] | 26 | |
Patrick Venture | 278a6a6 | 2019-03-28 12:57:35 -0700 | [diff] [blame] | 27 | bin_PROGRAMS = \ |
Jayanth Othayoth | 0aa0d11 | 2018-09-03 03:47:27 -0500 | [diff] [blame] | 28 | phosphor-certificate-manager |
| 29 | |
| 30 | phosphor_certificate_manager_SOURCES = \ |
| 31 | mainapp.cpp \ |
Jayanth Othayoth | cfbc8dc | 2018-09-03 07:22:27 -0500 | [diff] [blame] | 32 | certs_manager.cpp \ |
Marri Devender Rao | 6ceec40 | 2019-02-01 03:15:19 -0600 | [diff] [blame] | 33 | argument.cpp \ |
Marri Devender Rao | f4d6348 | 2019-05-02 06:35:34 -0500 | [diff] [blame] | 34 | certificate.cpp \ |
Marri Devender Rao | ffad1ef | 2019-06-03 04:54:12 -0500 | [diff] [blame] | 35 | csr.cpp \ |
| 36 | watch.cpp |
Jayanth Othayoth | cfbc8dc | 2018-09-03 07:22:27 -0500 | [diff] [blame] | 37 | |
| 38 | phosphor_certificate_manager_LDFLAGS = \ |
| 39 | $(SDBUSPLUS_LIBS) \ |
Marri Devender Rao | f468271 | 2019-03-19 05:00:28 -0500 | [diff] [blame] | 40 | $(SDEVENTPLUS_LIBS) \ |
Jayanth Othayoth | cfbc8dc | 2018-09-03 07:22:27 -0500 | [diff] [blame] | 41 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Patrick Venture | 3dd7401 | 2018-12-03 07:46:55 -0800 | [diff] [blame] | 42 | $(PHOSPHOR_LOGGING_LIBS) \ |
Patrick Venture | 8d100c1 | 2018-12-03 08:36:00 -0800 | [diff] [blame] | 43 | $(OPENSSL_LIBS) \ |
| 44 | -lstdc++fs |
Jayanth Othayoth | cfbc8dc | 2018-09-03 07:22:27 -0500 | [diff] [blame] | 45 | |
| 46 | phosphor_certificate_manager_CXXFLAGS = \ |
| 47 | $(SYSTEMD_CFLAGS) \ |
Marri Devender Rao | f468271 | 2019-03-19 05:00:28 -0500 | [diff] [blame] | 48 | $(SDEVENTPLUS_LIBS) \ |
Patrick Venture | 3dd7401 | 2018-12-03 07:46:55 -0800 | [diff] [blame] | 49 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 50 | $(PHOSPHOR_LOGGING_CFLAGS) |
Marri Devender Rao | 947258d | 2018-09-25 10:52:24 -0500 | [diff] [blame] | 51 | |
Lakshminarayana R. Kammath | 480f30d | 2020-05-21 10:02:28 -0500 | [diff] [blame] | 52 | SUBDIRS = test |
| 53 | |
Ravi Teja | a49895e | 2020-06-16 03:57:58 -0500 | [diff] [blame] | 54 | if CA_CERT_EXTENSION |
| 55 | SUBDIRS += bmc-vmi-ca |
| 56 | endif |
| 57 | |
Lakshminarayana R. Kammath | 480f30d | 2020-05-21 10:02:28 -0500 | [diff] [blame] | 58 | check_PROGRAMS = |
| 59 | XFAIL_TESTS = |
| 60 | |
| 61 | TESTS = $(check_PROGRAMS) |