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.

84 lines
1.6 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. !ifdef NTMAKEENV # Prevent NT's build.exe from executing this makefile
  9. clean :
  10. !else # NTMAKEENV
  11. DIR = thunk
  12. ROOT = ..\..
  13. IS_OEM = 1
  14. !ifdef VERDIR
  15. ROOT = ..\$(ROOT)
  16. CLEANLIST = *.asm
  17. !else
  18. VERSIONLIST = debug retail
  19. !endif
  20. !ifdef DBCS
  21. THKASM = Shl3216.asm
  22. !else
  23. THKASM = Shl3216.asm Shl1632.asm
  24. !endif
  25. THKASM_CC = Cctl1632.asm
  26. THKASM_DLG = dlgthk.asm
  27. COMMONMKFILE = makefile
  28. THUNKCOM = $(ROOT)\dev\tools\binr\thunk.exe
  29. THUNK = $(THUNKCOM) $(THUNKOPT)
  30. !include $(ROOT)\shell\shell.mk
  31. !ifdef VERDIR
  32. TARGETS = $(TARGETS) $(THKASM) $(THKASM_CC) $(THKASM_DLG)
  33. !ifdef DBCS
  34. TARGETS = $(TARGETS) shl1632.asm
  35. !endif
  36. all build default: $(TARGETS)
  37. #
  38. # Rules for making thunks
  39. #
  40. INCLUDE =
  41. WIN32DEV = $(DEVROOT)
  42. $(THKASM_CC) : $(THUNKCOM) ..\$(@B).thk
  43. $(THUNK) -NC _TEXT -o $(@B) ..\$(@B).thk
  44. $(THKASM_DLG) : $(THUNKCOM) ..\$(@B).thk
  45. $(THUNK) -NC THUNK16B -o $(@B) ..\$(@B).thk
  46. !IFDEF DBCS
  47. Shl1632.asm : ..\Shl1632.thk
  48. sed -f ..\shl1632d.sed < ..\Shl1632.thk > Shl1632D.thk
  49. $(THUNK) -NC _TEXT -o $(@B) shl1632d.thk
  50. copy $(@B).asm smag.asm
  51. sed -f ..\shlthk.sed smag.asm > $(@B).asm
  52. del smag.asm
  53. !ENDIF
  54. $(THKASM) : $(THUNKCOM) ..\$(@B).thk
  55. $(THUNK) -NC _TEXT -o $(@B) ..\$(@B).thk
  56. copy $(@B).asm smag.asm
  57. sed -f ..\shlthk.sed smag.asm > $(@B).asm
  58. del smag.asm
  59. !endif # VERDIR
  60. !endif # NTMAKEENV