#
#                             IPSTB Project
#                   ---------------------------------
#
# Copyright (C) 2008 NXP B.V.,
# All Rights Reserved.
#
# Filename: softdog/Makefile
#
#
# Rev Date        Author      Comments
#-------------------------------------------------------------------------------
#   1 20080402    laird       Initial Version

# File: softdog/Makefile
# Makefile to control building of softdog - This is a system program that keeps 
# prodding the watchdog to make sure the system does not reset.

ifeq ($(CONFIG_WATCHDOG_DAEMON),y)

# Always needed at the start:
include $(PRJROOT)/etc/first.mk

$(eval $(PKG_START))

# Define what the package and version is:
PKG=softdog
softdog_VERSION=1.21

$(eval $(PKG_BUILD_USING_MAKE))
$(eval $(PKG_SETUP_VARS))

# Use this as we only want the binary not the manpage or device created
define softdog.install_CMDS
	cd $(softdog_BUILDDIR) && $(MAKECMD) BINDIR=$(ROOTFS)/sbin installbin
endef

softdog_DEFMAKEOPTS=CC=$(CROSS_COMPILE)gcc STRIP=$(CROSS_COMPILE)strip

# Always needed at the end:
$(eval $(PKG_END))
include $(PRJROOT)/etc/last.mk
endif # CONFIG_WATCHDOG_DAEMON

