# Copyright (c) Microsoft Corporation.  All rights reserved.
# Use of this source code is subject to the terms of the Microsoft end-user
# license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
# If you did not accept the terms of the EULA, you are not authorized to use
# this source code. For a copy of the EULA, please see the LICENSE.RTF on your
# install media.
# xref VIGUID {549CAC8D_8AF0_4789_9ACF_2BB92599470D}
# xref VSGUID {0601CE65_BF4D_453A_966B_E20250AD2E8E}

!IF "$(BSP_NOSERIAL)" == "1"
SKIPBUILD=1
!ENDIF

!IF "$(BSP_NOIRDA1)" == "1"
CDEFINES=$(CDEFINES) -DBSP_NOIRDA1
!ENDIF

!IF "$(BSP_NOIRDA2)" == "1"
CDEFINES=$(CDEFINES) -DBSP_NOIRDA2
!ENDIF

!IF "$(BSP_NOIRDA3)" == "1"
CDEFINES=$(CDEFINES) -DBSP_NOIRDA3
!ENDIF

!IF "$(BSP_NOIRDA4)" == "1"
CDEFINES=$(CDEFINES) -DBSP_NOIRDA4
!ENDIF

!IF "$(BSP_UART_RX_DMA)" == "1"
CDEFINES=$(CDEFINES) -DUSE_UART_RX_DMA
!ENDIF


#For Debug builds
#COMPILE_DEBUG=1
#CODE_ANALYSIS=1

!IF "$(COMPILE_DEBUG)" == "1"
CDEFINES=$(CDEFINES) -DUART_PDD_DRIVER_DEBUG
!ENDIF

WINCEOEM=1

TARGETNAME=SMDKV210_serial
TARGETTYPE=DYNLINK
RELEASETYPE=PLATFORM

DEFFILE=serial.def
DLLENTRY=_DllEntryCRTStartup

CDEFINES=$(CDEFINES) -DUSE_DMA
CDEFINES=$(CDEFINES) -DNOUSE_MMI
#CDEFINES=$(CDEFINES) -D_LOOPBACK
#CDEFINES=$(CDEFINES) -D_DBGMSG
#CDEFINES=$(CDEFINES) -DUART_MODEM

TARGETLIBS=\
	$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib	\
	$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib    \


SOURCELIBS=\
	$(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\serpddcm.lib	\
	$(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\com_mdd2.lib \
	$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\drvlib.lib \
	$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\drvlib_mem.lib \
	$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dma_lib.lib \

INCLUDES = $(INCLUDES);$(_TARGETPLATROOT)\src\inc;$(_PLATFORMROOT)\common\src\soc\s5pv210_sec_v1\oal\inc\sgiplib;$(_TARGETPLATROOT)\src\Common\Dma;

SOURCES= \
	ser_device_port.cpp	\
	common_pdd_ser.cpp \
	ser_dma.cpp
#xref VIGUID {549CAC8D_8AF0_4789_9ACF_2BB92599470D}
#xref VSGUID {0601CE65_BF4D_453A_966B_E20250AD2E8E}

