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.

128 lines
2.4 KiB

  1. SOURCES_USED=$(ROOT)\common.inc
  2. !if $(ALPHA)
  3. MSC_WARNING_LEVEL = /W3 /WX
  4. !endif
  5. !ifndef MSC_WARNING_LEVEL
  6. MSC_WARNING_LEVEL = /W3 /WX
  7. !endif
  8. C_DEFINES = \
  9. /D_WCTYPE_INLINE_DEFINED \
  10. !if $(FREEBUILD)
  11. /D_ATL_MIN_CRT \
  12. !else
  13. /D_DEBUG \
  14. !endif
  15. /DSTRICT
  16. !if !$(FREEBUILD)
  17. USE_RTTI=1
  18. MSC_OPTIMIZATION=/Od
  19. #USER_CPP_FLAGS=/zmf
  20. WATCOM_OPTS=/ei /zt16 /zm /zff /zgf
  21. LINKER_NOICF=1 # ICF is s-l-o-w
  22. !else
  23. MSC_OPTIMIZATION=/Oxs
  24. #USER_CPP_FLAGS=/zmf
  25. WATCOM_OPTS=/ei /zt16 /ox /oe /zm /zff /zgf
  26. !endif
  27. MSC_OPTIMIZATION=$(MSC_OPTIMIZATION) /Ob1 /Oi
  28. NOT_LEAN_AND_MEAN=1
  29. USE_NOLIBS=1
  30. UMTYPE=windows
  31. # Use NT 4.0/Win95 functionality only
  32. WIN32_IE_VERSION=0x0400
  33. WIN32_WINNT_VERSION=0x0400
  34. WIN32_WIN95_VERSION=0x0400
  35. SUBSYSTEM_VERSION=4.00
  36. !ifdef WIN16
  37. # Win 16 Specific Environment.
  38. !ifndef __MSVC_ENV__
  39. __WATCOM_ENV__=1
  40. !endif
  41. C_DEFINES = $(C_DEFINES) /DINC_WIN16X /DWRAP_RECTL /DFULL_DEBUG
  42. FULL_DEBUG=1
  43. !else
  44. !if !$(FREEBUILD)
  45. DEBUG_CRTS=1
  46. !endif
  47. # Win 32 Environment.
  48. C_DEFINES = $(C_DEFINES) /D_MT
  49. !endif
  50. !if $(386)
  51. NO_NTDLL=1
  52. !else
  53. # USE_NTDLL=1
  54. !endif
  55. CHECKED_ALT_DIR=1
  56. #
  57. # The IE build lab sets this flag for debug builds so we get full debug
  58. # on IE drops. The NT build lab wants debug lite builds and therefore
  59. # does not set it.
  60. #
  61. !ifdef MSHTML_FULL_DEBUG
  62. !message MSHTML_FULL_DEBUG was defined. Building full debug.
  63. FULL_DEBUG=1
  64. !endif
  65. !ifdef USE_ICECAP
  66. C_DEFINES = $(C_DEFINES) /DPRODUCT_PROF
  67. !endif
  68. !ifdef USE_PERFTEST
  69. C_DEFINES = $(C_DEFINES) /DPRODUCT_PERFTEST
  70. !endif
  71. !ifdef USE_PERFBUG
  72. C_DEFINES = $(C_DEFINES) /DPRODUCT_PERFBUG
  73. !endif
  74. !ifdef USE_PERFTAGS
  75. !if $(FREEBUILD)
  76. C_DEFINES = $(C_DEFINES) /DPERFTAGS
  77. !message PERFTAGS was defined
  78. !endif
  79. !endif
  80. !ifdef USE_MSHTML_INCREMENTAL_LINKING
  81. !if !$(FREEBUILD) && $(USE_MSHTML_INCREMENTAL_LINKING)
  82. NTDEBUG=ntsd
  83. NTDEBUGTYPE=windbg
  84. NTDBGFILES=1
  85. !undef USE_MAPSYM
  86. USE_INCREMENTAL_LINKING=1
  87. LINKER_FLAGS=$(LINKER_FLAGS) -INCREMENTAL:YES
  88. USE_PDB_TO_COMPILE=1
  89. TARGETPDB=TDC
  90. !message USE_MSHTML_INCREMENTAL_LINKING was defined
  91. !message $(TARGETPDB) was defined
  92. !endif
  93. !else
  94. # Compatibility with existing usage before use_mshtml_incremental_linking
  95. !ifdef USE_INCREMENTAL_LINKING
  96. !message DOING IT THE OLD WAY
  97. LINKER_FLAGS = -INCREMENTAL:YES
  98. USE_PDB_TO_COMPILE=1
  99. !else
  100. USE_MAPSYM=1
  101. !endif
  102. !endif