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.

72 lines
2.1 KiB

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