blob: ff49c2a63f082d3301e41ac076371b4604b9fcb5 [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 \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050019 org/open_power/Witherspoon/Fault/error.cpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050020
21nobase_nodist_include_HEADERS = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050022 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050023
24BUILT_SOURCES = \
Brandon Wymane0eb45c2017-10-06 12:58:42 -050025 org/open_power/Witherspoon/Fault/error.cpp \
26 org/open_power/Witherspoon/Fault/error.hpp
Matt Spinler84cd0a52017-08-04 08:53:30 -050027
Brandon Wymane0eb45c2017-10-06 12:58:42 -050028org/open_power/Witherspoon/Fault/error.hpp: ${srcdir}/org/open_power/Witherspoon/Fault.errors.yaml
Matt Spinler84cd0a52017-08-04 08:53:30 -050029 @mkdir -p `dirname $@`
Brandon Wymane0eb45c2017-10-06 12:58:42 -050030 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header org.open_power.Witherspoon.Fault > $@
Matt Spinler84cd0a52017-08-04 08:53:30 -050031
Brandon Wymane0eb45c2017-10-06 12:58:42 -050032org/open_power/Witherspoon/Fault/error.cpp: ${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-cpp org.open_power.Witherspoon.Fault > $@
Matt Spinlerd82a5f42017-07-24 13:40:37 -050035
Brandon Wyman24e422f2017-07-25 19:40:14 -050036SUBDIRS = . power-sequencer power-supply test