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.

160 lines
3.9 KiB

  1. !ifndef MIDL
  2. MIDL = midl.exe
  3. !endif
  4. # Paths
  5. PUBLIC_IDL=..\..\public\
  6. # Flags
  7. MIDL_FLAGS= \
  8. $(MIDL_OPTIMIZATION) \
  9. -no_stamp \
  10. -Zp8 \
  11. $(INCPATH0) \
  12. -oldnames \
  13. -dlldata nul \
  14. -char unsigned \
  15. -ms_ext -c_ext \
  16. -DMIDL_PASS \
  17. $(C_DEFINES) \
  18. -cpp_cmd $(TARGET_CPP) \
  19. MES_MIDL_FLAGS= \
  20. -Oicf -no_format_opt -error all \
  21. -no_stamp \
  22. -Zp8 -robust \
  23. $(INCPATH0) \
  24. -oldnames \
  25. -dlldata nul \
  26. -char unsigned \
  27. -ms_ext -c_ext \
  28. -DMIDL_PASS \
  29. $(C_DEFINES) \
  30. -cpp_cmd $(TARGET_CPP)
  31. SSWITCH=-prefix sstub _
  32. CSWITCH=-prefix cstub _
  33. # Targets
  34. # Dual (Raw/Object) local RPC interface for forwarding remote activation calls
  35. # in DCOM95 -- RPCSS is the server
  36. # first MIDL invocation makes the object header proxy and stub
  37. # second MIDL invocation makes the client and the '_' prefixed server
  38. # The client/server stubs for the object version are generated by mega.idl
  39. # Only generate a header.
  40. $(O)\iface.h: ..\iface.idl
  41. $(MIDL) $(MIDL_FLAGS) -header $@ ..\iface.idl
  42. $(O)\catalog.h: ..\catalog.idl
  43. $(MIDL) $(MIDL_FLAGS) \
  44. -client none -server none -header $@ \
  45. -proxy nul \
  46. -iid $(O)\catalog_i.c \
  47. ..\catalog.idl
  48. $(O)\unisrgt.h: ..\unisrgt.idl
  49. $(MIDL) $(MIDL_FLAGS) \
  50. -client none -server none -header $@ \
  51. -proxy nul \
  52. -iid $(O)\unisrgt_i.c \
  53. ..\unisrgt.idl
  54. # the object proxy and stub are made with mega.idl
  55. $(O)\activate.h: ..\activate.idl
  56. $(MIDL) $(MES_MIDL_FLAGS) \
  57. -client none -server none -header $@ \
  58. -proxy nul \
  59. -iid $(O)\activate_i.c \
  60. ..\activate.idl
  61. $(O)\partitions.h: ..\partitions.idl
  62. $(MIDL) $(MIDL_FLAGS) \
  63. -client none -server none -header $@ \
  64. -proxy nul \
  65. -iid $(O)\partitions_i.c \
  66. ..\partitions.idl
  67. $(O)\stackwalk.h: ..\stackwalk.idl
  68. $(MIDL) $(MIDL_FLAGS) \
  69. -client none -server none -header $@ \
  70. -proxy nul \
  71. -iid $(O)\stackwalk_i.c \
  72. ..\stackwalk.idl
  73. $(O)\machnames.h: ..\machnames.idl
  74. $(MIDL) $(MIDL_FLAGS) \
  75. -client none -server none -header $@ \
  76. -proxy nul \
  77. -iid $(O)\machnames_i.c \
  78. ..\machnames.idl
  79. $(O)\globalopt.h: ..\globalopt.idl
  80. $(MIDL) $(MIDL_FLAGS) \
  81. -client none -server none -header $@ \
  82. -proxy nul \
  83. -iid $(O)\globalopt_i.c \
  84. ..\globalopt.idl
  85. # first MIDL invocation makes the object header
  86. # the object proxy and stub are made with mega.idl
  87. # second MIDL invocation makes the server
  88. $(O)\privact.h: ..\privact.idl
  89. $(MIDL) $(MES_MIDL_FLAGS) \
  90. -client none -server none -header $@ \
  91. -proxy nul \
  92. -iid $(O)\privact_i.c \
  93. ..\privact.idl
  94. $(O)\rawprivact.h: ..\privact.idl
  95. $(MIDL) $(MES_MIDL_FLAGS) \
  96. -cstub $(O)\rawprivact_c.c \
  97. -sstub $(O)\rawprivact_s.c \
  98. -header $@ \
  99. -D RAW \
  100. ..\privact.idl
  101. $(O)\contxt.h: ..\contxt.idl
  102. $(MIDL) $(MIDL_FLAGS) \
  103. -client none -server none -header $@ \
  104. -proxy nul \
  105. -iid $(O)\contxt_i.c \
  106. ..\contxt.idl
  107. #We are running MIDL again here so we can overwrite
  108. #the contxt_i.c that got created above. We don't want
  109. #the .h file so we delete it at the end.
  110. $(MIDL) $(MIDL_FLAGS) \
  111. -client none -server none \
  112. -proxy nul \
  113. -D_OLE_PRVIDL_PASS_ \
  114. -iid $(O)\contxt_i.c \
  115. ..\contxt.idl
  116. del contxt.h
  117. $(O)\asrtcfg.h: ..\asrtcfg.idl
  118. $(MIDL) $(MIDL_FLAGS) \
  119. -client none -server none -header $@ \
  120. -proxy nul \
  121. -iid $(O)\asrtcfg_i.c \
  122. ..\asrtcfg.idl
  123. allidl: $(O)\iface.h $(O)\activate.h $(O)\contxt.h $(O)\privact.h $(O)\rawprivact.h $(O)\catalog.h \
  124. $(O)\unisrgt.h $(O)\asrtcfg.h $(O)\partitions.h $(O)\stackwalk.h $(O)\machnames.h $(O)\globalopt.h
  125. clean:
  126. -erase $(O)\*.h >NUL 2>NUL