1liboemhandlerdir = ${libdir}/ipmid-providers
2liboemhandler_LTLIBRARIES = liboemhandler.la
3
4liboemhandler_la_SOURCES = oemhandler.cpp \
5                           host-interface.cpp \
6                           org/open_power/OCC/Metrics/error.cpp \
7                           inventory-sensor.cpp
8
9BUILT_SOURCES = org/open_power/OCC/Metrics/error.hpp \
10                org/open_power/OCC/Metrics/error.cpp \
11                inventory-sensor.cpp
12
13CLEANFILES = $(BUILT_SOURCES)
14
15liboemhandler_la_LDFLAGS = $(SYSTEMD_LIBS)\
16                           $(SDBUSPLUS_LIBS) \
17                           $(LIBIPMID_LIBS) \
18                           $(LIBIPMID_HOST_LIBS) \
19                           $(PHOSPHOR_LOGGING_LIBS) \
20                           -version-info 0:0:0 -shared
21
22liboemhandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
23                            $(SDBUSPLUS_CFLAGS) \
24                            $(LIBIPMID_CFLAGS) \
25                            $(LIBIPMID_HOST_CFLAGS) \
26                            $(PHOSPHOR_LOGGING_CFLAGS) \
27                            $(AM_CXXFLAGS)
28
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 > $@
36
37inventory-sensor.cpp:
38	$(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
39