blob: b68f9a082c9778d7245eeb5f259db4c8b0142116 [file] [log] [blame]
Deepak Kodihalli47795312017-03-17 07:12:08 -05001# Build these headers, don't install them
2noinst_HEADERS = \
Deepak Kodihalli6b492fb2017-03-18 01:09:28 -05003 occ_pass_through.hpp
Deepak Kodihalli47795312017-03-17 07:12:08 -05004
Deepak Kodihalli92a63412017-03-17 05:01:00 -05005sbin_PROGRAMS = openpower-occ-control
6openpower_occ_control_SOURCES = \
Deepak Kodihalli6b492fb2017-03-18 01:09:28 -05007 occ_pass_through.cpp \
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +05308 app.cpp \
9 org/open_power/OCC/PassThrough/error.cpp
10
11BUILT_SOURCES = org/open_power/OCC/PassThrough/error.hpp \
12 org/open_power/OCC/PassThrough/error.cpp
13
14CLEANFILES = ${BUILT_SOURCES}
Deepak Kodihalli92a63412017-03-17 05:01:00 -050015
16openpower_occ_control_LDFLAGS = \
17 $(SDBUSPLUS_LIBS) \
18 $(PHOSPHOR_LOGGING_LIBS) \
Deepak Kodihallifd358d12017-05-08 07:11:22 -050019 $(OPENPOWER_DBUS_INTERFACES_LIBS) \
20 -lstdc++fs
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053021
Deepak Kodihalli92a63412017-03-17 05:01:00 -050022openpower_occ_control_CXXFLAGS =
23 $(SDBUSPLUS_CFLAGS) \
24 $(PHOSPHOR_LOGGING_CFLAGS) \
25 $(OPENPOWER_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna9bb065b2017-04-18 14:25:26 +053026
27org/open_power/OCC/PassThrough/error.hpp: ${top_srcdir}/org/open_power/OCC/PassThrough.errors.yaml
28 @mkdir -p `dirname $@`
29 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header org.open_power.OCC.PassThrough > $@
30
31org/open_power/OCC/PassThrough/error.cpp: ${top_srcdir}/org/open_power/OCC/PassThrough.errors.yaml
32 @mkdir -p `dirname $@`
33 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp org.open_power.OCC.PassThrough > $@