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.

175 lines
5.7 KiB

  1. !include $(NTMAKEENV)\makefile.plt
  2. PATH = $(BASEDIR)\tools\tools16;$(PATH)
  3. PLATFORM=$(TARGET_DIRECTORY)
  4. !ifndef ALT_PROJECT
  5. ALT_PROJECT=USA
  6. ALT_PROJECT_TARGET=.
  7. !endif
  8. SRC = .
  9. DEST=$(ALT_PROJECT)\$(_OBJ_DIR)\$(PLATFORM)
  10. INCLUDE = -I..\wow16\inc -I..\inc -I$(PROJECT_INC_PATH)
  11. !if !$(FREEBUILD)
  12. DBGOPTS = -DDBG=1
  13. !else
  14. DBGOPTS = -DDBG=0
  15. !endif
  16. ##########
  17. LINKCMD = $(DEST)\dosx.exe/far/map/cp:1,$(DEST)\dosx.map;
  18. !IF $(386)
  19. EXTRA_OPTIONS = -Di386 -DMD
  20. OPTIONS = -DDEBUG=0 $(DBGOPTS) -DWOW -DWOW_x86 $(EXTRA_OPTIONS) -D?QUIET
  21. !ELSE
  22. OPTIONS = -DDEBUG=0 $(DBGOPTS) -DWOW -DWOW_$(PLATFORM) $(EXTRA_OPTIONS) -D?QUIET
  23. !ENDIF
  24. MFLAGS = -t
  25. ASM = masm386 $(INCLUDE) $(OPTIONS) $(MFLAGS) $(DBCS_FLAGS)
  26. MAKE = nmake
  27. OBJS = $(DEST)\dxstrt.obj $(DEST)\dxmain.obj $(DEST)\dxintr.obj \
  28. $(DEST)\dxfunc.obj $(DEST)\dxutil.obj \
  29. $(DEST)\dxend.obj \
  30. $(DEST)\dxboot.obj $(DEST)\dxmsg.obj $(DEST)\dxbug.obj \
  31. $(DEST)\dxnetbio.obj $(DEST)\dxdisk.obj \
  32. $(DEST)\dxini.obj $(DEST)\dxoem.obj $(DEST)\dxemm.obj \
  33. $(DEST)\dxendpm.obj $(DEST)\dxfind.obj \
  34. !IF $(386)
  35. $(DEST)\ntnpxem.obj \
  36. !ENDIF
  37. $(DEST)\dxdma.obj $(DEST)\dxemm2.obj
  38. all: makedir oldobjs $(DEST)\dosx.exe
  39. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\dosx.exe $(DEST)\dosx.map $(DEST)\dosx.sym
  40. $(DEST)\dosx.exe: $(OBJS) dosx.def
  41. @echo $(DEST)\dxstrt.obj + >$(DEST)\tmp.lnk
  42. @echo $(DEST)\dxmain.obj + >>$(DEST)\tmp.lnk
  43. @echo $(DEST)\dxintr.obj + >>$(DEST)\tmp.lnk
  44. @echo $(DEST)\dxfunc.obj + >>$(DEST)\tmp.lnk
  45. @echo $(DEST)\dxutil.obj + >>$(DEST)\tmp.lnk
  46. @echo $(DEST)\dxdisk.obj + >>$(DEST)\tmp.lnk
  47. @echo $(DEST)\dxemm2.obj + >>$(DEST)\tmp.lnk
  48. @echo $(DEST)\dxdma.obj + >>$(DEST)\tmp.lnk
  49. @echo $(DEST)\dxnetbio.obj+ >>$(DEST)\tmp.lnk
  50. @echo $(DEST)\dxoem.obj + >>$(DEST)\tmp.lnk
  51. @echo $(DEST)\dxbug.obj + >>$(DEST)\tmp.lnk
  52. @echo $(DEST)\dxend.obj + >>$(DEST)\tmp.lnk
  53. @echo $(DEST)\dxmsg.obj+ >>$(DEST)\tmp.lnk
  54. !IF $(386)
  55. @echo $(DEST)\ntnpxem.obj + >>$(DEST)\tmp.lnk
  56. !ENDIF
  57. @echo $(DEST)\dxendpm.obj + >>$(DEST)\tmp.lnk
  58. @echo $(DEST)\dxemm.obj + >>$(DEST)\tmp.lnk
  59. @echo $(DEST)\dxini.obj + >>$(DEST)\tmp.lnk
  60. @echo $(DEST)\dxfind.obj + >>$(DEST)\tmp.lnk
  61. @echo $(DEST)\dxboot.obj, >>$(DEST)\tmp.lnk
  62. @echo $(LINKCMD) >>$(DEST)\tmp.lnk
  63. link16 @$(DEST)\tmp.lnk
  64. del $(DEST)\tmp.lnk
  65. mapsym -o $(DEST)\dosx.sym $(DEST)\dosx.map
  66. makedir:
  67. @-if not exist $(DEST) md $(DEST)
  68. @-if not exist $(DEST) md $(DEST)
  69. oldobjs:
  70. @if exist dxmsg.asm del dxmsg.asm
  71. clean: cleanup all
  72. cleanup:
  73. -del $(DEST)\*.obj $(DEST)\*.obj $(DEST)\dosx.map $(DEST)\dosx.sym $(DEST)\dosx.exe 2>nul
  74. $(DEST)\dxboot.obj dxboot.lst: dxboot.asm ./cmacros.inc \
  75. gendefs.inc pmdefs.inc segdefs.inc intmac.inc \
  76. $(PROJECT_INC_PATH)\vdmtib.inc ..\inc\bop.inc
  77. $(ASM) dxboot,$(DEST)\;
  78. $(DEST)\dxbug.obj dxbug.lst: dxbug.asm ./cmacros.inc gendefs.inc pmdefs.inc \
  79. segdefs.inc
  80. $(ASM) dxbug,$(DEST)\;
  81. $(DEST)\dxdisk.obj dxdisk.lst: dxdisk.asm ./cmacros.inc gendefs.inc \
  82. interupt.inc pmdefs.inc segdefs.inc intmac.inc
  83. $(ASM) dxdisk,$(DEST)\;
  84. $(DEST)\dxdma.obj dxdma.lst: dxdma.asm ./cmacros.inc gendefs.inc \
  85. interupt.inc pmdefs.inc segdefs.inc
  86. $(ASM) dxdma,$(DEST)\;
  87. $(DEST)\dxemm.obj dxemm.lst: dxemm.asm ./cmacros.inc gendefs.inc \
  88. segdefs.inc
  89. $(ASM) dxemm,$(DEST)\;
  90. $(DEST)\dxemm2.obj dxemm2.lst: dxemm2.asm ./cmacros.inc gendefs.inc segdefs.inc
  91. $(ASM) dxemm2,$(DEST)\;
  92. $(DEST)\dxend.obj dxend.lst: dxend.asm ./cmacros.inc gendefs.inc \
  93. pmdefs.inc segdefs.inc
  94. $(ASM) dxend,$(DEST)\;
  95. $(DEST)\dxendpm.obj dxendpm.lst: dxendpm.asm ./cmacros.inc segdefs.inc
  96. $(ASM) dxendpm,$(DEST)\;
  97. $(DEST)\dxfind.obj dxfind.lst: dxfind.asm ./cmacros.inc gendefs.inc segdefs.inc
  98. $(ASM) dxfind,$(DEST)\;
  99. $(DEST)\dxfunc.obj dxfunc.lst: dxfunc.asm ../wow16/inc/dosx.inc ./cmacros.inc \
  100. gendefs.inc pmdefs.inc segdefs.inc intmac.inc \
  101. stackchk.inc ..\inc\bop.inc
  102. $(ASM) dxfunc,$(DEST)\;
  103. $(DEST)\dxini.obj dxini.lst: dxini.asm ./cmacros.inc gendefs.inc segdefs.inc \
  104. intmac.inc
  105. $(ASM) dxini,$(DEST)\;
  106. $(DEST)\dxintr.obj dxintr.lst: dxintr.asm ./cmacros.inc \
  107. gendefs.inc interupt.inc pmdefs.inc segdefs.inc intmac.inc \
  108. stackchk.inc $(PROJECT_INC_PATH)\vdmtib.inc ..\inc\bop.inc
  109. $(ASM) dxintr,$(DEST)\;
  110. $(DEST)\dxmain.obj dxmain.lst: dxmain.asm ./cmacros.inc gendefs.inc \
  111. pmdefs.inc segdefs.inc ..\inc\bop.inc
  112. $(ASM) dxmain,$(DEST)\;
  113. $(DEST)\dxmsg.obj dxmsg.lst: $(ALT_PROJECT)\dxmsg.asm ./cmacros.inc gendefs.inc segdefs.inc
  114. $(ASM) $(ALT_PROJECT)\dxmsg,$(DEST)\;
  115. $(DEST)\dxnetbio.obj dxnetbio.lst: dxnetbio.asm ./cmacros.inc \
  116. gendefs.inc interupt.inc netbios.inc pmdefs.inc segdefs.inc intmac.inc \
  117. stackchk.inc ..\inc\bop.inc
  118. $(ASM) dxnetbio,$(DEST)\;
  119. $(DEST)\dxoem.obj dxoem.lst: dxoem.asm ./cmacros.inc gendefs.inc pmdefs.inc \
  120. segdefs.inc
  121. $(ASM) dxoem,$(DEST)\;
  122. $(DEST)\dxstrt.obj dxstrt.lst: dxstrt.asm ./cmacros.inc \
  123. gendefs.inc pmdefs.inc segdefs.inc intmac.inc ..\inc\bop.inc
  124. $(ASM) dxstrt,$(DEST)\;
  125. $(DEST)\dxutil.obj dxutil.lst: dxutil.asm ../inc/bop.inc ../inc/dpmi.inc \
  126. ./cmacros.inc gendefs.inc pmdefs.inc intmac.inc ..\inc\bop.inc
  127. $(ASM) dxutil,$(DEST)\;
  128. $(DEST)\ntnpxem.obj ntnpxem.lst: ntnpxem.asm \
  129. segdefs.inc gendefs.inc pmdefs.inc intmac.inc
  130. $(ASM) -I$(_NTBINDIR)\public\sdk\inc ntnpxem,$(DEST)\;
  131. ..\inc\dpmi.inc : ..\inc\dpmi.h
  132. cd ..\inc
  133. nmake dpmi.inc
  134. cd ..\dpmi