blob: 8fa771c76aebe80752f759b0b635113eb5927090 [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) \
Matt Spinler7d24ee82018-01-18 13:56:12 -06009 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
10 $(OPENPOWER_DBUS_INTERFACES_LIBS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050011libpower_la_CXXFLAGS = \
12 $(PHOSPHOR_LOGGING_CFLAGS) \
Matt Spinler84cd0a52017-08-04 08:53:30 -050013 $(SDBUSPLUS_CFLAGS) \
Matt Spinler7d24ee82018-01-18 13:56:12 -060014 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
15 $(OPENPOWER_DBUS_INTERFACES_CFLAGS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050016
Matt Spinler974c9162017-08-04 08:36:37 -050017libpower_la_SOURCES = \
Matt Spinlerda2e0fe2018-01-18 11:10:53 -060018 gpio.cpp \
Matt Spinler015e3ad2017-08-01 11:20:47 -050019 pmbus.cpp \
Matt Spinler974c9162017-08-04 08:36:37 -050020 timer.cpp \
Matt Spinler84cd0a52017-08-04 08:53:30 -050021 utility.cpp \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050022 org/open_power/Witherspoon/Fault/error.cpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050023
24nobase_nodist_include_HEADERS = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050025 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050026
27BUILT_SOURCES = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050028 org/open_power/Witherspoon/Fault/error.cpp \
29 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050030
Brandon Wymane0eb45c2017-10-06 12:58:42 -050031org/open_power/Witherspoon/Fault/error.hpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050032 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050033 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header org.open_power.Witherspoon.Fault > $@
Matt Spinler84cd0a52017-08-04 08:53:30 -050034
Brandon Wymane0eb45c2017-10-06 12:58:42 -050035org/open_power/Witherspoon/Fault/error.cpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050036 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050037 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp org.open_power.Witherspoon.Fault > $@
Matt Spinlerd82a5f42017-07-24 13:40:37 -050038
Matt Spinlerc180a182018-01-18 14:27:13 -060039SUBDIRS = . power-sequencer power-supply test power-supply/test