!if 0
Copyright (c) Microsoft Corporation.  All rights reserved.
!endif
!if 0
Use of this sample source code is subject to the terms of the Microsoft
license agreement under which you licensed this sample source code. If
you did not accept the terms of the license agreement, you are not
authorized to use this sample source code. For the terms of the license,
please see the license agreement between you and Microsoft or, if applicable,
see the LICENSE.RTF on your install media or the root of your tools installation.
THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
!endif


WINCEOEM=1
WINCECPU=1
NOMIPS16CODE=1
RELEASETYPE=PLATFORM

CDEFINES=$(CDEFINES) -DCEDDK_USEDDKMACRO

!IF "$(ENABLE_OAL_ILTIMING)"=="1"
CDEFINES=$(CDEFINES) -DOAL_ILTIMING
!ENDIF

_PLATCOMMONLIB=$(_PLATFORMROOT)\common\lib
_COMMONPUBROOT=$(_PROJECTROOT)\cesysgen

_OEMINCPATH=$(_COMMONPUBROOT)\sdk\inc;
_OEMINCPATH=$(_OEMINCPATH);$(_COMMONPUBROOT)\oak\inc;
_OEMINCPATH=$(_OEMINCPATH);$(_COMMONPUBROOT)\ddk\inc;

_ISVINCPATH=$(_WINCEROOT)\public\common\sdk\inc

INCLUDES=$(_TARGETPLATROOT)\src\inc
INCLUDES=$(INCLUDES);$(_TARGETPLATROOT)\sdk\inc
INCLUDES=$(INCLUDES);$(_PLATFORMROOT)\common\src\soc\s5pv210_sec_v1\oal\inc
INCLUDES=$(INCLUDES);$(_WINCEROOT)\public\common\oak\drivers\block\msflashfmd\inc
INCLUDES=$(INCLUDES);$(_PUBLICROOT)\common\oak\inc
INCLUDES=$(INCLUDES);$(_PLATFORMROOT)\common\src\inc

!IF "$(BSP_DEBUGPORT)" == "SERIAL_UART0"
CDEFINES=$(CDEFINES) -DDEBUG_PORT=0
!ENDIF

!IF "$(BSP_DEBUGPORT)" == "SERIAL_UART1"
CDEFINES=$(CDEFINES) -DDEBUG_PORT=1
!ENDIF


!IF "$(BSP_DEBUGPORT)" == "SERIAL_UART2"
CDEFINES=$(CDEFINES) -DDEBUG_PORT=2
!ENDIF

!IF "$(BSP_DEBUGPORT)" == "SERIAL_UART3"
CDEFINES=$(CDEFINES) -DDEBUG_PORT=3
!ENDIF
!if "$(BSP_POCKETSTORE)" == "1"
CDEFINES=$(CDEFINES) -DBSP_POCKETSTORE
ADEFINES=$(ADEFINES) -pd "BSP_POCKETSTORE SETL {TRUE}"
!else
ADEFINES=$(ADEFINES) -pd "BSP_POCKETSTORE SETL {FALSE}"
!endif

!if "$(BSP_NOTVOUT)" == "1"
CDEFINES=$(CDEFINES) -DNO_USE_TVOUT
!endif

!if "$(BSP_NOHDCP)" == "1"
CDEFINES=$(CDEFINES) -DNO_USE_HDCP
!endif

!if "$(BSP_NOCEC)" == "1"
CDEFINES=$(CDEFINES) -DNO_USE_CEC
!endif

!if "$(BSP_POP_TYPE)" == "H_TYPE_POP"
CDEFINES=$(CDEFINES) -DH_TYPE_POP
ADEFINES=$(ADEFINES) -pd "H_TYPE_POP SETL {TRUE}"
!endif

!if "$(BSP_POP_TYPE)" == "AC_TYPE_POP"
CDEFINES=$(CDEFINES) -DAC_TYPE_POP
ADEFINES=$(ADEFINES) -pd "AC_TYPE_POP SETL {TRUE}"
!endif

CDEFINES=$(CDEFINES) -DS5PV210_EVT=$(S5PV210_EVT)
!if "$(S5PV210_EVT)" == "0"
ADEFINES=$(ADEFINES) -pd "S5PV210_EVT0 SETL {TRUE}"
!endif

CDEFINES=$(CDEFINES) -DBSP_TOUCH_TYPE=$(BSP_TOUCH_TYPE)

CDEFINES=$(CDEFINES) -DBSP_KEYBD_TYPE=$(BSP_KEYBD_TYPE)

!if "$(BSP_DEEPIDLE_TEST)" == "1"
CDEFINES=$(CDEFINES) -DDEEPIDLE_TEST
!endif
!if "$(BSP_TICK_COMPENSATION)" == "1"
CDEFINES=$(CDEFINES) -DRTC_TICK_ERROR_COMPENSATION
!endif

!if "$(BSP_USEDVFS)" == "1"
CDEFINES=$(CDEFINES) -DBSP_USEDVFS
!endif

!if "$(BSP_NOSDMMC_BOOT)" != "1"
CDEFINES=$(CDEFINES) -DSDMMC_BOOT
!endif

!if "$(BSP_PMIC_VOLTAGE_CONTROL)" == "1"
CDEFINES=$(CDEFINES) -DENABLE_VOLTAGE_CONTROL
!endif

!if "$(BSP_NOUSBHCD)" != "1"
CDEFINES=$(CDEFINES) -DMULTI_USBHOST
!endif

