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.

150 lines
3.6 KiB

  1. #
  2. # Places all of the internet binaries into the inetsrv tree.
  3. # Also establishes some standard conventions used across the project.
  4. #
  5. #
  6. # Override IISBASEDIR if you're one of those weirdos that didn't
  7. # enlist the IIS project into the correct directory.
  8. #
  9. !IFNDEF IISBASEDIR
  10. IISBASEDIR=$(PROJECT_ROOT)\iis
  11. !ENDIF
  12. !IF "$(OACR)" == "Yes"
  13. SUBSTITUTE_386_CC=$(PROJECT_ROOT)\iis\oacr\bin\cl.exe
  14. !ENDIF
  15. #
  16. # We'll use our own COFFBASE.TXT and PLACEFIL.TXT, thank you very much.
  17. #
  18. !IFNDEF COFFBASE_TXT_FILE
  19. COFFBASE_TXT_FILE=$(IISBASEDIR)\coffbase.txt
  20. !ENDIF
  21. !IFNDEF BINPLACE_PLACEFILE
  22. BINPLACE_PLACEFILE=$(IISBASEDIR)\placefil.txt
  23. !ENDIF
  24. # This used to have the -y option. Now, inetsrv binaries are binplaced
  25. # to retail, so the symbols should be binplaced to symbols\retail.
  26. # The -y switch causes the symbols to be binplaced to the wrong directory.
  27. BINPLACE_FLAGS=$(BINPLACE_FLAGS)
  28. # enable building legoizable binaries
  29. !ifndef IIS_NO_BBT
  30. NTBBT=1
  31. !endif
  32. # define CAP related options
  33. CAP_LINK_OPTIONS=-debugtype:coff -debug:mapped,partial
  34. CAP_LIBS=$(SDK_LIB_PATH)\cap.lib
  35. CAP_FLAGS= -Zd -Gh
  36. !IFDEF CAP_PROFILE
  37. USER_C_FLAGS=$(USER_C_FLAGS) $(CAP_FLAGS)
  38. LINK_OPTIONS=$(CAP_LINK_OPTIONS)
  39. !ENDIF
  40. # define ICE-CAP related options
  41. ICAP_LINK_OPTIONS=-debugtype:coff -debug:mapped,partial
  42. ICAP_LIBS=$(SDK_LIB_PATH)\icap.lib $(SDK_LIB_PATH)\penter.lib
  43. ICAP_FLAGS= -Zi -Gh
  44. !IFDEF ICAP_PROFILE
  45. USER_C_FLAGS=$(USER_C_FLAGS) $(ICAP_FLAGS)
  46. LINK_OPTIONS=$(ICAP_LINK_OPTIONS)
  47. !ENDIF
  48. !ifndef IIS_NO_PDB
  49. USE_PDB=1
  50. !endif
  51. !if $(386)
  52. !ifndef IIS_NO_SYM
  53. USE_MAPSYM=1
  54. !endif
  55. !endif
  56. # !ifdef _NT386TREE
  57. # !if ("$(COMPUTERNAME)" == "X86CHK")
  58. # _NT386TREE=$(_NT386TREE)\InetSrv
  59. # !elseif ("$(COMPUTERNAME)" == "X86FRE")
  60. # _NT386TREE=$(_NT386TREE)\InetSrv
  61. # !else
  62. # _NT386TREE=$(_NT386TREE)\iis
  63. # !endif
  64. # !endif
  65. # !ifdef _NTMIPSTREE
  66. # _NTMIPSTREE=$(_NTMIPSTREE)\iis
  67. # !endif
  68. # !ifdef _NTALPHATREE
  69. # !if ("$(COMPUTERNAME)" == "ALPHACHK")
  70. # _NTALPHATREE=$(_NTALPHATREE)\InetSrv
  71. # !elseif ("$(COMPUTERNAME)" == "ALPHAFRE")
  72. # _NTALPHATREE=$(_NTALPHATREE)\InetSrv
  73. # !else
  74. # _NTALPHATREE=$(_NTALPHATREE)\iis
  75. # !endif
  76. # !endif
  77. # !ifdef _NTPPCTREE
  78. # _NTPPCTREE=$(_NTPPCTREE)\iis
  79. # !endif
  80. #
  81. # Enable warning level 3, treat warnings as errors
  82. #
  83. !ifndef MSC_WARNING_LEVEL
  84. MSC_WARNING_LEVEL=/W3 /WX
  85. !endif
  86. #
  87. # Don't allow anyone to disable warnings as errors.
  88. #
  89. # If any of the {platform}_WARNING_LEVEL macros are defined without
  90. # the /WX switch, append /WX to the macro and whine about it.
  91. #
  92. !if 0
  93. !ifdef 386_WARNING_LEVEL
  94. ! if ("$(386_WARNING_LEVEL:/WX=x)" == "$(386_WARNING_LEVEL)") && ("$(386_WARNING_LEVEL:-WX=x)" == "$(386_WARNING_LEVEL)")
  95. ! message 386_WARNING_LEVEL defined without /WX
  96. 386_WARNING_LEVEL=$(386_WARNING_LEVEL) /WX
  97. ! endif
  98. !endif
  99. !ifdef MIPS_WARNING_LEVEL
  100. ! if ("$(MIPS_WARNING_LEVEL:/WX=x)" == "$(MIPS_WARNING_LEVEL)") && ("$(MIPS_WARNING_LEVEL:-WX=x)" == "$(MIPS_WARNING_LEVEL)")
  101. ! message MIPS_WARNING_LEVEL defined without /WX
  102. MIPS_WARNING_LEVEL=$(MIPS_WARNING_LEVEL) /WX
  103. ! endif
  104. !endif
  105. !ifdef ALPHA_WARNING_LEVEL
  106. ! if ("$(ALPHA_WARNING_LEVEL:/WX=x)" == "$(ALPHA_WARNING_LEVEL)") && ("$(ALPHA_WARNING_LEVEL:-WX=x)" == "$(ALPHA_WARNING_LEVEL)")
  107. ! message ALPHA_WARNING_LEVEL defined without /WX
  108. ALPHA_WARNING_LEVEL=$(ALPHA_WARNING_LEVEL) /WX
  109. ! endif
  110. !endif
  111. !ifdef PPC_WARNING_LEVEL
  112. ! if ("$(PPC_WARNING_LEVEL:/WX=x)" == "$(PPC_WARNING_LEVEL)") && ("$(PPC_WARNING_LEVEL:-WX=x)" == "$(PPC_WARNING_LEVEL)")
  113. ! message PPC_WARNING_LEVEL defined without /WX
  114. PPC_WARNING_LEVEL=$(PPC_WARNING_LEVEL) /WX
  115. ! endif
  116. !endif
  117. !endif