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.

89 lines
3.1 KiB

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