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.

162 lines
4.9 KiB

  1. # international mode
  2. !INCLUDE ..\wow16\makefile.inc
  3. !ifdef FE_SB
  4. FDTHK = $(DEST)\FdThkDB
  5. !else
  6. FDTHK = $(DEST)\FdThk
  7. !endif
  8. !ifdef FE_SB
  9. THKASM = $(DEST)\UsrThk.asm $(DEST)\LzFThk.asm
  10. !else
  11. THKASM = $(DEST)\UsrThk.asm $(DEST)\Usr32thk.asm $(DEST)\LzFThk.asm
  12. !endif
  13. THKASM_NET = $(DEST)\UsrMpr.asm
  14. THKASM_A = $(DEST)\MsgThk.asm
  15. THKASM_B = $(DEST)\GdiThk.asm $(DEST)\DlgThk.asm $(DEST)\$(FDTHK).asm $(DEST)\IcmThk.asm $(DEST)\VerThkSL.asm
  16. THKASM_K = $(DEST)\KrnThkSL.asm
  17. !ifdef WINDOWS_ME
  18. THKASM_KF = $(DEST)\KrnFThk.asm $(DEST)\MspThk.asm $(DEST)\MspFThk.asm
  19. !else
  20. THKASM_KF = $(DEST)\KrnFThk.asm $(DEST)\MspThk.asm $(DEST)\MspFThk.asm $(DEST)\Cctl1632.asm
  21. !endif
  22. !ifdef FE_SB
  23. THKASM_SF = $(DEST)\Shl3216.asm
  24. !else
  25. THKASM_SF = $(DEST)\Shl3216.asm $(DEST)\Shl1632.asm
  26. !endif
  27. FTHKASM2 = $(DEST)\NwnpFThk.asm $(DEST)\MsNwApi.asm $(DEST)\nwpwdthk.asm
  28. !ifdef FE_SB
  29. FTHKASM = $(DEST)\UsrFThk.asm $(DEST)\UsrF2Thk.asm $(DEST)\VerFThk.asm $(DEST)\LzFThk.asm $(DEST)\pwfthk.asm $(DEST)\pwcthk.asm $(DEST)\pdfthk.asm $(DEST)\pdcthk.asm
  30. !else
  31. !ifdef USE_MIRRORING
  32. FTHKASM = $(DEST)\UsrF2Thk.asm $(DEST)\VerFThk.asm $(DEST)\pwfthk.asm $(DEST)\pwcthk.asm $(DEST)\pdfthk.asm $(DEST)\pdcthk.asm
  33. FTHKASMM = $(DEST)\GdiFThk.asm $(DEST)\UsrFThk.asm
  34. !else
  35. FTHKASM = $(DEST)\GdiFThk.asm $(DEST)\UsrFThk.asm $(DEST)\UsrF2Thk.asm $(DEST)\VerFThk.asm $(DEST)\pwfthk.asm $(DEST)\pwcthk.asm $(DEST)\pdfthk.asm $(DEST)\pdcthk.asm
  36. !endif
  37. !endif
  38. !ifdef TAPI32
  39. THKASM_B = $(THKASM_B) $(DEST)\TapiThk.asm $(DEST)\Tapi32.asm
  40. !ifndef FE_SB
  41. FTHKASM = $(FTHKASM) $(DEST)\TapiFThk.asm
  42. !endif
  43. !endif
  44. !ifdef USE_MIRRORING
  45. TARGETS= $(THKASM) $(THKASM_NET) $(THKASM_A) $(THKASM_B) $(THKASM_K) $(THKASM_KF) \
  46. $(FTHKASMM) $(FTHKASM) $(FTHKASM2) $(THKASM_SF)
  47. !else
  48. TARGETS= $(THKASM) $(THKASM_NET) $(THKASM_A) $(THKASM_B) $(THKASM_K) $(THKASM_KF) \
  49. $(FTHKASM) $(FTHKASM2) $(THKASM_SF)
  50. !endif
  51. !ifdef WINDOWS_ME
  52. TARGETS= $(TARGETS) $(DEST)\Cctl1632.asm
  53. !endif
  54. !ifdef FE_SB
  55. TARGETS= $(TARGETS) $(DEST)\Usr32thk.asm $(DEST)\GdiFThk.asm $(DEST)\FdThk.asm $(DEST)\ImmFThk.asm $(DEST)\Imm32Thk.asm $(DEST)\WnlsFThk.asm $(DEST)\shl1632.asm
  56. !endif
  57. all: $(TARGETS)
  58. THUNKCOM = $(NTMAKEENV)\..\base\mvdm\tools\thunk.exe
  59. SED = $(NTMAKEENV)\..\base\mvdm\tools\sed.exe
  60. THUNK = $(THUNKCOM) $(THUNKOPT)
  61. !IFDEF FE_SB
  62. $(DEST)\Usr32thk.asm : Usr32thk.thk
  63. $(SED) -f thkdbcs.sed < Usr32thk.thk > U32ThkDB.thk
  64. $(THUNK) -NC FTHUNK16 -o $(DEST)\$(@B) U32ThkDB.thk
  65. $(DEST)\GdiFThk.asm : GdiFThk.thk
  66. $(SED) -f thkdbcs.sed < GdiFThk.thk > GdiFThkD.thk
  67. $(THUNK) -NC FTHUNK16 -o $(DEST)\$(@B) GdiFThkD.thk
  68. $(DEST)\Shl1632.asm : Shl1632.thk
  69. $(SED) -f shl1632d.sed < Shl1632.thk > Shl1632D.thk
  70. $(THUNK) -NC _TEXT -o $(DEST)\$(@B) shl1632d.thk
  71. copy $(DEST)\$(@B).asm $(DEST)\smag.asm
  72. $(SED) -f shlthk.sed $(DEST)\smag.asm > $(DEST)\$(@B).asm
  73. del $(DEST)\smag.asm
  74. !ENDIF
  75. !ifdef WINDOWS_ME
  76. $(DEST)\Cctl1632.asm : $(THUNKCOM) mecomctl.sed Cctl1632.thk
  77. # Make modified copy of .thk in debug/retail dir and compile from there
  78. $(SED) -f mecomctl.sed < Cctl1632.thk >Cctl1632.thk
  79. $(THUNK) -NC _TEXT -o $(DEST)\$(@B) $(@B).thk
  80. !endif
  81. $(THKASM) : $(THUNKCOM) $(@B).thk
  82. $(THUNK) -NC THUNK16 -o $(DEST)\$(@B) $(@B).thk
  83. $(THKASM_NET) : $(THUNKCOM) $(@B).thk
  84. $(THUNK) -NC _NET -o $(DEST)\$(@B) $(@B).thk
  85. $(THKASM_A) : $(THUNKCOM) $(@B).thk
  86. $(THUNK) -NC THUNK16A -o $(DEST)\$(@B) $(@B).thk
  87. $(THKASM_B) : $(THUNKCOM) $(@B).thk
  88. $(THUNK) -NC THUNK16B -o $(DEST)\$(@B) $(@B).thk
  89. $(THKASM_K) : $(THUNKCOM) $(@B).thk
  90. $(THUNK) -NC _MISCTEXT -NG _DATA -o $(DEST)\$(@B) $(@B).thk
  91. $(THKASM_KF) : $(THUNKCOM) $(@B).thk
  92. $(THUNK) -NC _TEXT -o $(DEST)\$(@B) $(@B).thk
  93. !ifdef USE_MIRRORING
  94. $(FTHKASMM) : $(THUNKCOM) $(@B)m.thk
  95. $(THUNK) -NC FTHUNK16 -o $(DEST)\$(@B) $(@B)m.thk
  96. !endif
  97. $(FTHKASM) : $(THUNKCOM) $(@B).thk
  98. $(THUNK) -NC FTHUNK16 -o $(DEST)\$(@B) $(@B).thk
  99. $(FTHKASM2) : $(THUNKCOM) $(@B).thk
  100. $(THUNK) -NC FTHK162 -o $(DEST)\$(@B) $(@B).thk
  101. $(THKASM_SF) : $(THUNKCOM) $(@B).thk
  102. $(THUNK) -NC _TEXT -o $(DEST)\$(@B) $(@B).thk
  103. copy $(DEST)\$(@B).asm $(DEST)\smag.asm
  104. $(SED) -f shlthk.sed $(DEST)\smag.asm > $(DEST)\$(@B).asm
  105. del $(DEST)\smag.asm
  106. $(DEST)\GdiThk.asm $(DEST)\GdiFThk.asm: GdiTypes.thk
  107. $(DEST)\UsrThk.asm $(DEST)\UsrFThk.asm $(DEST)\UsrF2Thk.asm: UsrTypes.thk
  108. !ifdef TAPI32
  109. $(DEST)\TapiThk.asm $(DEST)\TapiFThk.asm $(DEST)\Tapi32.asm: TapiThk.inc
  110. !endif
  111. showenv:
  112. set
  113. !ifdef FE_SB
  114. $(DEST)\FdThk.asm : FdThkDB.asm
  115. $(SED) "s/FdThkDB/FdThk/g" < fdthkdb.asm >fdthk.asm
  116. $(DEST)\ImmFThk.asm : $(THUNKCOM) $(@B).thk ImmTypes.thk
  117. $(THUNK) -NC FTHUNK16 -o $(DEST)\$(@B) $(@B).thk
  118. $(DEST)\Imm32Thk.asm : $(THUNKCOM) $(@B).thk ImmTypes.thk
  119. $(THUNK) -NC THUNK16 -o $(DEST)\$(@B) $(@B).thk
  120. $(DEST)\WnlsFThk.asm : $(THUNKCOM) $(@B).thk
  121. $(THUNK) -NC FTHUNK16 -o $(DEST)\$(@B) $(@B).thk
  122. !endif
  123. shell: $(THKASM_SF)