blob: ed9413e191acdc58622b53baf2488a59da62ec57 [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) \
William A. Kennington IIIe5a8b472018-10-18 00:40:04 -07009 $(SDEVENTPLUS_LIBS) \
Matt Spinler7d24ee82018-01-18 13:56:12 -060010 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
11 $(OPENPOWER_DBUS_INTERFACES_LIBS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050012libpower_la_CXXFLAGS = \
13 $(PHOSPHOR_LOGGING_CFLAGS) \
Matt Spinler84cd0a52017-08-04 08:53:30 -050014 $(SDBUSPLUS_CFLAGS) \
William A. Kennington IIIe5a8b472018-10-18 00:40:04 -070015 $(SDEVENTPLUS_CFLAGS) \
Matt Spinler7d24ee82018-01-18 13:56:12 -060016 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
17 $(OPENPOWER_DBUS_INTERFACES_CFLAGS)
Matt Spinlerd82a5f42017-07-24 13:40:37 -050018
Matt Spinler974c9162017-08-04 08:36:37 -050019libpower_la_SOURCES = \
Matt Spinlerda2e0fe2018-01-18 11:10:53 -060020 gpio.cpp \
Matt Spinler015e3ad2017-08-01 11:20:47 -050021 pmbus.cpp \
Matt Spinler84cd0a52017-08-04 08:53:30 -050022 utility.cpp \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050023 org/open_power/Witherspoon/Fault/error.cpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050024
25nobase_nodist_include_HEADERS = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050026 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050027
28BUILT_SOURCES = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050029 org/open_power/Witherspoon/Fault/error.cpp \
30 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050031
Brandon Wymane0eb45c2017-10-06 12:58:42 -050032org/open_power/Witherspoon/Fault/error.hpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050033 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050034 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header org.open_power.Witherspoon.Fault > $@
Matt Spinler84cd0a52017-08-04 08:53:30 -050035
Brandon Wymane0eb45c2017-10-06 12:58:42 -050036org/open_power/Witherspoon/Fault/error.cpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050037 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050038 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp org.open_power.Witherspoon.Fault > $@
Matt Spinlerd82a5f42017-07-24 13:40:37 -050039
Matt Spinlerc180a182018-01-18 14:27:13 -060040SUBDIRS = . power-sequencer power-supply test power-supply/test