blob: 9b54f9e59c4cef7d666d5705d0fe603ff82b9fb1 [file] [log] [blame]
Marri Devender Rao82056ee2017-04-27 00:54:50 -05001AM_DEFAULT_SOURCE_EXT = .cpp
Vishwanatha Subbanna0eff6092017-06-12 21:03:36 +05302sbin_PROGRAMS = checkstop_app \
3 watchdog_timeout
Marri Devender Rao82056ee2017-04-27 00:54:50 -05004
Marri Devender Raoce640f62017-05-14 09:11:05 -05005nobase_nodist_include_HEADERS = \
6 org/open_power/Host/error.hpp
7
8BUILT_SOURCES = \
9 org/open_power/Host/error.cpp \
10 org/open_power/Host/error.hpp
11
12CLEANFILES = ${BUILT_SOURCES}
13
14checkstop_app_SOURCES = checkstop_app.cpp \
15 org/open_power/Host/error.cpp
16
Vishwanatha Subbanna0eff6092017-06-12 21:03:36 +053017watchdog_timeout_SOURCES = watchdog_timeout.cpp \
18 org/open_power/Host/error.cpp
Marri Devender Raoce640f62017-05-14 09:11:05 -050019
Vishwanatha Subbanna0eff6092017-06-12 21:03:36 +053020generic_ldflags = \
21 $(PHOSPHOR_LOGGING_LIBS) \
22 $(SDBUSPLUS_LIBS)
23
24generic_cxxflags = \
25 $(PHOSPHOR_LOGGING_CFLAGS) \
26 $(SDBUSPLUS_CFLAGS)
27
28checkstop_app_LDFLAGS = ${generic_ldflags}
29watchdog_timeout_LDFLAGS = ${generic_ldflags}
30
31checkstop_app_CXXFLAGS = ${generic_cxxflags}
32watchdog_timeout_CXXFLAGS = ${generic_cxxflags}
Marri Devender Raoce640f62017-05-14 09:11:05 -050033
34org/open_power/Host/error.hpp: ${top_srcdir}/org/open_power/Host.errors.yaml
35 @mkdir -p `dirname $@`
36 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header org.open_power.Host > $@
37
38org/open_power/Host/error.cpp: ${top_srcdir}/org/open_power/Host.errors.yaml
39 @mkdir -p `dirname $@`
40 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp org.open_power.Host > $@
41