Marri Devender Rao | cf4fdca | 2017-12-29 03:40:05 -0600 | [diff] [blame] | 1 | if !INSTALL_ERROR_YAML |
Deepak Kodihalli | 4779531 | 2017-03-17 07:12:08 -0500 | [diff] [blame] | 2 | # Build these headers, don't install them |
| 3 | noinst_HEADERS = \ |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 4 | occ_pass_through.hpp \ |
Andrew Geissler | 32016d1 | 2017-06-20 15:46:52 -0500 | [diff] [blame] | 5 | occ_status.hpp \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 6 | powercap.hpp \ |
| 7 | occ_errors.hpp \ |
Deepak Kodihalli | 5f031f3 | 2017-07-26 08:25:59 -0500 | [diff] [blame] | 8 | occ_events.hpp \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 9 | occ_finder.hpp \ |
Edward A. James | 636577f | 2017-10-06 10:53:55 -0500 | [diff] [blame] | 10 | occ_presence.hpp \ |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 11 | occ_command.hpp \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 12 | utils.hpp |
Deepak Kodihalli | 4779531 | 2017-03-17 07:12:08 -0500 | [diff] [blame] | 13 | |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 14 | noinst_LTLIBRARIES = libocc_control.la |
| 15 | |
Patrick Venture | b35cd0d | 2019-03-28 12:51:28 -0700 | [diff] [blame] | 16 | bin_PROGRAMS = openpower-occ-control |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 17 | |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 18 | openpower_occ_control_SOURCES = \ |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 19 | app.cpp |
| 20 | |
| 21 | libocc_control_la_SOURCES = \ |
Deepak Kodihalli | 6b492fb | 2017-03-18 01:09:28 -0500 | [diff] [blame] | 22 | occ_pass_through.cpp \ |
Vishwanatha Subbanna | dfc7ec7 | 2017-09-07 18:18:01 +0530 | [diff] [blame] | 23 | occ_manager.cpp \ |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 24 | occ_status.cpp \ |
Vishwanatha Subbanna | 32e84e9 | 2017-06-28 19:17:28 +0530 | [diff] [blame] | 25 | occ_device.cpp \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 26 | occ_errors.cpp \ |
Edward A. James | 636577f | 2017-10-06 10:53:55 -0500 | [diff] [blame] | 27 | occ_presence.cpp \ |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 28 | occ_command.cpp \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 29 | powercap.cpp \ |
Deepak Kodihalli | 5f031f3 | 2017-07-26 08:25:59 -0500 | [diff] [blame] | 30 | org/open_power/OCC/Device/error.cpp \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 31 | occ_finder.cpp \ |
Lei YU | 0ab90ca | 2017-07-13 17:02:23 +0800 | [diff] [blame] | 32 | i2c_occ.cpp \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 33 | utils.cpp |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 34 | |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 35 | openpower_occ_control_LDADD = \ |
| 36 | libocc_control.la \ |
| 37 | -lstdc++fs \ |
| 38 | $(SDBUSPLUS_LIBS) \ |
| 39 | $(SDEVENTPLUS_LIBS) \ |
| 40 | $(FMT_LIBS) |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 41 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 42 | BUILT_SOURCES = org/open_power/OCC/Device/error.hpp \ |
Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 43 | org/open_power/OCC/Device/error.cpp \ |
| 44 | occ_sensor.hpp |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 45 | |
| 46 | CLEANFILES = ${BUILT_SOURCES} |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 47 | |
Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 48 | REQ_MAKO_FILE ?= ${top_srcdir}/occ_sensor.mako.hpp |
| 49 | REQ_PY_SCRIPT ?= ${top_srcdir}/sensor_gen.py |
| 50 | |
| 51 | EXTRA_DIST = $(REQ_MAKO_FILE) $(REQ_PY_SCRIPT) |
| 52 | |
| 53 | occ_sensor.hpp: ${REQ_PY_SCRIPT} ${REQ_MAKO_FILE} |
| 54 | $(AM_V_GEN) ${PYTHON} ${REQ_PY_SCRIPT} -i ${YAML_PATH} > $@ |
| 55 | |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 56 | |
| 57 | generic_ld_flags = \ |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 58 | $(SDBUSPLUS_LIBS) \ |
| 59 | $(PHOSPHOR_LOGGING_LIBS) \ |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 60 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 61 | |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 62 | generic_cxx_flags = \ |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 63 | $(SDBUSPLUS_CFLAGS) \ |
| 64 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 65 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 66 | |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 67 | libocc_control_la_CXXFLAGS = $(generic_cxx_flags) |
| 68 | |
| 69 | libocc_control_la_LDFLAGS = $(generic_ld_flags) |
| 70 | |
| 71 | openpower_occ_control_CXXFLAGS = $(generic_cxx_flags) |
| 72 | |
| 73 | openpower_occ_control_LDFLAGS = $(generic_ld_flags) |
| 74 | |
Tom Joseph | 815f9f5 | 2020-07-27 12:12:13 +0530 | [diff] [blame] | 75 | include pldm.mk |
| 76 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 77 | org/open_power/OCC/Device/error.hpp: ${top_srcdir}/org/open_power/OCC/Device.errors.yaml |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 78 | @mkdir -p `dirname $@` |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 79 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.Device > $@ |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 80 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 81 | org/open_power/OCC/Device/error.cpp: ${top_srcdir}/org/open_power/OCC/Device.errors.yaml |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 82 | @mkdir -p `dirname $@` |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 83 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.Device > $@ |
Andrew Geissler | 4cea4d2 | 2017-07-10 15:13:33 -0500 | [diff] [blame] | 84 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 85 | SUBDIRS = . test |
Marri Devender Rao | cf4fdca | 2017-12-29 03:40:05 -0600 | [diff] [blame] | 86 | endif |
| 87 | |
| 88 | # Export error YAML to shared location |
| 89 | yamldir = ${datadir}/phosphor-dbus-yaml/yaml |
| 90 | nobase_yaml_DATA = \ |
| 91 | org/open_power/OCC/Device.errors.yaml \ |
| 92 | org/open_power/OCC/Device.metadata.yaml |