blob: 0ab585695dc93e771941666bf3c0375d46ec99cc [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 \
4 occ_status.hpp
Deepak Kodihalli47795312017-03-17 07:12:08 -05005
Deepak Kodihalli92a63412017-03-17 05:01:00 -05006sbin_PROGRAMS = openpower-occ-control
7openpower_occ_control_SOURCES = \
Deepak Kodihalli6b492fb2017-03-18 01:09:28 -05008 occ_pass_through.cpp \
Vishwanatha Subbanna307d80b2017-06-28 15:56:09 +05309 occ_status.cpp \
Vishwanatha Subbanna32e84e92017-06-28 19:17:28 +053010 occ_device.cpp \
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053011 app.cpp \
12 org/open_power/OCC/PassThrough/error.cpp
13
14BUILT_SOURCES = org/open_power/OCC/PassThrough/error.hpp \
15 org/open_power/OCC/PassThrough/error.cpp
16
17CLEANFILES = ${BUILT_SOURCES}
Deepak Kodihalli92a63412017-03-17 05:01:00 -050018
19openpower_occ_control_LDFLAGS = \
20 $(SDBUSPLUS_LIBS) \
21 $(PHOSPHOR_LOGGING_LIBS) \
Deepak Kodihallifd358d12017-05-08 07:11:22 -050022 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
23 -lstdc++fs
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053024
Deepak Kodihalli92a63412017-03-17 05:01:00 -050025openpower_occ_control_CXXFLAGS =
26 $(SDBUSPLUS_CFLAGS) \
27 $(PHOSPHOR_LOGGING_CFLAGS) \
28 $(OPENPOWER_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053029
30org/open_power/OCC/PassThrough/error.hpp: ${top_srcdir}/org/open_power/OCC/PassThrough.errors.yaml
31 @mkdir -p `dirname $@`
32 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.PassThrough > $@
33
34org/open_power/OCC/PassThrough/error.cpp: ${top_srcdir}/org/open_power/OCC/PassThrough.errors.yaml
35 @mkdir -p `dirname $@`
36 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.PassThrough > $@