Deepak Kodihalli | 4779531 | 2017-03-17 07:12:08 -0500 | [diff] [blame] | 1 | # Build these headers, don't install them |
| 2 | noinst_HEADERS = \ |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 3 | occ_pass_through.hpp \ |
Andrew Geissler | 32016d1 | 2017-06-20 15:46:52 -0500 | [diff] [blame] | 4 | occ_status.hpp \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 5 | powercap.hpp \ |
| 6 | occ_errors.hpp \ |
Deepak Kodihalli | 5f031f3 | 2017-07-26 08:25:59 -0500 | [diff] [blame] | 7 | occ_events.hpp \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 8 | occ_finder.hpp \ |
| 9 | utils.hpp |
Deepak Kodihalli | 4779531 | 2017-03-17 07:12:08 -0500 | [diff] [blame] | 10 | |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 11 | sbin_PROGRAMS = openpower-occ-control |
| 12 | openpower_occ_control_SOURCES = \ |
Deepak Kodihalli | 6b492fb | 2017-03-18 01:09:28 -0500 | [diff] [blame] | 13 | occ_pass_through.cpp \ |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 14 | occ_status.cpp \ |
Vishwanatha Subbanna | 32e84e9 | 2017-06-28 19:17:28 +0530 | [diff] [blame] | 15 | occ_device.cpp \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 16 | occ_errors.cpp \ |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 17 | app.cpp \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 18 | powercap.cpp \ |
Deepak Kodihalli | 5f031f3 | 2017-07-26 08:25:59 -0500 | [diff] [blame] | 19 | org/open_power/OCC/Device/error.cpp \ |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 20 | occ_finder.cpp \ |
| 21 | utils.cpp |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 22 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 23 | BUILT_SOURCES = org/open_power/OCC/Device/error.hpp \ |
Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 24 | org/open_power/OCC/Device/error.cpp \ |
| 25 | occ_sensor.hpp |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 26 | |
| 27 | CLEANFILES = ${BUILT_SOURCES} |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 28 | |
Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 29 | REQ_MAKO_FILE ?= ${top_srcdir}/occ_sensor.mako.hpp |
| 30 | REQ_PY_SCRIPT ?= ${top_srcdir}/sensor_gen.py |
| 31 | |
| 32 | EXTRA_DIST = $(REQ_MAKO_FILE) $(REQ_PY_SCRIPT) |
| 33 | |
| 34 | occ_sensor.hpp: ${REQ_PY_SCRIPT} ${REQ_MAKO_FILE} |
| 35 | $(AM_V_GEN) ${PYTHON} ${REQ_PY_SCRIPT} -i ${YAML_PATH} > $@ |
| 36 | |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 37 | openpower_occ_control_LDFLAGS = \ |
| 38 | $(SDBUSPLUS_LIBS) \ |
| 39 | $(PHOSPHOR_LOGGING_LIBS) \ |
Deepak Kodihalli | fd358d1 | 2017-05-08 07:11:22 -0500 | [diff] [blame] | 40 | $(OPENPOWER_DBUS_INTERFACES_LIBS) \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 41 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Deepak Kodihalli | fd358d1 | 2017-05-08 07:11:22 -0500 | [diff] [blame] | 42 | -lstdc++fs |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 43 | |
Deepak Kodihalli | 92a6341 | 2017-03-17 05:01:00 -0500 | [diff] [blame] | 44 | openpower_occ_control_CXXFLAGS = |
| 45 | $(SDBUSPLUS_CFLAGS) \ |
| 46 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 47 | $(OPENPOWER_DBUS_INTERFACES_CFLAGS) \ |
| 48 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 49 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 50 | 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] | 51 | @mkdir -p `dirname $@` |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 52 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.Device > $@ |
Vishwanatha Subbanna | 9bb065b | 2017-04-18 14:25:26 +0530 | [diff] [blame] | 53 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 54 | 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] | 55 | @mkdir -p `dirname $@` |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 56 | $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.Device > $@ |
Andrew Geissler | 4cea4d2 | 2017-07-10 15:13:33 -0500 | [diff] [blame] | 57 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 58 | SUBDIRS = . test |