blob: eae105c68f2c0670513bbab0d3ea7236964c30f7 [file] [log] [blame]
Dhruvaraj Subhashchandran59b86cd2017-04-13 00:19:44 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -I$(top_srcdir)
3
4noinst_HEADERS = fru-fault-monitor.hpp
5
Patrick Ventureab3b2472019-03-28 11:35:44 -07006bin_PROGRAMS = phosphor-fru-fault-monitor
Dhruvaraj Subhashchandran59b86cd2017-04-13 00:19:44 -05007
8phosphor_fru_fault_monitor_SOURCES = \
9 fru-fault-monitor.cpp \
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050010 monitor-main.cpp \
11 xyz/openbmc_project/Led/Mapper/error.cpp \
12 xyz/openbmc_project/Led/Fru/Monitor/error.cpp
13
14BUILT_SOURCES = xyz/openbmc_project/Led/Mapper/error.hpp \
15 xyz/openbmc_project/Led/Mapper/error.cpp \
16 xyz/openbmc_project/Led/Fru/Monitor/error.hpp \
17 xyz/openbmc_project/Led/Fru/Monitor/error.cpp
18
19CLEANFILES = ${BUILT_SOURCES}
Dhruvaraj Subhashchandran59b86cd2017-04-13 00:19:44 -050020
21phosphor_fru_fault_monitor_LDFLAGS = $(SDBUSPLUS_LIBS) \
22 $(PHOSPHOR_LOGGING_LIBS) \
23 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
24phosphor_fru_fault_monitor_CFLAGS = $(SDBUSPLUS_CFLAGS) \
25 $(PHOSPHOR_LOGGING_CFLAGS) \
26 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Dhruvaraj Subhashchandran3c6f29a2017-04-20 09:47:28 -050027
28xyz/openbmc_project/Led/Mapper/error.hpp: ${top_srcdir}/xyz/openbmc_project/Led/Mapper.errors.yaml
29 @mkdir -p `dirname $@`
30 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Led.Mapper > $@
31
32xyz/openbmc_project/Led/Mapper/error.cpp: ${top_srcdir}/xyz/openbmc_project/Led/Mapper.errors.yaml
33 @mkdir -p `dirname $@`
34 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Led.Mapper > $@
35
36xyz/openbmc_project/Led/Fru/Monitor/error.hpp: ${top_srcdir}/xyz/openbmc_project/Led/Fru/Monitor.errors.yaml
37 @mkdir -p `dirname $@`
38 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Led.Fru.Monitor > $@
39
40xyz/openbmc_project/Led/Fru/Monitor/error.cpp: ${top_srcdir}/xyz/openbmc_project/Led/Fru/Monitor.errors.yaml
41 @mkdir -p `dirname $@`
42 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Led.Fru.Monitor > $@