blob: bc4a6e4b3942278ee0d6b4018ea072f55c6ace15 [file] [log] [blame]
Marri Devender Rao82056ee2017-04-27 00:54:50 -05001AM_DEFAULT_SOURCE_EXT = .cpp
Marri Devender Raoca045222017-09-26 11:58:59 -05002
3# For target build
4if !INSTALL_ERROR_YAML
Vishwanatha Subbanna0eff6092017-06-12 21:03:36 +05305sbin_PROGRAMS = checkstop_app \
6 watchdog_timeout
Marri Devender Rao82056ee2017-04-27 00:54:50 -05007
Marri Devender Raoce640f62017-05-14 09:11:05 -05008nobase_nodist_include_HEADERS = \
9 org/open_power/Host/error.hpp
10
11BUILT_SOURCES = \
12 org/open_power/Host/error.cpp \
13 org/open_power/Host/error.hpp
14
15CLEANFILES = ${BUILT_SOURCES}
16
17checkstop_app_SOURCES = checkstop_app.cpp \
18 org/open_power/Host/error.cpp
19
Vishwanatha Subbanna0eff6092017-06-12 21:03:36 +053020watchdog_timeout_SOURCES = watchdog_timeout.cpp \
21 org/open_power/Host/error.cpp
Marri Devender Raoce640f62017-05-14 09:11:05 -050022
Vishwanatha Subbanna0eff6092017-06-12 21:03:36 +053023generic_ldflags = \
24 $(PHOSPHOR_LOGGING_LIBS) \
25 $(SDBUSPLUS_LIBS)
26
27generic_cxxflags = \
28 $(PHOSPHOR_LOGGING_CFLAGS) \
29 $(SDBUSPLUS_CFLAGS)
30
31checkstop_app_LDFLAGS = ${generic_ldflags}
32watchdog_timeout_LDFLAGS = ${generic_ldflags}
33
34checkstop_app_CXXFLAGS = ${generic_cxxflags}
35watchdog_timeout_CXXFLAGS = ${generic_cxxflags}
Marri Devender Raoce640f62017-05-14 09:11:05 -050036
37org/open_power/Host/error.hpp: ${top_srcdir}/org/open_power/Host.errors.yaml
38 @mkdir -p `dirname $@`
39 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header org.open_power.Host > $@
40
41org/open_power/Host/error.cpp: ${top_srcdir}/org/open_power/Host.errors.yaml
42 @mkdir -p `dirname $@`
43 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp org.open_power.Host > $@
Marri Devender Raoca045222017-09-26 11:58:59 -050044else
45# For native build
46# Export error YAML to shared location
47yamldir = ${datadir}/phosphor-dbus-yaml/yaml
48nobase_yaml_DATA = \
49 org/open_power/Host.errors.yaml
50endif #INSTALL_ERROR_YAML