Source code of Windows XP (NT5)
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.

284 lines
6.2 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. INFS \
  35. COMMON \
  36. LDRS \
  37. MVDM \
  38. MARS \
  39. MAKEBOOT \
  40. TXTSETUP \
  41. BOOTFIX \
  42. IAS \
  43. PERFS \
  44. EXTERNAL
  45. #
  46. # If BUILDMSG is not defined, then define it as the empty string to make
  47. # the conditionals easier to write.
  48. #
  49. echobldmsg:
  50. !IF "$(BUILDMSG)" != ""
  51. @echo.
  52. @echo $(BUILDMSG)
  53. !ENDIF
  54. COMMON:
  55. !IF "$(LANGUAGE)" == "INTL" || "$(LANGUAGE)" == "intl"
  56. cd $(_NTBINDIR)\base\boot\startup\daytona
  57. logerr "build -Z -c -nmake LANGUAGE=usa"
  58. \
  59. cd $(_NTBINDIR)\base\boot\lib
  60. $(BUILD)
  61. \
  62. cd $(_NTBINDIR)\base\boot\bd
  63. $(BUILD)
  64. \
  65. cd $(_NTBINDIR)\base\boot\tftplib
  66. $(BUILD)
  67. \
  68. cd $(_NTBINDIR)\base\boot\bootssp\boot
  69. $(BUILD)
  70. \
  71. !IF ("$(IA64)" == "1")
  72. cd $(_NTBINDIR)\base\boot\efi
  73. $(BUILD)
  74. \
  75. cd $(_NTBINDIR)\base\ntos\ex\up
  76. $(BUILD)
  77. \
  78. !ENDIF
  79. cd $(_NTBINDIR)\base\ntos\rtl\boot
  80. $(BUILD)
  81. \
  82. cd $(_NTBINDIR)\base\ntos\config\boot
  83. $(BUILD)
  84. \
  85. cd $(_NTBINDIR)\base\ntos\ke
  86. $(BUILD)
  87. \
  88. !IF ("$(386)" == "1")
  89. cd $(_NTBINDIR)\base\mvdm\inc
  90. $(NMAKE) /f makefile.sub$(QUOTE)
  91. \
  92. cd $(_NTBINDIR)\base\mvdm\dos\v86\lib\xmm
  93. $(BUILD)
  94. \
  95. cd $(_NTBINDIR)\ds\nw\nw16\inc
  96. $(BUILD)
  97. \
  98. !ENDIF
  99. !ENDIF
  100. LDRS: STARTUP
  101. !IF [perl $(TOOLS)\cktarg.pm -t LDRS -l $(LANGUAGE)] == 0
  102. cd $(_NTBINDIR)\base\boot\bldr\$(LANGUAGE)
  103. $(BUILD)
  104. \
  105. cd $(_NTBINDIR)\base\boot\setup\$(LANGUAGE)
  106. $(BUILD)
  107. !ENDIF
  108. STARTUP:
  109. !IF [perl $(TOOLS)\cktarg.pm -t STARTUP -l $(LANGUAGE)] == 0
  110. cd $(_NTBINDIR)\base\boot\startup\$(LANGUAGE)
  111. $(BUILD)
  112. !ENDIF
  113. MVDM:
  114. !IF [perl $(TOOLS)\cktarg.pm -t MVDM -l $(LANGUAGE)] == 0
  115. cd $(_NTBINDIR)\base\mvdm\wow16\kernel31\$(LANGUAGE)
  116. $(BUILD)
  117. \
  118. cd $(_NTBINDIR)\base\mvdm\dos\v86\messages
  119. -attrib -r $(LANGUAGE)\$(LANGUAGE).idx
  120. $(NMAKE) /f makefile LANGUAGE=$(LANGUAGE)$(QUOTE)
  121. \
  122. cd $(_NTBINDIR)\base\mvdm\dos\v86\dev\ansi\$(LANGUAGE)
  123. $(BUILD)
  124. \
  125. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\append\$(LANGUAGE)
  126. $(BUILD)
  127. \
  128. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\command\$(LANGUAGE)
  129. $(BUILD)
  130. \
  131. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\debug\$(LANGUAGE)
  132. $(BUILD)
  133. \
  134. cd $(_NTBINDIR)\base\mvdm\dpmi\$(LANGUAGE)
  135. $(BUILD)
  136. \
  137. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\edlin\$(LANGUAGE)
  138. $(BUILD)
  139. \
  140. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\exe2bin\$(LANGUAGE)
  141. $(BUILD)
  142. \
  143. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\graphics\$(LANGUAGE)
  144. $(BUILD)
  145. \
  146. cd $(_NTBINDIR)\base\mvdm\dos\v86\dev\himem\$(LANGUAGE)
  147. $(BUILD)
  148. \
  149. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\keyb\$(LANGUAGE)
  150. $(BUILD)
  151. \
  152. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\loadfix\$(LANGUAGE)
  153. $(BUILD)
  154. \
  155. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\mem\$(LANGUAGE)
  156. $(BUILD)
  157. \
  158. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\nlsfunc\$(LANGUAGE)
  159. $(BUILD)
  160. \
  161. cd $(_NTBINDIR)\base\mvdm\dos\v86\doskrnl\dos\$(LANGUAGE)
  162. $(BUILD)
  163. \
  164. cd $(_NTBINDIR)\base\mvdm\dos\v86\doskrnl\bios\$(LANGUAGE)
  165. $(BUILD)
  166. \
  167. cd $(_NTBINDIR)\base\mvdm\dos\v86\redir\$(LANGUAGE)
  168. $(BUILD)
  169. \
  170. cd $(_NTBINDIR)\base\mvdm\dos\v86\cmd\setver\$(LANGUAGE)
  171. $(BUILD)
  172. !ENDIF
  173. MAKEBOOT:
  174. !IF [perl $(TOOLS)\cktarg.pm -t MAKEBOOT -l $(LANGUAGE)] == 0
  175. cd $(_NTBINDIR)\base\ntsetup\bom\makeboot\16bit\$(LANGUAGE)
  176. $(BUILD)
  177. !ENDIF
  178. MARS:
  179. !IF [perl $(TOOLS)\cktarg.pm -t MARS -l $(LANGUAGE)] == 0
  180. cd $(_NTBINDIR)\ds\nw\nw16\tsr\$(LANGUAGE)
  181. $(BUILD)
  182. \
  183. cd $(_NTBINDIR)\ds\nw\vwipxspx\tsr\$(LANGUAGE)
  184. $(BUILD)
  185. !ENDIF
  186. TXTSETUP:
  187. !IF [perl $(TOOLS)\cktarg.pm -t TXTSETUP -l $(LANGUAGE)] == 0
  188. !IF [perl $(TOOLS)\cklang.pm -l $(LANGUAGE) -c JPN] == 0
  189. cd $(_NTBINDIR)\base\ntsetup\textmode\winnt\us2
  190. $(BUILD)
  191. !ENDIF
  192. cd $(_NTBINDIR)\base\ntsetup\textmode\winnt\$(LANGUAGE)
  193. $(BUILD)
  194. !ENDIF
  195. BOOTFIX:
  196. !IF [perl $(TOOLS)\cktarg.pm -t BOOTFIX -l $(LANGUAGE)] == 0
  197. cd $(_NTBINDIR)\base\boot\bootcode\etfs.$(LANGUAGE)
  198. $(BUILD)
  199. !ENDIF
  200. IAS:
  201. !IF [perl $(TOOLS)\cktarg.pm -t IAS -l $(LANGUAGE)] == 0
  202. cd $(_NTBINDIR)\net\ias\misc\$(LANGUAGE)
  203. $(BUILD)
  204. !ENDIF
  205. PERFS:
  206. !IF [perl $(TOOLS)\cktarg.pm -t PERFS -l $(LANGUAGE)] == 0
  207. cd $(_NTBINDIR)\base\screg\winreg\cntrtext\perfini\$(LANGUAGE)
  208. $(BUILD)
  209. !ENDIF
  210. INFS: \
  211. INFS_NTSETUP \
  212. !IF "$(LANGUAGE)" == "CHT"
  213. INFS_CHH \
  214. !ENDIF
  215. INFS_TERMSRV \
  216. INFS_COMPDATA \
  217. INFS_WINPE
  218. INFS_NTSETUP:
  219. !IF [perl $(TOOLS)\cktarg.pm -t INFS_NTSETUP -l $(LANGUAGE)] == 0
  220. cd $(_NTBINDIR)\MergedComponents\SetupInfs\daytona\$(LANGUAGE)inf
  221. $(BUILD)
  222. !ENDIF
  223. INFS_CHH:
  224. !IF [perl $(TOOLS)\cktarg.pm -t INFS_CHH -l $(LANGUAGE)] == 0
  225. cd $(_NTBINDIR)\MergedComponents\SetupInfs\daytona\CHHinf
  226. $(BUILD)
  227. !ENDIF
  228. INFS_TERMSRV:
  229. !IF [perl $(TOOLS)\cktarg.pm -t INFS_TERMSRV -l $(LANGUAGE)] == 0
  230. cd $(_NTBINDIR)\termsrv\setup\inf\daytona\$(LANGUAGE)inf
  231. $(BUILD)
  232. !ENDIF
  233. INFS_COMPDATA:
  234. !IF [perl $(TOOLS)\cktarg.pm -t INFS_COMPDATA -l $(LANGUAGE)] == 0
  235. cd $(_NTBINDIR)\MergedComponents\SetupInfs\compdata\$(LANGUAGE)inf
  236. $(BUILD)
  237. !ENDIF
  238. INFS_WINPE:
  239. !IF [perl $(TOOLS)\cktarg.pm -t INFS_WINPE -l $(LANGUAGE)] == 0
  240. cd $(_NTBINDIR)\MergedComponents\SetupInfs\winpe\$(LANGUAGE)inf
  241. $(BUILD)
  242. !ENDIF
  243. EXTERNAL:
  244. !IF [perl $(TOOLS)\cktarg.pm -t EXTERNAL -l $(LANGUAGE)] == 0
  245. SET intl_bld=1
  246. cd $(_NTBINDIR)\loc\bin\$(LANGUAGE)
  247. $(BUILD)
  248. !ENDIF