Leaked source code of windows server 2003
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.

80 lines
2.4 KiB

  1. !include $(NTMAKEENV)\makefile.plt
  2. OUTPUT_HDRS = dinput.rc \
  3. TARGETMOVED = dinputp.h \
  4. dinputdp.h\
  5. all: $(OUTPUT_HDRS) cleanmoved
  6. clean: cleanall all
  7. cleanall:
  8. del $(OUTPUT_HDRS)
  9. cleanmoved:
  10. -@del $(TARGETMOVED) 2>nul
  11. DIRECTXINC = $(PROJECT_ROOT)\Published\DirectX\dinput
  12. #
  13. # Yuck! We can't use -u because it causes all trail-commented lines to
  14. # be deleted! Instead, we must explicitly exclude DX3 rather than saying
  15. # "Anything that isn't DX5 should be excluded".
  16. #
  17. # -u = skip unknown flags
  18. # -ts foo = skip `foo' tags
  19. # -ta foo = include `foo' tags
  20. # -v 500 = this is version 500
  21. #
  22. # Tags:
  23. #
  24. # dx3 = DX3
  25. # dx5 = DX5
  26. # dx5 = DX5
  27. # dx5a = DX5a (Win98 Gold)
  28. # dx5b2= DX5b2 (NT5 beta 2)
  29. # dx6 = DX6.1a (Win98 OSR1)
  30. # dx7 = DX7 (Win2000 Gold)
  31. # dx8 = DX8
  32. #
  33. #HSPLITFLAGS=-u -ta dx5 -v 500 # Can't use this (See above)
  34. # The following line builds the DX5 header
  35. #HSPLITFLAGS=-ts dx3 -ta dx5 -ts dx5a -ts dx5b2 -ts dx6 -ts dx7 -ts dx8 -v 500
  36. # The following line builds the DX5a header; note that DX5a includes DX5
  37. #HSPLITFLAGS=-ts dx3 -ta dx5 -ta dx5a -ts dx5b2 -ts dx6 -ts dx7 -ts dx8 -v 50A
  38. # The following line builds the DX5B2 header
  39. #HSPLITFLAGS=-ts dx3 -ts dx5 -ts dx5a -ta dx5b2 -ts dx6 -ts dx7 -ts dx8 -v 5B2
  40. # The following line builds the DX6.1a header
  41. #HSPLITFLAGS=-ts dx3 -ts dx5 -ts dx5a -ts dx5b2 -ta dx6 -ts dx7 -ts dx8 -v 600
  42. # The following line builds the DX7 header
  43. HSPLITFLAGS=-ts dx3 -ts dx5 -ts dx5a -ts dx5b2 -ts dx6 -ta dx7 -ts dx8 -v 700
  44. # The following line builds the DX8 header
  45. #HSPLITFLAGS=-ts dx3 -ts dx5 -ts dx5a -ts dx5b2 -ts dx6 -ts dx7 -ta dx8 -v 800
  46. dinput.rc: dinputrc.w $(DIRECTXINC)\dimkhdr.m4
  47. copy $(DIRECTXINC)\dimkhdr.m4 dimkhdr.m4
  48. copy $(DIRECTXINC)\dinput.w dinput.w
  49. copy $(DIRECTXINC)\dinputk.w dinputk.w
  50. m4 dinputrc.w >tmp.wx
  51. hsplit $(HSPLITFLAGS) -4 -o tmp.x tmpp.x tmp.wx
  52. del tmp.wx
  53. wcshdr.exe < tmp.x > $@
  54. del tmp.x
  55. del tmpp.x
  56. del dimkhdr.m4
  57. del dinput.w
  58. del dinputk.w
  59. doc:
  60. $(DXROOT)\public\tools\win9x\common\autodoc /x EXTERNAL /s dinput.fmt /o dinput.rtf *.w *.c
  61. $(DXROOT)\public\tools\win9x\common\autodoc /x DDK /s dinput.fmt /o dinputd.rtf *.w *.c
  62. $(DXROOT)\public\tools\win9x\common\autodoc /s dinput.fmt /o dinputi.rtf *.w *.c