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.

185 lines
4.5 KiB

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