# ==++==
#
#   
#    Copyright (c) 2002 Microsoft Corporation.  All rights reserved.
#   
#    The use and distribution terms for this software are contained in the file
#    named license.txt, which can be found in the root of this distribution.
#    By using this software in any fashion, you are agreeing to be bound by the
#    terms of this license.
#   
#    You must not remove this notice, or any other, from this software.
#   
#
# ==--==

#
# Build instructions for this directory
#

SYNCHRONIZE_DRAIN=1
SYNCHRONIZE_BLOCK=1

!CMDSWITCHES -I

NEWCALL_TOO             = 1

!ifdef PASS0ONLY
!else
!ifdef LINKONLY
NTTARGETFILE1   = csc_target
!else
NTTARGETFILE0   = prep_target
!endif
!endif

!include $(NTMAKEENV)\sources.cor


# Required definitions for no classical targets.
TARGETNAME      = jsc
TARGETPATH      = $(TARGETCORLIB)\$(TARGET_DIRECTORY)\$(DDKBUILDENV)
TARGETTYPE      = PROGRAM
NO_BROWSER_FILE = 1
SOURCES         =

CSC_SOURCE_DIR = $(ROTOR_DIR)\jscript\jsc
CSC_CLASS_DIR   = $(CSC_SOURCE_DIR)\$(_OBJ_DIR)\$(TARGET_DIRECTORY)
CSC_TARGET_TYPE = PROGRAM

ASSEMBLY_KEY_TYPE=MICROSOFT
SIGN_ASSEMBLY=1

WIN32_RESOURCE_FILE = jsc.rc

# List required assembly references
COMPLUSIMPORTS = \
	$(TARGETPATH)\Microsoft.JScript.dll \
	$(TARGETPATH)\Microsoft.Vsa.dll \
	$(TARGETPATH)\mscorlib.dll \
	$(TARGETCOMPLUS)\System.dll

CSC_COMPILE_FLAGS = $(CSC_COMPILE_FLAGS) /nowarn:169 /nostdlib

# In retail, ignore warnings about unused variables.
!if "$(DDKBUILDENV)" != "checked" && "$(DDKBUILDENV)" != "fastchecked"
CSC_COMPILE_FLAGS = $(CSC_COMPILE_FLAGS) /nowarn:649
!endif

CSC_COMPILE_FLAGS = $(CSC_EXTRA_PREPROCESS_FLAGS) $(CSC_COMPILE_FLAGS)

!if "$(_TGTOS)" == "NT64"
CSC_COMPILE_FLAGS = $(CSC_COMPILE_FLAGS) /d:WIN64
!else
CSC_COMPILE_FLAGS = $(CSC_COMPILE_FLAGS) /d:WIN32
!endif

EMBEDEDRESOURCE= \
    $(TARGETPATH)\jsc.resources,jsc.resources

MANAGED_RESOURCES = $(TARGETPATH)\jsc.resources

CSC_SOURCES  =    \
    jsc.cs \
    $(O)\buildversioninfo.cs

