!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 shared
source or premium shared source license agreement under which you licensed
this source code. If you did not accept the terms of the license agreement,
you are not authorized to use this source code. For the terms of the license,
please see the license agreement between you and Microsoft or, if applicable,
see the SOURCE.RTF on your install media or the root of your tools installation.
THE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
!endif
TARGETNAME=kd
DEFFILE=kd.def
TARGETTYPE=LIBRARY
DLLENTRY=KdDLLEntry

WINCETARGETFILE0=$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\kd.def

WINCEOEM=1
WINCEPROJ=COMMON
NOLTCG=1

!IF "$(_TGTCPUFAMILY)"=="SH"
INCLUDES=shx
!ENDIF

!IF "$(_TGTCPUFAMILY)"=="x86"
INCLUDES=x86
!ENDIF

!IF "$(_TGTCPUFAMILY)"=="MIPS"
INCLUDES=mips
!ENDIF

!IF "$(_TGTCPUFAMILY)"=="ARM"
INCLUDES=arm
ADEFINES=$(ADEFINES) -ignore 241
!ENDIF

CDEFINES=$(CDEFINES)
INCLUDES=$(INCLUDES);..\inc;..\kernel\sh; ..\osaxs

LDEFINES=-subsystem:native /DEBUG /DEBUGTYPE:FIXUP

# Contrary to popular belief, THIS AFFECTS ARM AS WELL
NOMIPS16CODE=1
NOLIBC=1

SOURCES=           \
   dbg.c           \
   kdapi.c         \
   kdbreak.c       \
   kdctrl.c        \
   kddata.c        \
   kdinit.c        \
   kdmove.c        \
   kdpacket.c      \
   kdtrap.c        \
   odebug.c

SH_SOURCES=        \
   sh\kdkernel.c   \
   sh\kdasm.src

MIPS_SOURCES=      \
   mips\kdkernel.c \
   mips\kdasm.s

x86_SOURCES=	   \
   x86\kdkernel.c  \
   x86\dbgasync.c

ARM_SOURCES=       \
   arm\kdkernel.c  \
   arm\kdasm.s

#xref ModuleMembership kd.dll
#xref VIGUID {cdf8a1fd-9e76-4878-8381-bc4d47623e4d}
#xref VSGUID {9a6eaceb-9f7a-4dbe-8a35-07bc24be9f99}
