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.

81 lines
1.8 KiB

  1. !INCLUDE $(NTMAKEENV)\makefile.plt
  2. #
  3. # If BUILDMSG is not defined, the define it as the empty string to make
  4. # the conditionals easier to write.
  5. #
  6. !IFNDEF BUILDMSG
  7. BUILDMSG=
  8. !ENDIF
  9. !IFNDEF NO_STRICT
  10. STRICT=1
  11. !ENDIF
  12. !ifndef DXGROOT
  13. DXGROOT = $(DXROOT)\dxg
  14. !endif
  15. !ifndef D3DROOT
  16. D3DROOT = $(DXGROOT)\d3d
  17. !endif
  18. DXGGEN = $(PROJECT_ROOT)\published\dxg
  19. D3DDX7INC = $(D3DROOT)\dx7\inc
  20. TARGETSRCS0 = \
  21. d3dmkhdr.m4 \
  22. $(D3DDX7INC)\d3dp.h \
  23. $(D3DDX7INC)\d3dtypesp.h \
  24. $(D3DDX7INC)\d3dcapsp.h \
  25. $(D3DDX7INC)\d3dhal.h
  26. TARGETSRCS = $(TARGETSRCS0)
  27. all: $(TARGETSRCS)
  28. !IF "$(BUILDMSG)" != ""
  29. @ech ; $(BUILDMSG) ;
  30. !ENDIF
  31. clean: all
  32. clean1: cleansrc all
  33. cleansrc:
  34. # Use for loop because command.com's erase doesn't support multiple
  35. # file listings. Separate sources into smaller lists because command.com
  36. # faults. Totally bogus.
  37. -@for %x in ($(TARGETSRCS0)) do erase %x
  38. -@for %x in ($(TARGETSRCS1)) do erase %x
  39. HSPLITFLAGS = -ts dx3 -ts dx4 -ts dx5 -ts dx6 -ta dx7 -ts dx8 -v 700 -ts external -ta internal
  40. d3dmkhdr.m4 : $(DXGGEN)\d3dmkhdr.m4
  41. copy $(DXGGEN)\d3dmkhdr.m4 .
  42. $(D3DDX7INC)\d3dtypesp.h: $(DXGGEN)\d3dtypes.w $(DXGGEN)\d3dmkhdr.m4
  43. m4 $(DXGGEN)\d3dtypes.w > tmp.wx
  44. hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
  45. del tmp.wx
  46. del tmp.px
  47. $(D3DDX7INC)\d3dp.h: $(DXGGEN)\d3d.w $(DXGGEN)\d3dmkhdr.m4
  48. m4 $(DXGGEN)\d3d.w > tmp.wx
  49. hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
  50. del tmp.wx
  51. del tmp.px
  52. $(D3DDX7INC)\d3dcapsp.h: $(DXGGEN)\d3dcaps.w $(DXGGEN)\d3dmkhdr.m4
  53. m4 $(DXGGEN)\d3dcaps.w > tmp.wx
  54. hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
  55. del tmp.wx
  56. del tmp.px
  57. $(D3DDX7INC)\d3dhal.h: $(DXGGEN)\d3dhal.w $(DXGGEN)\d3dmkhdr.m4
  58. m4 $(DXGGEN)\d3dhal.w > tmp.wx
  59. hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
  60. del tmp.wx
  61. del tmp.px