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.

312 lines
7.1 KiB

  1. #
  2. # Used by international builds.
  3. #
  4. # This makefile does the compile time localization for the international builds.
  5. #
  6. # Macro language must be defined when calling nmake.exe with this makefile.
  7. #
  8. #
  9. # Each target is validated against the given language and the razzle's architecture.
  10. # The valid target/language/architecture combinations are listed in tools\intlbld.txt.
  11. #
  12. TOOLS=$(_NTBINDIR)\tools
  13. !IFNDEF LANGUAGE
  14. ! ERROR You must define macro LANGUAGE to execute this makefile.
  15. !ENDIF
  16. !IFNDEF LOGFILE
  17. ! ERROR You must define macro LOGFILE
  18. !ENDIF
  19. !IFNDEF ERRFILE
  20. ! ERROR You must define macro ERRFILE
  21. !ENDIF
  22. BUILD=build -Z
  23. NMAKE=nmake
  24. QUOTE="
  25. !IFDEF CLEAN
  26. BUILD=$(BUILD) -c
  27. NMAKE=$(NMAKE) /A
  28. !ENDIF
  29. # Wrap with LOGERR.EXE
  30. CD= logerr $(QUOTE)cd
  31. BUILD=logerr $(QUOTE)$(BUILD)$(QUOTE)
  32. NMAKE=logerr $(QUOTE)$(NMAKE)
  33. all: echobldmsg \
  34. setstatus \
  35. UDDI \
  36. INFS \
  37. COMMON \
  38. LDRS \
  39. MVDM \
  40. MARS \
  41. MAKEBOOT \
  42. TXTSETUP \
  43. BOOTFIX \
  44. IAS \
  45. PERFS \
  46. EXTERNAL
  47. #
  48. # If BUILDMSG is not defined, then define it as the empty string to make
  49. # the conditionals easier to write.
  50. #
  51. echobldmsg:
  52. !IF "$(BUILDMSG)" != ""
  53. @echo.
  54. @echo $(BUILDMSG)
  55. !ENDIF
  56. setstatus:
  57. @ $(RAZZLETOOLPATH)\setbuildstatus.cmd -l:$(LANGUAGE) -b:$(SDXROOT)\buildname.txt -s:build
  58. COMMON:
  59. cd $(_NTBINDIR)\base\boot\startup\daytona
  60. logerr "build -Z -c -nmake LANGUAGE=usa"
  61. \
  62. cd $(_NTBINDIR)\base\boot\lib
  63. $(BUILD)
  64. \
  65. cd $(_NTBINDIR)\base\boot\bd
  66. $(BUILD)
  67. \
  68. cd $(_NTBINDIR)\base\boot\tftplib
  69. $(BUILD)
  70. \
  71. cd $(_NTBINDIR)\base\boot\bootssp\boot
  72. $(BUILD)
  73. \
  74. !IF ("$(IA64)" == "1")
  75. cd $(_NTBINDIR)\base\boot\efi
  76. $(BUILD)
  77. \
  78. cd $(_NTBINDIR)\base\ntos\ex\up
  79. $(BUILD)
  80. \
  81. !ENDIF
  82. cd $(_NTBINDIR)\base\ntos\rtl\boot
  83. $(BUILD)
  84. \
  85. cd $(_NTBINDIR)\base\ntos\config\boot
  86. $(BUILD)
  87. \
  88. cd $(_NTBINDIR)\base\ntos\ke
  89. $(BUILD)
  90. \
  91. !IF ("$(386)" == "1")
  92. cd $(_NTBINDIR)\base\mvdm\inc
  93. $(NMAKE) /f makefile.sub$(QUOTE)
  94. \
  95. cd $(_NTBINDIR)\base\mvdm\dos\v86\lib\xmm
  96. $(BUILD)
  97. \
  98. cd $(_NTBINDIR)\ds\nw\nw16\inc
  99. $(BUILD)
  100. \
  101. !ENDIF
  102. UDDI:
  103. cd $(_NTBINDIR)\inetsrv\uddi\help\ui\default
  104. $(BUILD)
  105. LDRS: STARTUP
  106. !IF [perl $(TOOLS)\cktarg.pm -t LDRS -l $(LANGUAGE)] == 0
  107. cd $(_NTBINDIR)\base\boot\detect
  108. $(BUILD)
  109. \
  110. cd $(_NTBINDIR)\base\boot\bldr\$(LANGUAGE)
  111. $(BUILD)
  112. \
  113. cd $(_NTBINDIR)\base\boot\setup\$(LANGUAGE)
  114. $(BUILD)
  115. !ENDIF
  116. STARTUP:
  117. !IF [perl $(TOOLS)\cktarg.pm -t STARTUP -l $(LANGUAGE)] == 0
  118. cd $(_NTBINDIR)\base\boot\startup\$(LANGUAGE)
  119. $(BUILD)
  120. !ENDIF
  121. MVDM:
  122. !IF [perl $(TOOLS)\cktarg.pm -t MVDM -l $(LANGUAGE)] == 0
  123. cd $(_NTBINDIR)\base\mvdm\wow16\kernel31\$(LANGUAGE)
  124. $(BUILD)
  125. \
  126. cd $(_NTBINDIR)\base\mvdm\dos\v86\messages
  127. -attrib -r $(LANGUAGE)\$(LANGUAGE).idx
  128. -attrib -r $(LANGUAGE)\$(LANGUAGE).msg
  129. $(NMAKE) /f makefile LANGUAGE=$(LANGUAGE)$(QUOTE)
  130. \
  131. cd $(_NTBINDIR)\base\mvdm\dos\v86\dev\ansi\$(LANGUAGE)
  132. $(BUILD)
  133. \
  134. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\append\$(LANGUAGE)
  135. $(BUILD)
  136. \
  137. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\command\$(LANGUAGE)
  138. $(BUILD)
  139. \
  140. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\debug\$(LANGUAGE)
  141. $(BUILD)
  142. \
  143. cd $(_NTBINDIR)\base\mvdm\dpmi\$(LANGUAGE)
  144. $(BUILD)
  145. \
  146. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\edlin\$(LANGUAGE)
  147. $(BUILD)
  148. \
  149. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\exe2bin\$(LANGUAGE)
  150. $(BUILD)
  151. \
  152. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\graphics\$(LANGUAGE)
  153. $(BUILD)
  154. \
  155. cd $(_NTBINDIR)\base\mvdm\dos\v86\dev\himem\$(LANGUAGE)
  156. $(BUILD)
  157. \
  158. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\keyb\$(LANGUAGE)
  159. $(BUILD)
  160. \
  161. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\loadfix\$(LANGUAGE)
  162. $(BUILD)
  163. \
  164. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\mem\$(LANGUAGE)
  165. $(BUILD)
  166. \
  167. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\nlsfunc\$(LANGUAGE)
  168. $(BUILD)
  169. \
  170. cd $(_NTBINDIR)\base\mvdm\dos\v86\doskrnl\dos\$(LANGUAGE)
  171. $(BUILD)
  172. \
  173. cd $(_NTBINDIR)\base\mvdm\dos\v86\doskrnl\bios\$(LANGUAGE)
  174. $(BUILD)
  175. \
  176. cd $(_NTBINDIR)\base\mvdm\dos\v86\redir\$(LANGUAGE)
  177. $(BUILD)
  178. \
  179. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\setver\$(LANGUAGE)
  180. $(BUILD)
  181. !ENDIF
  182. MAKEBOOT:
  183. !IF [perl $(TOOLS)\cktarg.pm -t MAKEBOOT -l $(LANGUAGE)] == 0
  184. cd $(_NTBINDIR)\base\ntsetup\bom\makeboot\16bit\$(LANGUAGE)
  185. $(BUILD)
  186. !ENDIF
  187. MARS:
  188. !IF [perl $(TOOLS)\cktarg.pm -t MARS -l $(LANGUAGE)] == 0
  189. cd $(_NTBINDIR)\ds\nw\nw16\tsr\$(LANGUAGE)
  190. $(BUILD)
  191. \
  192. cd $(_NTBINDIR)\ds\nw\vwipxspx\tsr\$(LANGUAGE)
  193. $(BUILD)
  194. !ENDIF
  195. TXTSETUP:
  196. !IF [perl $(TOOLS)\cktarg.pm -t TXTSETUP -l $(LANGUAGE)] == 0
  197. !IF [perl $(TOOLS)\cklang.pm -l $(LANGUAGE) -c JPN] == 0
  198. cd $(_NTBINDIR)\base\ntsetup\textmode\winnt\us2
  199. $(BUILD)
  200. !ENDIF
  201. cd $(_NTBINDIR)\base\ntsetup\textmode\winnt\$(LANGUAGE)
  202. $(BUILD)
  203. !ENDIF
  204. BOOTFIX:
  205. !IF [perl $(TOOLS)\cktarg.pm -t BOOTFIX -l $(LANGUAGE)] == 0
  206. cd $(_NTBINDIR)\base\boot\bootcode\etfs.$(LANGUAGE)
  207. $(BUILD)
  208. !ENDIF
  209. IAS:
  210. !IF [perl $(TOOLS)\cktarg.pm -t IAS -l $(LANGUAGE)] == 0
  211. cd $(_NTBINDIR)\net\ias\misc\$(LANGUAGE)
  212. $(BUILD)
  213. !ENDIF
  214. PERFS:
  215. !IF [perl $(TOOLS)\cktarg.pm -t PERFS -l $(LANGUAGE)] == 0
  216. cd $(_NTBINDIR)\base\screg\winreg\cntrtext\perfini\$(LANGUAGE)
  217. $(BUILD)
  218. !ENDIF
  219. INFS: \
  220. INFS_NTSETUP \
  221. !IF "$(LANGUAGE)" == "CHT"
  222. INFS_CHH \
  223. !ENDIF
  224. INFS_TERMSRV \
  225. INFS_COMPDATA \
  226. INFS_WINPE \
  227. INFS_FIXPRNSV \
  228. INFS_FAXSRV
  229. INFS_NTSETUP:
  230. !IF [perl $(TOOLS)\cktarg.pm -t INFS_NTSETUP -l $(LANGUAGE)] == 0
  231. cd $(_NTBINDIR)\MergedComponents\SetupInfs\daytona\$(LANGUAGE)inf
  232. $(BUILD)
  233. !ENDIF
  234. INFS_CHH:
  235. !IF [perl $(TOOLS)\cktarg.pm -t INFS_CHH -l $(LANGUAGE)] == 0
  236. cd $(_NTBINDIR)\MergedComponents\SetupInfs\daytona\CHHinf
  237. $(BUILD)
  238. !ENDIF
  239. INFS_TERMSRV:
  240. !IF [perl $(TOOLS)\cktarg.pm -t INFS_TERMSRV -l $(LANGUAGE)] == 0
  241. cd $(_NTBINDIR)\termsrv\setup\inf\daytona\$(LANGUAGE)inf
  242. $(BUILD)
  243. !ENDIF
  244. INFS_COMPDATA:
  245. !IF [perl $(TOOLS)\cktarg.pm -t INFS_COMPDATA -l $(LANGUAGE)] == 0
  246. cd $(_NTBINDIR)\MergedComponents\SetupInfs\compdata\$(LANGUAGE)inf
  247. $(BUILD)
  248. !ENDIF
  249. INFS_WINPE:
  250. !IF [perl $(TOOLS)\cktarg.pm -t INFS_WINPE -l $(LANGUAGE)] == 0
  251. cd $(_NTBINDIR)\MergedComponents\SetupInfs\winpe\$(LANGUAGE)inf
  252. $(BUILD)
  253. !ENDIF
  254. INFS_FIXPRNSV:
  255. !IF [perl $(TOOLS)\cktarg.pm -t INFS_FIXPRNSV -l $(LANGUAGE)] == 0
  256. cd $(_NTBINDIR)\printscan\print\drivers\binaries\fixprnsv\infs\$(LANGUAGE)inf
  257. $(BUILD)
  258. !ENDIF
  259. INFS_FAXSRV:
  260. !IF [perl $(TOOLS)\cktarg.pm -t INFS_FAXSRV -l $(LANGUAGE)] == 0
  261. cd $(_NTBINDIR)\printscan\faxsrv\setup\inf\$(LANGUAGE)inf
  262. $(BUILD)
  263. !ENDIF
  264. EXTERNAL:
  265. !IF [perl $(TOOLS)\cktarg.pm -t EXTERNAL -l $(LANGUAGE)] == 0
  266. SET intl_bld=1
  267. SET BUILD_NO_SYMCHK=1
  268. cd $(_NTBINDIR)\loc\bin\$(LANGUAGE)
  269. $(BUILD)
  270. !ENDIF