blob: a3330fd4282f8247a33547e7546c2335aac1410b [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 = \
Matt Spinlerb54357f2017-08-21 14:38:54 -05006 -lstdc++fs \
Matt Spinlerd82a5f42017-07-24 13:40:37 -05007 $(PHOSPHOR_LOGGING_LIBS) \
Matt Spinler84cd0a52017-08-04 08:53:30 -05008 $(SDBUSPLUS_LIBS) \
9 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050010libpower_la_CXXFLAGS = \
11 $(PHOSPHOR_LOGGING_CFLAGS) \
Matt Spinler84cd0a52017-08-04 08:53:30 -050012 $(SDBUSPLUS_CFLAGS) \
13 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050014
Matt Spinler974c9162017-08-04 08:36:37 -050015libpower_la_SOURCES = \
Matt Spinler015e3ad2017-08-01 11:20:47 -050016 pmbus.cpp \
Matt Spinler974c9162017-08-04 08:36:37 -050017 timer.cpp \
Matt Spinler84cd0a52017-08-04 08:53:30 -050018 utility.cpp \
19 xyz/openbmc_project/Power/Fault/error.cpp
20
21nobase_nodist_include_HEADERS = \
22 xyz/openbmc_project/Power/Fault/error.hpp
23
24BUILT_SOURCES = \
25 xyz/openbmc_project/Power/Fault/error.cpp \
26 xyz/openbmc_project/Power/Fault/error.hpp
27
28xyz/openbmc_project/Power/Fault/error.hpp: ${srcdir}/xyz/openbmc_project/Power/Fault.errors.yaml
29 @mkdir -p `dirname $@`
30 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Power.Fault > $@
31
32xyz/openbmc_project/Power/Fault/error.cpp: ${srcdir}/xyz/openbmc_project/Power/Fault.errors.yaml
33 @mkdir -p `dirname $@`
34 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Power.Fault > $@
Matt Spinlerd82a5f42017-07-24 13:40:37 -050035
Brandon Wyman24e422f2017-07-25 19:40:14 -050036SUBDIRS = . power-sequencer power-supply test