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.

64 lines
1.4 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 = -Zd -Od -Oy-
  9. cc = cl
  10. cflags = -c -G3d -W3 -Di386=1 $(cdebug)
  11. !ENDIF
  12. !IF "$(CPU)" == "MIPS"
  13. #declarations for use on self hosted MIPS box.
  14. CPUTYPE=2
  15. cc = cl
  16. cflags = -c -W3 -DMIPS=1
  17. !ENDIF
  18. !IF "$(CPU)" == "PPC"
  19. #declarations for use on self hosted PPC box.
  20. CPUTYPE=3
  21. cc = mcl
  22. cflags = -c -G3d -W3 -DPPC=1
  23. !ENDIF
  24. !IFNDEF CPUTYPE
  25. !ERROR Must specify CPU Environment Variable (i386 or MIPS or PPC )
  26. !ENDIF
  27. #Universal declaration
  28. cvars = -DWIN32
  29. linkdebug = -debug:full -debugtype:coff
  30. link = link $(linkdebug)
  31. # link flags - must be specified after $(link)
  32. #
  33. # conflags : creating a character based console application
  34. # guiflags : creating a GUI based "Windows" application
  35. conflags = -subsystem:console -entry:mainCRTStartup
  36. guiflags = -subsystem:windows -entry:WinMainCRTStartup
  37. # Link libraries - system import and C runtime libraries
  38. #
  39. # conlibs : libraries to link with for a console application
  40. # guilibs : libraries to link with for a "Windows" application
  41. #
  42. # note : $(LIB) is set in environment variables
  43. conlibs = $(LIB)\libcmt.lib $(LIB)\*.lib
  44. guilibs = $(LIB)\libcmt.lib $(LIB)\*.lib