| AM_DEFAULT_SOURCE_EXT = .cpp |
| |
| if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| include $(top_srcdir)/aminclude_static.am |
| clean-local: code-coverage-clean |
| distclean-local: code-coverage-dist-clean |
| else |
| @CODE_COVERAGE_RULES@ |
| endif |
| |
| systemdsystemunit_DATA = \ |
| phosphor-systemd-target-monitor.service |
| |
| AM_LIBS = $(CODE_COVERAGE_LIBS) |
| AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG $(GTEST_CPPFLAGS) |
| AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) \ |
| -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY \ |
| -DBOOST_ALL_NO_LIB $(SDEVENTPLUS_CFLAGS) \ |
| $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) |
| AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \ |
| $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS) \ |
| $(SDBUSPLUS_LIBS) -lboost_system $(SDEVENTPLUS_LIBS) \ |
| $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS) |
| |
| bin_PROGRAMS = \ |
| phosphor-host-state-manager \ |
| phosphor-chassis-state-manager \ |
| phosphor-bmc-state-manager \ |
| phosphor-discover-system-state \ |
| phosphor-host-check \ |
| phosphor-systemd-target-monitor |
| |
| dist_bin_SCRIPTS = \ |
| obmcutil |
| |
| phosphor_host_state_manager_SOURCES = \ |
| host_state_manager.cpp \ |
| host_state_manager_main.cpp \ |
| settings.cpp |
| |
| phosphor_chassis_state_manager_SOURCES = \ |
| chassis_state_manager.cpp \ |
| chassis_state_manager_main.cpp |
| |
| phosphor_bmc_state_manager_SOURCES = \ |
| bmc_state_manager.cpp \ |
| bmc_state_manager_main.cpp |
| |
| phosphor_discover_system_state_SOURCES = \ |
| discover_system_state.cpp \ |
| settings.cpp |
| |
| phosphor_host_check_SOURCES = \ |
| host_check_main.cpp |
| |
| phosphor_systemd_target_monitor_SOURCES = \ |
| systemd_target_monitor.cpp \ |
| systemd_target_parser.cpp \ |
| systemd_target_signal.cpp |
| |
| generic_cxxflags = \ |
| $(SYSTEMD_CFLAGS) \ |
| $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| $(SDBUSPLUS_CFLAGS) \ |
| $(PHOSPHOR_LOGGING_CFLAGS) |
| |
| generic_ldflags = \ |
| $(SYSTEMD_LIBS) \ |
| $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| $(SDBUSPLUS_LIBS) \ |
| $(PHOSPHOR_LOGGING_LIBS) |
| |
| phosphor_host_state_manager_CXXFLAGS = $(generic_cxxflags) |
| phosphor_host_state_manager_LDFLAGS = $(generic_ldflags) -lstdc++fs |
| |
| phosphor_chassis_state_manager_CXXFLAGS = \ |
| $(generic_cxxflags) \ |
| $(SDEVENTPLUS_CFLAGS) |
| phosphor_chassis_state_manager_LDFLAGS = \ |
| $(generic_ldflags) \ |
| $(SDEVENTPLUS_LIBS) \ |
| -lstdc++fs |
| |
| phosphor_bmc_state_manager_CXXFLAGS = $(generic_cxxflags) |
| phosphor_bmc_state_manager_LDFLAGS = $(generic_ldflags) |
| |
| phosphor_discover_system_state_CXXFLAGS = $(generic_cxxflags) |
| phosphor_discover_system_state_LDFLAGS = $(generic_ldflags) |
| |
| phosphor_host_check_CXXFLAGS = $(generic_cxxflags) |
| phosphor_host_check_LDFLAGS = $(generic_ldflags) |
| |
| phosphor_systemd_target_monitor_CXXFLAGS = \ |
| $(generic_cxxflags) \ |
| $(SDEVENTPLUS_CFLAGS) |
| phosphor_systemd_target_monitor_LDFLAGS = \ |
| $(generic_ldflags) \ |
| $(SDEVENTPLUS_LIBS) \ |
| -lstdc++fs |
| |
| install-data-local: |
| mkdir -p ${DESTDIR}/$(sysconfdir)/phosphor-systemd-target-monitor |
| cp $(srcdir)/phosphor-target-monitor-default.json ${DESTDIR}/$(sysconfdir)/phosphor-systemd-target-monitor |
| |
| check_PROGRAMS = |
| XFAIL_TESTS = |
| |
| # Ignore system headers |
| CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| |
| include test/Makefile.am.include |
| |
| TESTS = $(check_PROGRAMS) |