Marri Devender Rao | 82056ee | 2017-04-27 00:54:50 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
Marri Devender Rao | ca04522 | 2017-09-26 11:58:59 -0500 | [diff] [blame^] | 2 | |
| 3 | # For target build |
| 4 | if !INSTALL_ERROR_YAML |
Vishwanatha Subbanna | 0eff609 | 2017-06-12 21:03:36 +0530 | [diff] [blame] | 5 | sbin_PROGRAMS = checkstop_app \ |
| 6 | watchdog_timeout |
Marri Devender Rao | 82056ee | 2017-04-27 00:54:50 -0500 | [diff] [blame] | 7 | |
Marri Devender Rao | ce640f6 | 2017-05-14 09:11:05 -0500 | [diff] [blame] | 8 | nobase_nodist_include_HEADERS = \ |
| 9 | org/open_power/Host/error.hpp |
| 10 | |
| 11 | BUILT_SOURCES = \ |
| 12 | org/open_power/Host/error.cpp \ |
| 13 | org/open_power/Host/error.hpp |
| 14 | |
| 15 | CLEANFILES = ${BUILT_SOURCES} |
| 16 | |
| 17 | checkstop_app_SOURCES = checkstop_app.cpp \ |
| 18 | org/open_power/Host/error.cpp |
| 19 | |
Vishwanatha Subbanna | 0eff609 | 2017-06-12 21:03:36 +0530 | [diff] [blame] | 20 | watchdog_timeout_SOURCES = watchdog_timeout.cpp \ |
| 21 | org/open_power/Host/error.cpp |
Marri Devender Rao | ce640f6 | 2017-05-14 09:11:05 -0500 | [diff] [blame] | 22 | |
Vishwanatha Subbanna | 0eff609 | 2017-06-12 21:03:36 +0530 | [diff] [blame] | 23 | generic_ldflags = \ |
| 24 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 25 | $(SDBUSPLUS_LIBS) |
| 26 | |
| 27 | generic_cxxflags = \ |
| 28 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 29 | $(SDBUSPLUS_CFLAGS) |
| 30 | |
| 31 | checkstop_app_LDFLAGS = ${generic_ldflags} |
| 32 | watchdog_timeout_LDFLAGS = ${generic_ldflags} |
| 33 | |
| 34 | checkstop_app_CXXFLAGS = ${generic_cxxflags} |
| 35 | watchdog_timeout_CXXFLAGS = ${generic_cxxflags} |
Marri Devender Rao | ce640f6 | 2017-05-14 09:11:05 -0500 | [diff] [blame] | 36 | |
| 37 | org/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 | |
| 41 | org/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 Rao | ca04522 | 2017-09-26 11:58:59 -0500 | [diff] [blame^] | 44 | else |
| 45 | # For native build |
| 46 | # Export error YAML to shared location |
| 47 | yamldir = ${datadir}/phosphor-dbus-yaml/yaml |
| 48 | nobase_yaml_DATA = \ |
| 49 | org/open_power/Host.errors.yaml |
| 50 | endif #INSTALL_ERROR_YAML |