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.

162 lines
4.3 KiB

  1. @echo off
  2. break=on
  3. if "%NTMAKEENV%" == "" goto error
  4. goto start
  5. :start
  6. set IMNBUILD=debug
  7. if "%IMNSTAT%" == "" set IMNSTAT=yes
  8. set BLINE=-w
  9. set TARG=
  10. set DOIEDEVTOO=
  11. if "%IMNBUILDPROG%" == "" set IMNBUILDPROG=iebuild
  12. :options
  13. if "%1" == "retail" goto retail
  14. if "%1" == "shp" goto retail
  15. if "%1" == "free" goto retail
  16. if "%1" == "fre" goto retail
  17. if "%1" == "debug" goto debug
  18. if "%1" == "chk" goto debug
  19. if "%1" == "check" goto debug
  20. if "%1" == "depend" goto depend
  21. if "%1" == "clean" goto clean
  22. if "%1" == "nostat" goto nostat
  23. if "%1" == "nologo" goto nologo
  24. if "%1" == "prof" goto prof
  25. if "%1" == "iedev" goto iedev
  26. if "%1" == "mailnews" goto mailnews
  27. if "%1" == "mnonly" goto mnonly
  28. if "%1" == "wab" goto wab
  29. if "%1" == "inetcomm" goto inetcomm
  30. if "%1" == "msoeui" goto msoeui
  31. if "%1" == "mac" goto mac
  32. if "%1" == "" goto build
  33. if "%1" == "help" goto error
  34. if "%1" == "/help" goto error
  35. if "%1" == "-help" goto error
  36. if "%1" == "/?" goto error
  37. if "%1" == "-?" goto error
  38. set BLINE=%BLINE% %1
  39. goto next
  40. :nostat
  41. set IMNSTAT=
  42. goto next
  43. :iedev
  44. set DOIEDEVTOO=1
  45. goto next
  46. :mac
  47. if "%TARG%" == "1" goto error2
  48. set TARG=1
  49. set BLINE=%BLINE% ~msoeacct ~setup ~import ~mailnews ~wab ~shell ~statnery ~msoeui ~imnxport ~msoemapi
  50. goto next
  51. :inetcomm
  52. if "%TARG%" == "1" goto error2
  53. set TARG=1
  54. set BLINE=%BLINE% ~setup ~import ~mailnews ~wab ~cryptdbg ~shell ~statnery ~msoeui
  55. goto next
  56. :msoeui
  57. if "%TARG%" == "1" goto error2
  58. set TARG=1
  59. set BLINE=%BLINE% ~setup ~import ~mailnews ~wab ~cryptdbg ~shell ~statnery ~inetcomm
  60. goto next
  61. :wab
  62. if "%TARG%" == "1" goto error2
  63. set TARG=1
  64. set BLINE=%BLINE% ~setup ~import ~mailnews ~inetcomm ~shell ~statnery ~msoeui
  65. goto next
  66. :mnonly
  67. :mailnews
  68. if "%TARG%" == "1" goto error2
  69. set TARG=1
  70. set BLINE=%BLINE% ~wab ~setup ~import ~statnery ~msoeui
  71. goto next
  72. :nologo
  73. :prof
  74. echo NYI
  75. goto next
  76. :depend
  77. set BLINE=%BLINE% -f
  78. goto next
  79. :retail
  80. set IMNBUILD=retail
  81. goto next
  82. :debug
  83. set IMNBUILD=debug
  84. goto next
  85. :clean
  86. set BLINE=%BLINE% -cC
  87. goto next
  88. echo ! ! ! Shouldn't get here
  89. :next
  90. shift
  91. goto options
  92. :build
  93. if not "%DOIEDEVTOO%" == "1" goto mnbuild
  94. cat base > \__bang$.bat
  95. cd >> \__bang$.bat
  96. %_NTDRIVE%
  97. cd %_NTROOT%\private\iedev\inc
  98. call iebuild
  99. call \__bang$.bat
  100. del \__bang$.bat
  101. :mnbuild
  102. if "%IMNSTAT%" == "yes" set BLINE=%BLINE% -s
  103. if "%IMNBUILD%" == "retail" set BLINE=%BLINE% fre
  104. if "%IMNBUILD%" == "debug" set BLINE=%BLINE% chk nostrip pdb
  105. echo %IMNBUILDPROG% %BLINE%
  106. call %IMNBUILDPROG% %BLINE%
  107. goto end
  108. :error
  109. echo ******************************************************************
  110. echo * *
  111. echo * Usage: m [options] -- build the specified version of Athena *
  112. echo * *
  113. echo * Options: (none) -- build debug version of Athena *
  114. echo * shp -- build retail version of Athena *
  115. echo * depend -- build dependency list *
  116. echo * (nyi) nologo -- build Usability Testing Release *
  117. echo * clean -- do a clean build *
  118. echo * (nyi) prof -- enable profiling *
  119. echo * mailnews -- build just mailnews and compobj *
  120. echo * wab -- build just wab *
  121. echo * inetcomm -- build just inetcomm *
  122. echo * msoeui -- build just msoeui *
  123. echo * mac -- build just mac components *
  124. echo * nostat -- turn of status line *
  125. echo * help -- this text *
  126. echo * plus any other build.exe options *
  127. echo * *
  128. echo * NOTE : NTMAKEENV must be set (you must be in a razzle window) *
  129. echo * *
  130. echo ******************************************************************
  131. goto end
  132. :error2
  133. echo . . . Cannot specify multiple build targets
  134. goto end
  135. :end
  136. set IMNBUILD=
  137. set IMNSTAT=
  138. set BLINE=
  139. set TARG=
  140. set DOIEDEVTOO=