Dhruvaraj Subhashchandran | 59b86cd | 2017-04-13 00:19:44 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | AM_CPPFLAGS = -I$(top_srcdir) |
| 3 | |
George Liu | ee1c19e | 2021-04-01 15:02:57 +0800 | [diff] [blame] | 4 | if WANTS_OPERATIONAL_STATUS |
| 5 | noinst_HEADERS = operational-status-monitor.hpp |
| 6 | else |
Dhruvaraj Subhashchandran | 59b86cd | 2017-04-13 00:19:44 -0500 | [diff] [blame] | 7 | noinst_HEADERS = fru-fault-monitor.hpp |
George Liu | ee1c19e | 2021-04-01 15:02:57 +0800 | [diff] [blame] | 8 | endif |
Dhruvaraj Subhashchandran | 59b86cd | 2017-04-13 00:19:44 -0500 | [diff] [blame] | 9 | |
Patrick Venture | ab3b247 | 2019-03-28 11:35:44 -0700 | [diff] [blame] | 10 | bin_PROGRAMS = phosphor-fru-fault-monitor |
Dhruvaraj Subhashchandran | 59b86cd | 2017-04-13 00:19:44 -0500 | [diff] [blame] | 11 | |
| 12 | phosphor_fru_fault_monitor_SOURCES = \ |
Dhruvaraj Subhashchandran | 3c6f29a | 2017-04-20 09:47:28 -0500 | [diff] [blame] | 13 | monitor-main.cpp \ |
| 14 | xyz/openbmc_project/Led/Mapper/error.cpp \ |
| 15 | xyz/openbmc_project/Led/Fru/Monitor/error.cpp |
| 16 | |
George Liu | ee1c19e | 2021-04-01 15:02:57 +0800 | [diff] [blame] | 17 | if WANTS_OPERATIONAL_STATUS |
| 18 | phosphor_fru_fault_monitor_SOURCES += \ |
| 19 | ../utils.cpp \ |
| 20 | operational-status-monitor.cpp |
| 21 | else |
| 22 | phosphor_fru_fault_monitor_SOURCES += \ |
| 23 | fru-fault-monitor.cpp |
| 24 | endif |
| 25 | |
Dhruvaraj Subhashchandran | 3c6f29a | 2017-04-20 09:47:28 -0500 | [diff] [blame] | 26 | BUILT_SOURCES = xyz/openbmc_project/Led/Mapper/error.hpp \ |
| 27 | xyz/openbmc_project/Led/Mapper/error.cpp \ |
| 28 | xyz/openbmc_project/Led/Fru/Monitor/error.hpp \ |
| 29 | xyz/openbmc_project/Led/Fru/Monitor/error.cpp |
| 30 | |
| 31 | CLEANFILES = ${BUILT_SOURCES} |
Dhruvaraj Subhashchandran | 59b86cd | 2017-04-13 00:19:44 -0500 | [diff] [blame] | 32 | |
| 33 | phosphor_fru_fault_monitor_LDFLAGS = $(SDBUSPLUS_LIBS) \ |
| 34 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 35 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 36 | phosphor_fru_fault_monitor_CFLAGS = $(SDBUSPLUS_CFLAGS) \ |
| 37 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 38 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Dhruvaraj Subhashchandran | 3c6f29a | 2017-04-20 09:47:28 -0500 | [diff] [blame] | 39 | |
| 40 | xyz/openbmc_project/Led/Mapper/error.hpp: ${top_srcdir}/xyz/openbmc_project/Led/Mapper.errors.yaml |
| 41 | @mkdir -p `dirname $@` |
| 42 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Led.Mapper > $@ |
| 43 | |
| 44 | xyz/openbmc_project/Led/Mapper/error.cpp: ${top_srcdir}/xyz/openbmc_project/Led/Mapper.errors.yaml |
| 45 | @mkdir -p `dirname $@` |
| 46 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Led.Mapper > $@ |
| 47 | |
| 48 | xyz/openbmc_project/Led/Fru/Monitor/error.hpp: ${top_srcdir}/xyz/openbmc_project/Led/Fru/Monitor.errors.yaml |
| 49 | @mkdir -p `dirname $@` |
| 50 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Led.Fru.Monitor > $@ |
| 51 | |
| 52 | xyz/openbmc_project/Led/Fru/Monitor/error.cpp: ${top_srcdir}/xyz/openbmc_project/Led/Fru/Monitor.errors.yaml |
| 53 | @mkdir -p `dirname $@` |
| 54 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Led.Fru.Monitor > $@ |