blob: fd4cd965a44cfe37d44b94b61c9ccdf47eaea145 [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 Spinlerda2e0fe2018-01-18 11:10:53 -060016 gpio.cpp \
Matt Spinler015e3ad2017-08-01 11:20:47 -050017 pmbus.cpp \
Matt Spinler974c9162017-08-04 08:36:37 -050018 timer.cpp \
Matt Spinler84cd0a52017-08-04 08:53:30 -050019 utility.cpp \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050020 org/open_power/Witherspoon/Fault/error.cpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050021
22nobase_nodist_include_HEADERS = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050023 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050024
25BUILT_SOURCES = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050026 org/open_power/Witherspoon/Fault/error.cpp \
27 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050028
Brandon Wymane0eb45c2017-10-06 12:58:42 -050029org/open_power/Witherspoon/Fault/error.hpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050030 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050031 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header org.open_power.Witherspoon.Fault > $@
Matt Spinler84cd0a52017-08-04 08:53:30 -050032
Brandon Wymane0eb45c2017-10-06 12:58:42 -050033org/open_power/Witherspoon/Fault/error.cpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050034 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050035 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp org.open_power.Witherspoon.Fault > $@
Matt Spinlerd82a5f42017-07-24 13:40:37 -050036
Brandon Wyman24e422f2017-07-25 19:40:14 -050037SUBDIRS = . power-sequencer power-supply test