Andrew Geissler | 3652902 | 2016-11-29 15:23:54 -0600 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 3 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 4 | include $(top_srcdir)/aminclude_static.am |
| 5 | clean-local: code-coverage-clean |
| 6 | distclean-local: code-coverage-dist-clean |
| 7 | else |
| 8 | @CODE_COVERAGE_RULES@ |
| 9 | endif |
| 10 | |
Andrew Geissler | 6440006 | 2019-08-13 13:43:23 -0500 | [diff] [blame] | 11 | systemdsystemunit_DATA = \ |
Andrew Geissler | 1cf6162 | 2019-12-10 14:39:32 -0600 | [diff] [blame] | 12 | ./service_files/phosphor-systemd-target-monitor.service |
Andrew Geissler | 6440006 | 2019-08-13 13:43:23 -0500 | [diff] [blame] | 13 | |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 14 | AM_LIBS = $(CODE_COVERAGE_LIBS) |
| 15 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG $(GTEST_CPPFLAGS) |
| 16 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 17 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) \ |
| 18 | -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY \ |
Andrew Geissler | 234a317 | 2019-08-09 14:30:02 -0500 | [diff] [blame] | 19 | -DBOOST_ALL_NO_LIB $(SDEVENTPLUS_CFLAGS) \ |
| 20 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 21 | AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \ |
| 22 | $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS) \ |
Andrew Geissler | c543af2 | 2019-12-12 09:23:27 -0600 | [diff] [blame] | 23 | $(SDBUSPLUS_LIBS) $(SDEVENTPLUS_LIBS) \ |
Andrew Geissler | 234a317 | 2019-08-09 14:30:02 -0500 | [diff] [blame] | 24 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS) |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 25 | |
Patrick Venture | 1909626 | 2019-03-28 11:25:14 -0700 | [diff] [blame] | 26 | bin_PROGRAMS = \ |
Andrew Geissler | 794baed | 2017-01-16 13:12:21 -0600 | [diff] [blame] | 27 | phosphor-host-state-manager \ |
Josh D. King | bdd9cb7 | 2016-12-19 11:13:43 -0600 | [diff] [blame] | 28 | phosphor-chassis-state-manager \ |
Michael Tritz | 3ed1008 | 2017-03-20 23:28:09 -0500 | [diff] [blame] | 29 | phosphor-bmc-state-manager \ |
Andrew Geissler | b09463d | 2017-03-24 15:55:17 -0500 | [diff] [blame] | 30 | phosphor-discover-system-state \ |
Andrew Geissler | 891213b | 2019-07-30 14:08:17 -0500 | [diff] [blame] | 31 | phosphor-host-check \ |
| 32 | phosphor-systemd-target-monitor |
Andrew Geissler | 3652902 | 2016-11-29 15:23:54 -0600 | [diff] [blame] | 33 | |
Patrick Venture | 1909626 | 2019-03-28 11:25:14 -0700 | [diff] [blame] | 34 | dist_bin_SCRIPTS = \ |
Anthony Wilson | dc30523 | 2019-02-04 02:47:45 -0600 | [diff] [blame] | 35 | obmcutil |
| 36 | |
Andrew Geissler | 794baed | 2017-01-16 13:12:21 -0600 | [diff] [blame] | 37 | phosphor_host_state_manager_SOURCES = \ |
Andrew Geissler | 3652902 | 2016-11-29 15:23:54 -0600 | [diff] [blame] | 38 | host_state_manager.cpp \ |
Dhruvaraj Subhashchandran | 3f47524 | 2017-07-12 00:44:27 -0500 | [diff] [blame] | 39 | host_state_manager_main.cpp \ |
Deepak Kodihalli | 3dd08a5 | 2017-07-25 07:34:44 -0500 | [diff] [blame] | 40 | settings.cpp |
Andrew Geissler | 3652902 | 2016-11-29 15:23:54 -0600 | [diff] [blame] | 41 | |
Andrew Geissler | 794baed | 2017-01-16 13:12:21 -0600 | [diff] [blame] | 42 | phosphor_chassis_state_manager_SOURCES = \ |
Andrew Geissler | a90a31a | 2016-12-13 16:16:28 -0600 | [diff] [blame] | 43 | chassis_state_manager.cpp \ |
William A. Kennington III | d998f82 | 2018-10-17 23:17:57 -0700 | [diff] [blame] | 44 | chassis_state_manager_main.cpp |
Andrew Geissler | a90a31a | 2016-12-13 16:16:28 -0600 | [diff] [blame] | 45 | |
Josh D. King | bdd9cb7 | 2016-12-19 11:13:43 -0600 | [diff] [blame] | 46 | phosphor_bmc_state_manager_SOURCES = \ |
| 47 | bmc_state_manager.cpp \ |
Josh D. King | bdd9cb7 | 2016-12-19 11:13:43 -0600 | [diff] [blame] | 48 | bmc_state_manager_main.cpp |
| 49 | |
Michael Tritz | 3ed1008 | 2017-03-20 23:28:09 -0500 | [diff] [blame] | 50 | phosphor_discover_system_state_SOURCES = \ |
Deepak Kodihalli | 55f132b | 2017-07-25 07:36:06 -0500 | [diff] [blame] | 51 | discover_system_state.cpp \ |
| 52 | settings.cpp |
Michael Tritz | 3ed1008 | 2017-03-20 23:28:09 -0500 | [diff] [blame] | 53 | |
Andrew Geissler | b09463d | 2017-03-24 15:55:17 -0500 | [diff] [blame] | 54 | phosphor_host_check_SOURCES = \ |
| 55 | host_check_main.cpp |
| 56 | |
Andrew Geissler | 891213b | 2019-07-30 14:08:17 -0500 | [diff] [blame] | 57 | phosphor_systemd_target_monitor_SOURCES = \ |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 58 | systemd_target_monitor.cpp \ |
Andrew Geissler | 234a317 | 2019-08-09 14:30:02 -0500 | [diff] [blame] | 59 | systemd_target_parser.cpp \ |
| 60 | systemd_target_signal.cpp |
Andrew Geissler | 891213b | 2019-07-30 14:08:17 -0500 | [diff] [blame] | 61 | |
Deepak Kodihalli | 3dd08a5 | 2017-07-25 07:34:44 -0500 | [diff] [blame] | 62 | generic_cxxflags = \ |
| 63 | $(SYSTEMD_CFLAGS) \ |
| 64 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 65 | $(SDBUSPLUS_CFLAGS) \ |
| 66 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 67 | |
| 68 | generic_ldflags = \ |
| 69 | $(SYSTEMD_LIBS) \ |
| 70 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Nagaraju Goruganti | cb781fe | 2018-04-06 13:41:01 -0500 | [diff] [blame] | 71 | $(SDBUSPLUS_LIBS) \ |
Deepak Kodihalli | 3dd08a5 | 2017-07-25 07:34:44 -0500 | [diff] [blame] | 72 | $(PHOSPHOR_LOGGING_LIBS) |
Patrick Williams | 515f74b | 2017-01-30 10:56:09 -0600 | [diff] [blame] | 73 | |
| 74 | phosphor_host_state_manager_CXXFLAGS = $(generic_cxxflags) |
Dhruvaraj Subhashchandran | 3f47524 | 2017-07-12 00:44:27 -0500 | [diff] [blame] | 75 | phosphor_host_state_manager_LDFLAGS = $(generic_ldflags) -lstdc++fs |
Patrick Williams | 515f74b | 2017-01-30 10:56:09 -0600 | [diff] [blame] | 76 | |
William A. Kennington III | d998f82 | 2018-10-17 23:17:57 -0700 | [diff] [blame] | 77 | phosphor_chassis_state_manager_CXXFLAGS = \ |
| 78 | $(generic_cxxflags) \ |
| 79 | $(SDEVENTPLUS_CFLAGS) |
| 80 | phosphor_chassis_state_manager_LDFLAGS = \ |
| 81 | $(generic_ldflags) \ |
| 82 | $(SDEVENTPLUS_LIBS) \ |
| 83 | -lstdc++fs |
Patrick Williams | 515f74b | 2017-01-30 10:56:09 -0600 | [diff] [blame] | 84 | |
| 85 | phosphor_bmc_state_manager_CXXFLAGS = $(generic_cxxflags) |
| 86 | phosphor_bmc_state_manager_LDFLAGS = $(generic_ldflags) |
Michael Tritz | 3ed1008 | 2017-03-20 23:28:09 -0500 | [diff] [blame] | 87 | |
| 88 | phosphor_discover_system_state_CXXFLAGS = $(generic_cxxflags) |
| 89 | phosphor_discover_system_state_LDFLAGS = $(generic_ldflags) |
Andrew Geissler | b09463d | 2017-03-24 15:55:17 -0500 | [diff] [blame] | 90 | |
| 91 | phosphor_host_check_CXXFLAGS = $(generic_cxxflags) |
| 92 | phosphor_host_check_LDFLAGS = $(generic_ldflags) |
Andrew Geissler | 891213b | 2019-07-30 14:08:17 -0500 | [diff] [blame] | 93 | |
| 94 | phosphor_systemd_target_monitor_CXXFLAGS = \ |
| 95 | $(generic_cxxflags) \ |
| 96 | $(SDEVENTPLUS_CFLAGS) |
| 97 | phosphor_systemd_target_monitor_LDFLAGS = \ |
| 98 | $(generic_ldflags) \ |
| 99 | $(SDEVENTPLUS_LIBS) \ |
| 100 | -lstdc++fs |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 101 | |
Andrew Geissler | 6440006 | 2019-08-13 13:43:23 -0500 | [diff] [blame] | 102 | install-data-local: |
| 103 | mkdir -p ${DESTDIR}/$(sysconfdir)/phosphor-systemd-target-monitor |
| 104 | cp $(srcdir)/phosphor-target-monitor-default.json ${DESTDIR}/$(sysconfdir)/phosphor-systemd-target-monitor |
Andrew Geissler | 693eaed | 2019-08-02 14:12:28 -0500 | [diff] [blame] | 105 | |
| 106 | check_PROGRAMS = |
| 107 | XFAIL_TESTS = |
| 108 | |
| 109 | # Ignore system headers |
| 110 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 111 | |
| 112 | include test/Makefile.am.include |
| 113 | |
| 114 | TESTS = $(check_PROGRAMS) |