blob: 548e7ff44237bdd758803d0cedbfbc997187e4ee [file] [log] [blame]
Deepak Kodihalli47795312017-03-17 07:12:08 -05001# Build these headers, don't install them
2noinst_HEADERS = \
Vishwanatha Subbanna307d80b2017-06-28 15:56:09 +05303 occ_pass_through.hpp \
Andrew Geissler32016d12017-06-20 15:46:52 -05004 occ_status.hpp \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +05305 powercap.hpp \
6 occ_errors.hpp \
Deepak Kodihalli5f031f32017-07-26 08:25:59 -05007 occ_events.hpp \
8 occ_finder.hpp
Deepak Kodihalli47795312017-03-17 07:12:08 -05009
Deepak Kodihalli92a63412017-03-17 05:01:00 -050010sbin_PROGRAMS = openpower-occ-control
11openpower_occ_control_SOURCES = \
Deepak Kodihalli6b492fb2017-03-18 01:09:28 -050012 occ_pass_through.cpp \
Vishwanatha Subbanna307d80b2017-06-28 15:56:09 +053013 occ_status.cpp \
Vishwanatha Subbanna32e84e92017-06-28 19:17:28 +053014 occ_device.cpp \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053015 occ_errors.cpp \
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053016 app.cpp \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053017 powercap.cpp \
Deepak Kodihalli5f031f32017-07-26 08:25:59 -050018 org/open_power/OCC/Device/error.cpp \
19 occ_finder.cpp
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053020
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053021BUILT_SOURCES = org/open_power/OCC/Device/error.hpp \
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053022 org/open_power/OCC/Device/error.cpp \
23 occ_sensor.hpp
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053024
25CLEANFILES = ${BUILT_SOURCES}
Deepak Kodihalli92a63412017-03-17 05:01:00 -050026
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053027REQ_MAKO_FILE ?= ${top_srcdir}/occ_sensor.mako.hpp
28REQ_PY_SCRIPT ?= ${top_srcdir}/sensor_gen.py
29
30EXTRA_DIST = $(REQ_MAKO_FILE) $(REQ_PY_SCRIPT)
31
32occ_sensor.hpp: ${REQ_PY_SCRIPT} ${REQ_MAKO_FILE}
33 $(AM_V_GEN) ${PYTHON} ${REQ_PY_SCRIPT} -i ${YAML_PATH} > $@
34
Deepak Kodihalli92a63412017-03-17 05:01:00 -050035openpower_occ_control_LDFLAGS = \
36 $(SDBUSPLUS_LIBS) \
37 $(PHOSPHOR_LOGGING_LIBS) \
Deepak Kodihallifd358d12017-05-08 07:11:22 -050038 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053039 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Deepak Kodihallifd358d12017-05-08 07:11:22 -050040 -lstdc++fs
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053041
Deepak Kodihalli92a63412017-03-17 05:01:00 -050042openpower_occ_control_CXXFLAGS =
43 $(SDBUSPLUS_CFLAGS) \
44 $(PHOSPHOR_LOGGING_CFLAGS) \
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053045 $(OPENPOWER_DBUS_INTERFACES_CFLAGS) \
46 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053047
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053048org/open_power/OCC/Device/error.hpp: ${top_srcdir}/org/open_power/OCC/Device.errors.yaml
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053049 @mkdir -p `dirname $@`
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053050 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.Device > $@
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053051
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053052org/open_power/OCC/Device/error.cpp: ${top_srcdir}/org/open_power/OCC/Device.errors.yaml
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053053 @mkdir -p `dirname $@`
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053054 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.Device > $@
Andrew Geissler4cea4d22017-07-10 15:13:33 -050055
Vishwanatha Subbannaee4d83d2017-06-29 18:35:00 +053056SUBDIRS = . test