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

  1. # Win32 NMAKE definitions
  2. !IF "$(CPU)" == "i386"
  3. # Debug switches are default for current release
  4. #
  5. # These switches allow for source level debugging
  6. # with NTSD for local and global variables.
  7. CPUTYPE=1
  8. cdebug = -Zi -Od
  9. cc = cl386
  10. cflags = -c -G3z -W3 -Di386=1 $(cdebug)
  11. cvtobj = REM MIPS-only conversion:
  12. cvtdebug =
  13. !ENDIF
  14. !IF "$(CPU)" == "MIPS"
  15. #declarations for use on self hosted MIPS box.
  16. CPUTYPE=2
  17. cc = cc
  18. cflags = -c -std -G0 -O -o $(*B).obj -EL -DMIPS=1
  19. cvtobj = mip2coff
  20. cvtdebug =
  21. !ENDIF
  22. !IF "$(CPU)" == "ALPHA"
  23. #declarations for use on self hosted ALPHA box.
  24. CPUTYPE=2
  25. cc = acc
  26. cflags = -c -std -G0 -O1 -o $(*B).obj -EL -DALPHA=1 -D_ALPHA_=1
  27. cvtobj = a2coff
  28. cvtdebug =
  29. !ENDIF
  30. !IFNDEF CPUTYPE
  31. !ERROR Must specify CPU Environment Variable (i386 or MIPS )
  32. !ENDIF
  33. #Universal declaration
  34. cvars = -DWIN32
  35. linkdebug = -debug:full -debugtype:cv
  36. link = link
  37. # link flags - must be specified after $(link)
  38. #
  39. # conflags : creating a character based console application
  40. # guiflags : creating a GUI based "Windows" application
  41. conflags = -subsystem:console -entry:mainCRTStartup
  42. guiflags = -subsystem:windows -entry:WinMainCRTStartup
  43. # Link libraries - system import and C runtime libraries
  44. #
  45. # conlibs : libraries to link with for a console application
  46. # guilibs : libraries to link with for a "Windows" application
  47. #
  48. # note : $(LIB) is set in environment variables
  49. conlibs = $(LIB)\libcmt.lib $(LIB)\*.lib
  50. guilibs = $(LIB)\libcmt.lib $(LIB)\*.lib