Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
1.5 KiB

# Win32 NMAKE definitions
!IF "$(CPU)" == "i386"
# Debug switches are default for current release
#
# These switches allow for source level debugging
# with NTSD for local and global variables.
CPUTYPE=1
cdebug = -Zi -Od
cc = cl386
cflags = -c -G3z -W3 -Di386=1 $(cdebug)
cvtobj = REM MIPS-only conversion:
cvtdebug =
!ENDIF
!IF "$(CPU)" == "MIPS"
#declarations for use on self hosted MIPS box.
CPUTYPE=2
cc = cc
cflags = -c -std -G0 -O -o $(*B).obj -EL -DMIPS=1
cvtobj = mip2coff
cvtdebug =
!ENDIF
!IF "$(CPU)" == "ALPHA"
#declarations for use on self hosted ALPHA box.
CPUTYPE=2
cc = acc
cflags = -c -std -G0 -O1 -o $(*B).obj -EL -DALPHA=1 -D_ALPHA_=1
cvtobj = a2coff
cvtdebug =
!ENDIF
!IFNDEF CPUTYPE
!ERROR Must specify CPU Environment Variable (i386 or MIPS )
!ENDIF
#Universal declaration
cvars = -DWIN32
linkdebug = -debug:full -debugtype:cv
link = link
# link flags - must be specified after $(link)
#
# conflags : creating a character based console application
# guiflags : creating a GUI based "Windows" application
conflags = -subsystem:console -entry:mainCRTStartup
guiflags = -subsystem:windows -entry:WinMainCRTStartup
# Link libraries - system import and C runtime libraries
#
# conlibs : libraries to link with for a console application
# guilibs : libraries to link with for a "Windows" application
#
# note : $(LIB) is set in environment variables
conlibs = $(LIB)\libcmt.lib $(LIB)\*.lib
guilibs = $(LIB)\libcmt.lib $(LIB)\*.lib