blob: d26ed9904a6d5a34e6c194430ce81da909471960 [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 \
5 powercap.hpp
Deepak Kodihalli47795312017-03-17 07:12:08 -05006
Deepak Kodihalli92a63412017-03-17 05:01:00 -05007sbin_PROGRAMS = openpower-occ-control
8openpower_occ_control_SOURCES = \
Deepak Kodihalli6b492fb2017-03-18 01:09:28 -05009 occ_pass_through.cpp \
Vishwanatha Subbanna307d80b2017-06-28 15:56:09 +053010 occ_status.cpp \
Vishwanatha Subbanna32e84e92017-06-28 19:17:28 +053011 occ_device.cpp \
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053012 app.cpp \
Andrew Geissler32016d12017-06-20 15:46:52 -050013 org/open_power/OCC/PassThrough/error.cpp \
14 powercap.cpp
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053015
16BUILT_SOURCES = org/open_power/OCC/PassThrough/error.hpp \
17 org/open_power/OCC/PassThrough/error.cpp
18
19CLEANFILES = ${BUILT_SOURCES}
Deepak Kodihalli92a63412017-03-17 05:01:00 -050020
21openpower_occ_control_LDFLAGS = \
22 $(SDBUSPLUS_LIBS) \
23 $(PHOSPHOR_LOGGING_LIBS) \
Deepak Kodihallifd358d12017-05-08 07:11:22 -050024 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
25 -lstdc++fs
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053026
Deepak Kodihalli92a63412017-03-17 05:01:00 -050027openpower_occ_control_CXXFLAGS =
28 $(SDBUSPLUS_CFLAGS) \
29 $(PHOSPHOR_LOGGING_CFLAGS) \
30 $(OPENPOWER_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053031
32org/open_power/OCC/PassThrough/error.hpp: ${top_srcdir}/org/open_power/OCC/PassThrough.errors.yaml
33 @mkdir -p `dirname $@`
34 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.PassThrough > $@
35
36org/open_power/OCC/PassThrough/error.cpp: ${top_srcdir}/org/open_power/OCC/PassThrough.errors.yaml
37 @mkdir -p `dirname $@`
38 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.PassThrough > $@