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.

74 lines
1.8 KiB

  1. #
  2. #
  3. # R E A D T H I S
  4. #
  5. # See the inference rules below (the section marked "Inference rules") to
  6. # see if any of them cover the rule that you want performed for your file.
  7. # The inference rules should cover most of the cases. If they don't, try
  8. # to add a new inference rule rather than adding a special-case rule for
  9. # your file.
  10. #
  11. #
  12. # Special rules for splitting out .w files
  13. #
  14. # wininet.h and wininetp.h
  15. $(O)\wininet.x $(O)\wininetp.x: wininet.w
  16. hsplit -e -o $(O)\wininet.x $(O)\wininetp.x $?
  17. $(O)\wininet.h: $(O)\wininet.x
  18. wcshdr < $? > $@
  19. $(O)\wininetp.h: $(O)\wininetp.x
  20. wcshdr < $? > $@
  21. $(O)\winhttp.h $(O)\winhttpi.h: winhttp.w
  22. hsplit -o $(O)\winhttp.h $(O)\winhttpi.h $?
  23. #
  24. # Non-obvious Dependencies
  25. #
  26. #
  27. # Inference rules. These help build whatever is in the NTTARGETFILES and
  28. # NTTARGETFILE0 lists. Most of these simply copy files.
  29. #
  30. .SUFFIXES:.h .w .hpp .tlb .dlg .c .cpp
  31. {}.w{$O}.h:
  32. hsplit -e -o $(O)\$(?R).x $(O)\$(?R)p.x $?
  33. wcshdr < $(O)\$(?R).x > $*.h
  34. {}.w{}.h:
  35. hsplit -e -o $(O)\$(?R).x $(O)\$(?R)p.x $?
  36. wcshdr < $(O)\$(?R).x > $(O)\$*.h
  37. #
  38. # mshtml.h has special funkiness:
  39. #
  40. # mshtml.idl -> obj\mshtml.h -[copy]-> sdk\inc\mshtmlc.h
  41. # obj\mshtml.h -[sed]--> sdk\inc\mshtml.h
  42. #
  43. # obj\mshtml.h is generated by MIDL and contains both C and C++ support.
  44. # splthdr.sed removes the C support; the result goes to sdk\inc\mshtml.h.
  45. # The C version goes to sdk\inc\mshtmlc.h.
  46. $(O)\mshtmlcpp.h: $(O)\mshtml.h
  47. type << > $@
  48. #if !defined(__cplusplus) || defined(CINTERFACE)
  49. // Include the full header file that works for C
  50. #include "mshtmlc.h"
  51. #else
  52. <<
  53. perl splthdr.pl < $? >> $@
  54. type << >> $@
  55. #endif /* !defined(__cplusplus) || defined(CINTERFACE) */
  56. <<