blob: 7f3648f6eb76d287926dccbba505bf0ccf05d4ab [file] [log] [blame]
Tomcbfd6ec2016-09-14 17:45:55 +05301liboemhandlerdir = ${libdir}/ipmid-providers
Matthew Barth70dbc582016-09-20 10:16:52 -05002liboemhandler_LTLIBRARIES = liboemhandler.la
Vishwanatha Subbanna07655062017-07-14 20:31:57 +05303
4liboemhandler_la_SOURCES = oemhandler.cpp \
Tom Joseph56c534b2017-10-17 12:38:42 +05305 host-interface.cpp \
6 org/open_power/OCC/Metrics/error.cpp
7
8BUILT_SOURCES = org/open_power/OCC/Metrics/error.hpp \
9 org/open_power/OCC/Metrics/error.cpp
Vishwanatha Subbanna07655062017-07-14 20:31:57 +053010
11liboemhandler_la_LDFLAGS = $(SYSTEMD_LIBS)\
12 $(SDBUSPLUS_LIBS) \
13 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
14 $(PHOSPHOR_LOGGING_LIBS) \
15 -version-info 0:0:0 -shared
16
17liboemhandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
18 $(SDBUSPLUS_CFLAGS) \
19 $(OPENPOWER_DBUS_INTERFACES_CFLAGS) \
20 $(PHOSPHOR_LOGGING_CFLAGS) \
21 $(AM_CXXFLAGS)
Tom Joseph56c534b2017-10-17 12:38:42 +053022
23org/open_power/OCC/Metrics/error.hpp: ${top_srcdir}/org/open_power/OCC/Metrics.errors.yaml
24 @mkdir -p `dirname $@`
25 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.Metrics > $@
26
27org/open_power/OCC/Metrics/error.cpp: ${top_srcdir}/org/open_power/OCC/Metrics.errors.yaml
28 @mkdir -p `dirname $@`
29 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.Metrics > $@