blob: 00ea59f843f9ee160a79608f6cd09d4a5907bde2 [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 \
Tom Josephb61b1072019-01-28 12:32:52 +05306 org/open_power/OCC/Metrics/error.cpp \
7 inventory-sensor.cpp
Tom Joseph56c534b2017-10-17 12:38:42 +05308
9BUILT_SOURCES = org/open_power/OCC/Metrics/error.hpp \
Tom Josephb61b1072019-01-28 12:32:52 +053010 org/open_power/OCC/Metrics/error.cpp \
11 inventory-sensor.cpp
12
13CLEANFILES = $(BUILT_SOURCES)
Vishwanatha Subbanna07655062017-07-14 20:31:57 +053014
15liboemhandler_la_LDFLAGS = $(SYSTEMD_LIBS)\
16 $(SDBUSPLUS_LIBS) \
William A. Kennington III822eaf62019-02-12 15:20:06 -080017 $(LIBIPMID_LIBS) \
18 $(LIBIPMID_HOST_LIBS) \
Vishwanatha Subbanna07655062017-07-14 20:31:57 +053019 $(PHOSPHOR_LOGGING_LIBS) \
20 -version-info 0:0:0 -shared
21
22liboemhandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
23 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III822eaf62019-02-12 15:20:06 -080024 $(LIBIPMID_CFLAGS) \
25 $(LIBIPMID_HOST_CFLAGS) \
Vishwanatha Subbanna07655062017-07-14 20:31:57 +053026 $(PHOSPHOR_LOGGING_CFLAGS) \
27 $(AM_CXXFLAGS)
Tom Joseph56c534b2017-10-17 12:38:42 +053028
29org/open_power/OCC/Metrics/error.hpp: ${top_srcdir}/org/open_power/OCC/Metrics.errors.yaml
30 @mkdir -p `dirname $@`
31 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.Metrics > $@
32
33org/open_power/OCC/Metrics/error.cpp: ${top_srcdir}/org/open_power/OCC/Metrics.errors.yaml
34 @mkdir -p `dirname $@`
35 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.Metrics > $@
Tom Josephb61b1072019-01-28 12:32:52 +053036
37inventory-sensor.cpp:
38 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp