Add Error definition for host watchdog timeout

When the host watchdog times out, we need an errorlog to report it.
This commit adds that support.

Change-Id: I0ebb792b768b2ce10e2019fcc24a4d171d3f38fb
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 90651d6..9b54f9e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,6 @@
 AM_DEFAULT_SOURCE_EXT = .cpp
-sbin_PROGRAMS = checkstop_app
+sbin_PROGRAMS = checkstop_app \
+                watchdog_timeout
 
 nobase_nodist_include_HEADERS = \
             org/open_power/Host/error.hpp
@@ -13,13 +14,22 @@
 checkstop_app_SOURCES = checkstop_app.cpp \
                         org/open_power/Host/error.cpp
 
-checkstop_app_LDFLAGS = \
-                       $(PHOSPHOR_LOGGING_LIBS) \
-                       $(SDBUSPLUS_LIBS)
+watchdog_timeout_SOURCES = watchdog_timeout.cpp \
+                           org/open_power/Host/error.cpp
 
-checkstop_app_CXXFLAGS = \
-                     $(PHOSPHOR_LOGGING_CFLAGS) \
-                     $(SDBUSPLUS_CFLAGS)
+generic_ldflags = \
+                 $(PHOSPHOR_LOGGING_LIBS) \
+                 $(SDBUSPLUS_LIBS)
+
+generic_cxxflags = \
+                  $(PHOSPHOR_LOGGING_CFLAGS) \
+                  $(SDBUSPLUS_CFLAGS)
+
+checkstop_app_LDFLAGS  = ${generic_ldflags}
+watchdog_timeout_LDFLAGS  = ${generic_ldflags}
+
+checkstop_app_CXXFLAGS  = ${generic_cxxflags}
+watchdog_timeout_CXXFLAGS  = ${generic_cxxflags}
 
 org/open_power/Host/error.hpp: ${top_srcdir}/org/open_power/Host.errors.yaml
 	@mkdir -p `dirname $@`