!if 0
Copyright (c) Microsoft Corporation.  All rights reserved.
!endif
!if 0
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.
!endif

TARGETNAME = oal
TARGETTYPE = LIBRARY

RELEASETYPE = PLATFORM
NOMIPS16CODE = 1

SYNCHRONIZE_DRAIN = 1

_OSSVCSOAKROOT=$(_PUBLICROOT)\ossvcs\oak

INCLUDES=$(INCLUDES);

INCLUDES=$(INCLUDES);$(_TARGETPLATROOT)\src\common\kitldrv\usbdbg\inc;

INCLUDES=$(INCLUDES);$(_TARGETPLATROOT)\src\BOOTLOADER\Eboot;
INCLUDES=$(INCLUDES);$(_TARGETPLATROOT)\Src\Common\Nandflash\Fmd;

!IF "$(BSP_NOSDMMC_BOOT)"==""
CDEFINES=$(CDEFINES) -D_IROM_SDMMC_
!ENDIF

CDEFINES=$(CDEFINES) -DWINCE_OAM -DFSR_WINCE_OAM

CDEFINES=$(CDEFINES) -DCEDDK_USEDDKMACRO


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

LDEFINES=-subsystem:native /DEBUG /DEBUGTYPE:CV /FIXED:NO

SOURCES = \
    init.c \
    intr.c \
    ioctl.c \
    power.c \

ARM_SOURCES = \
    sleep.s \
    deepidle.s  \
    startup.s \

