blob: ede9703ab6c0121067c30c31e2812c6bdc1b94ac [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 \
Matt Spinler34aca012018-09-25 11:21:06 -05006 local_users.cpp \
Tom Josephb61b1072019-01-28 12:32:52 +05307 org/open_power/OCC/Metrics/error.cpp \
8 inventory-sensor.cpp
Tom Joseph56c534b2017-10-17 12:38:42 +05309
10BUILT_SOURCES = org/open_power/OCC/Metrics/error.hpp \
Tom Josephb61b1072019-01-28 12:32:52 +053011 org/open_power/OCC/Metrics/error.cpp \
12 inventory-sensor.cpp
13
14CLEANFILES = $(BUILT_SOURCES)
Vishwanatha Subbanna07655062017-07-14 20:31:57 +053015
16liboemhandler_la_LDFLAGS = $(SYSTEMD_LIBS)\
17 $(SDBUSPLUS_LIBS) \
18 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
19 $(PHOSPHOR_LOGGING_LIBS) \
20 -version-info 0:0:0 -shared
21
22liboemhandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
23 $(SDBUSPLUS_CFLAGS) \
24 $(OPENPOWER_DBUS_INTERFACES_CFLAGS) \
25 $(PHOSPHOR_LOGGING_CFLAGS) \
26 $(AM_CXXFLAGS)
Tom Joseph56c534b2017-10-17 12:38:42 +053027
28org/open_power/OCC/Metrics/error.hpp: ${top_srcdir}/org/open_power/OCC/Metrics.errors.yaml
29 @mkdir -p `dirname $@`
30 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.Metrics > $@
31
32org/open_power/OCC/Metrics/error.cpp: ${top_srcdir}/org/open_power/OCC/Metrics.errors.yaml
33 @mkdir -p `dirname $@`
34 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.Metrics > $@
Tom Josephb61b1072019-01-28 12:32:52 +053035
36inventory-sensor.cpp:
37 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp