!if 0
Copyright (c) 2001. Samsung Electronics, co. ltd  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=hal
RELEASETYPE=PLATFORM
WINCECPU=1
TARGETTYPE=LIBRARY
INCLUDES= $(_PUBLICROOT)\common\oak\inc;$(_PUBLICROOT)\common\sdk\inc;$(_PUBLICROOT)\common\ddk\inc; ..\..\inc; .\; arm;

CDEFINES=$(CDEFINES) -DWINCEMACRO -DVERBOSE=0

# Machine independent defines
!IF "$(PPSH_PROTOCOL_NOTIMEOUT)" == "1"
CDEFINES=$(CDEFINES) -DPPSH_PROTOCOL_NOTIMEOUT
!ENDIF

!IF "$(MODULE_CERTIFY)" == "1"
CDEFINES=$(CDEFINES) -DMODULE_CERTIFY
!ENDIF

!IF "$(INTERNAL_HAL_TESTING)" == "1"
INCLUDES=$(_WINCEROOT)\PRIVATE\OSINTERNAL\TEST\HAL;$(INCLUDES)
CDEFINES=$(CDEFINES) -DINTERNAL_HAL_TESTING
!ENDIF

!IFDEF SCHEDLOG
!IF $(SCHEDLOG)
CDEFINES=$(CDEFINES) -DSCHEDLOG
!ENDIF
!ENDIF

!IFDEF PROFILE
!IF $(PROFILE)
CDEFINES=$(CDEFINES) -DPROFILE
!ENDIF
!ENDIF

!IFNDEF KERNELNOSHAREETH
CDEFINES=$(CDEFINES) -DIMGSHAREETH
!ENDIF

!IF "$(FORCE_TGTCPU)" != ""
CDEFINES=$(CDEFINES) -DFORCE_$(FORCE_TGTCPU)
!ENDIF

!IF "$(_TGTCPUFAMILY)" == "ARM"
!IF "$(FORCE_TGTCPU)" == ""
ADEFINES=-pd "_TGTCPU SETS \"$(_TGTCPU)\"" $(ADEFINES)
!ELSE
ADEFINES=-pd "_TGTCPU SETS \"$(_TGTCPU)\"" -pd "FORCE_TGTCPU SETS \"$(FORCE_TGTCPU)\"" $(ADEFINES)
!ENDIF

NOMIPS16CODE=1
!ENDIF

SOURCES= \
    debug.c \
    cfw.c \
    mdppfs.c \
    oemioctl.c \
    halether.c \
    halkitl.c \
    samsung.c \
    pcmcia.c\
    power.c \
    iic.c   

ARM_SOURCES= \
    arm\fw.s   \
    arm\armint.c \
    arm\timer.c  \
    arm\serial.c \
    arm\oemabort.s \

