#
#                             IPSTB Project
#                   ---------------------------------
#
# Copyright (C) 2005 Koninklijke Philips Electronics N.V.,
# All Rights Reserved.
#
# Filename: phStbDbg/src/kmodule/Makefile
#
#
# Rev Date       Author      Comments
#-------------------------------------------------------------------------------
#   1 20050731   batelaan    Initial
#   2 20050729   batelaan    Include files.
#   3 20050905   batelaan    EXTRA_CFLAGS += -DDBG_ENABLE_ALL

# If KERNELRELEASE is defined we've been invoked already from the kernel build system:
ifdef KERNELRELEASE

include $(PRJROOT)/etc/kernelmodule.mk

obj-m := phStbDbg.o
phStbDbg-objs := phStbDbg_Module.o

EXTRA_CFLAGS += \
  -I$(_TMROOT)/inc \
  -I$(_IphStbCommon_DIR)/inc \
  -I$(_phStbDbg_DIR)/src/kmodule \
  -I$(_phStbDbg_DIR)/inc \
  -I$(_phStbProc_DIR)/inc \

# For this component always compile as if DBG_PRINT and DBG_ASSERT macros are enabled:
EXTRA_CFLAGS += -DDBG_ENABLE_ALL

ifdef STBDBG_UNITTEST
  EXTRA_CFLAGS += -DUNITTEST=1
endif

else # KERNELRELEASE
# KERNELRELEASE was not defined so currently not invoked from the kernel build system.

include $(PRJROOT)/etc/first.mk
$(eval $(MODULE_START))

MODULE=phStbDbg

$(eval $(MODULE_SETUP_DEFAULT))

$(eval $(MODULE_END))
include $(PRJROOT)/etc/last.mk

endif
