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.

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