blob: c1a90ed16a6f2d7983d9e27d28c0d033399d0a56 [file] [log] [blame]
Matt Spinlerd82a5f42017-07-24 13:40:37 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2
3noinst_LTLIBRARIES = libpower.la
4libpower_la_LDFLAGS = -static
5libpower_la_LIBADD = \
6 $(PHOSPHOR_LOGGING_LIBS) \
Matt Spinler84cd0a52017-08-04 08:53:30 -05007 $(SDBUSPLUS_LIBS) \
8 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -05009libpower_la_CXXFLAGS = \
10 $(PHOSPHOR_LOGGING_CFLAGS) \
Matt Spinler84cd0a52017-08-04 08:53:30 -050011 $(SDBUSPLUS_CFLAGS) \
12 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050013
Matt Spinler974c9162017-08-04 08:36:37 -050014libpower_la_SOURCES = \
Matt Spinler015e3ad2017-08-01 11:20:47 -050015 pmbus.cpp \
Matt Spinler974c9162017-08-04 08:36:37 -050016 timer.cpp \
Matt Spinler84cd0a52017-08-04 08:53:30 -050017 utility.cpp \
18 xyz/openbmc_project/Power/Fault/error.cpp
19
20nobase_nodist_include_HEADERS = \
21 xyz/openbmc_project/Power/Fault/error.hpp
22
23BUILT_SOURCES = \
24 xyz/openbmc_project/Power/Fault/error.cpp \
25 xyz/openbmc_project/Power/Fault/error.hpp
26
27xyz/openbmc_project/Power/Fault/error.hpp: ${srcdir}/xyz/openbmc_project/Power/Fault.errors.yaml
28 @mkdir -p `dirname $@`
29 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Power.Fault > $@
30
31xyz/openbmc_project/Power/Fault/error.cpp: ${srcdir}/xyz/openbmc_project/Power/Fault.errors.yaml
32 @mkdir -p `dirname $@`
33 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Power.Fault > $@
Matt Spinlerd82a5f42017-07-24 13:40:37 -050034
Matt Spinlerafb39132017-08-14 13:53:07 -050035SUBDIRS = . power-sequencer