Source code of Windows XP (NT5)
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.

230 lines
6.5 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. -Zp8 \
  10. $(INCPATH0) \
  11. -oldnames \
  12. -dlldata nul \
  13. -proxy nul \
  14. -char unsigned \
  15. -ms_ext -c_ext \
  16. -DMIDL_PASS \
  17. $(C_DEFINES) \
  18. $(TARGET_DEFINES) \
  19. -cpp_cmd $(TARGET_CPP) \
  20. MES_MIDL_FLAGS= \
  21. -Oicf -no_format_opt -error all \
  22. -Zp8 -robust \
  23. $(INCPATH0) \
  24. -oldnames \
  25. -dlldata nul \
  26. -proxy nul \
  27. -char unsigned \
  28. -ms_ext -c_ext \
  29. -DMIDL_PASS \
  30. $(C_DEFINES) \
  31. $(TARGET_DEFINES) \
  32. -cpp_cmd $(TARGET_CPP)
  33. SSWITCH=-prefix sstub _
  34. CSWITCH=-prefix cstub _
  35. # Targets
  36. # Dual (Raw/Object) local RPC interface for forwarding remote activation calls
  37. # in DCOM95 -- RPCSS is the server
  38. # first MIDL invocation makes the object header proxy and stub
  39. # second MIDL invocation makes the client and the '_' prefixed server
  40. # The client/server stubs for the object version are generated by mega.idl
  41. $(O)\forward.h : ..\forward.idl $(SDK_INC_PATH)\obase.idl ..\forward.acf
  42. $(MIDL) $(MIDL_FLAGS) -header $(O)\forward.h \
  43. -iid nul -client none -server none ..\forward.idl
  44. $(O)\rawforward.h : ..\forward.idl $(SDK_INC_PATH)\obase.idl ..\forward.acf
  45. $(MIDL) $(MIDL_FLAGS) -out $(O) -header rawforward.h \
  46. $(SSWITCH) -D RAW ..\forward.idl
  47. # local resolver interface for DCOM95 (raw RPC only)
  48. $(O)\resolve.h : ..\resolve.idl $(SDK_INC_PATH)\obase.idl ..\resolve.acf
  49. $(MIDL) $(SSWITCH) $(MIDL_FLAGS) -out $(O) -header resolve.h ..\resolve.idl
  50. # only a header file generated
  51. #$(O)\iface.h: ..\iface.idl
  52. # $(MIDL) $(MIDL_FLAGS) -header $@ ..\iface.idl
  53. # Local Resolver Interface for NT
  54. $(O)\lclor.h: ..\lclor.idl $(SDK_INC_PATH)\obase.idl ..\lclor.acf
  55. $(MIDL) $(SSWITCH) $(MIDL_FLAGS) -out $(O) -header lclor.h ..\lclor.idl
  56. $(O)\orcb.h: ..\orcb.idl $(SDK_INC_PATH)\obase.idl ..\orcb.acf
  57. $(MIDL) $(SSWITCH) $(MIDL_FLAGS) -out $(O) -header orcb.h ..\orcb.idl
  58. # first MIDL invocation makes the object header
  59. # the object proxy and stub are made with mega.idl
  60. # second MIDL invocation makes the server and the '_' prefixed client
  61. $(O)\odeth.h : ..\odeth.idl ..\..\private\iface.idl ..\odeth.acf \
  62. $(SDK_INC_PATH)\obase.idl $(PUBLIC_IDL)\remunk.idl ..\comhndl.h
  63. $(MIDL) $(MIDL_FLAGS) -out $(O) -header odeth.h \
  64. -client none -server none ..\odeth.idl
  65. $(O)\rawodeth.h : ..\odeth.idl ..\..\private\iface.idl ..\odeth.acf \
  66. $(SDK_INC_PATH)\obase.idl $(PUBLIC_IDL)\remunk.idl ..\comhndl.h
  67. $(MIDL) $(MIDL_FLAGS) -out $(O) -header rawodeth.h \
  68. $(SSWITCH) -D RAW ..\odeth.idl
  69. # only a header file generated
  70. $(O)\irot.h: ..\irot.idl ..\irot.acf
  71. $(MIDL) $(MIDL_FLAGS) \
  72. -cstub $(O)\irot_c.c \
  73. -sstub $(O)\irot_s.c \
  74. -header $@ ..\irot.idl
  75. # Only generate a header. The object proxy and stub are made with
  76. # mega.idl
  77. $(O)\getif.h: ..\getif.idl
  78. $(MIDL) $(MIDL_FLAGS) \
  79. -client none -server none -header $@ \
  80. -iid $(O)\getif_i.c \
  81. ..\getif.idl
  82. # Only generate a header. The object proxy and stub are made with
  83. # mega.idl
  84. !ifdef SERVER_HANDLER
  85. $(O)\srvhdl.h: ..\srvhdl.idl
  86. $(MIDL) $(MIDL_FLAGS) \
  87. -client none -server none -header $@ \
  88. -iid $(O)\srvhdl_i.c \
  89. ..\srvhdl.idl
  90. !endif
  91. # Only generate a header. The object proxy and stub are made with
  92. # mega.idl
  93. $(O)\host.h: ..\host.idl
  94. $(MIDL) $(MIDL_FLAGS) \
  95. -client none -server none -header $@ \
  96. -iid $(O)\host_i.c \
  97. ..\host.idl
  98. # Only generate a header.
  99. $(O)\multqi.h: ..\multqi.idl
  100. $(MIDL) $(MIDL_FLAGS) \
  101. -client none -server none -header $@ \
  102. ..\multqi.idl
  103. # Only generate a header. The object proxy and stub are made with
  104. # mega.idl
  105. $(O)\apart.h: ..\apart.idl
  106. $(MIDL) $(MIDL_FLAGS) \
  107. -client none -server none -header $@ \
  108. -iid $(O)\apart_i.c \
  109. ..\apart.idl
  110. # Only generate a header. The object proxy and stub are made with
  111. # mega.idl -- this should be before actprops.idl
  112. $(O)\custmact.h: ..\custmact.idl ..\custmact.acf
  113. $(MIDL) $(MES_MIDL_FLAGS) \
  114. -cstub $(O)\custmact_c.c \
  115. -sstub $(O)\custmact_s.c \
  116. -header $@ \
  117. ..\custmact.idl
  118. # Only generate a header. The object proxy and stub are made with
  119. # mega.idl
  120. $(O)\serializ.h: ..\serializ.idl
  121. $(MIDL) $(MIDL_FLAGS) \
  122. -client none -server none -header $@ \
  123. -iid $(O)\serializ_i.c \
  124. ..\serializ.idl
  125. $(O)\buffer.h: ..\buffer.idl
  126. $(MIDL) $(MIDL_FLAGS) \
  127. -client none -server none -header $@ \
  128. -iid $(O)\buffer_i.c \
  129. ..\buffer.idl
  130. # first MIDL invocation makes the object header
  131. # the object proxy and stub are made with mega.idl
  132. # second MIDL invocation makes the server and the '_' prefixed client
  133. $(O)\objsrv.h: ..\objsrv.idl ..\objsrv.acf
  134. $(MIDL) $(MIDL_FLAGS) \
  135. -client none -server none -out $(O) -header objsrv.h \
  136. ..\objsrv.idl
  137. $(O)\rwobjsrv.h: ..\objsrv.idl ..\objsrv.acf
  138. $(MIDL) $(MIDL_FLAGS) \
  139. -cstub $(O)\objsrv_c.c \
  140. -server none -header $@ \
  141. -D RAW \
  142. ..\objsrv.idl
  143. # COM+ surrogate protocol interface
  144. $(O)\srgtprot.h: ..\srgtprot.idl ..\srgtprot.acf
  145. $(MIDL) $(MIDL_FLAGS) \
  146. -cstub $(O)\srgtprot_c.c \
  147. -sstub $(O)\srgtprot_s.c \
  148. -header $@\
  149. ..\srgtprot.idl
  150. # first MIDL invocation makes the server and the '_' prefixed client
  151. # second MIDL invocation makes proxy for ole32.dll
  152. $(O)\scm.h: ..\scm.idl ..\scm.acf
  153. $(MIDL) $(MIDL_FLAGS) \
  154. $(CSWITCH) \
  155. -cstub $(O)\scm_z.c \
  156. -sstub $(O)\scm_s.c \
  157. -header $@\
  158. ..\scm.idl
  159. $(MIDL) $(MIDL_FLAGS) \
  160. -cstub $(O)\scm_c.c \
  161. -server none -header $@ \
  162. ..\scm.idl
  163. # first MIDL invocation makes the object header
  164. # the object proxy and stub are made with mega.idl
  165. # second MIDL invocation makes the server
  166. $(O)\dscm.h: ..\dscm.idl
  167. $(MIDL) $(MIDL_FLAGS) \
  168. -client none -server none -header $@ \
  169. -iid $(O)\dscm_i.c \
  170. ..\dscm.idl
  171. $(O)\rawdscm.h: ..\dscm.idl
  172. $(MIDL) $(MIDL_FLAGS) \
  173. -cstub ..\..\..\com\dcomrem\$(DEST_TREE)\dscm_c.c \
  174. -sstub $(O)\dscm_s.c \
  175. -header $@ \
  176. -D RAW \
  177. ..\dscm.idl
  178. allidl: $(O)\lclor.h $(O)\odeth.h $(O)\rawodeth.h $(O)\orcb.h \
  179. $(O)\irot.h $(O)\getif.h $(O)\host.h $(O)\objsrv.h $(O)\rwobjsrv.h \
  180. $(O)\scm.h $(O)\apart.h $(O)\multqi.h $(O)\forward.h \
  181. $(O)\rawforward.h $(O)\resolve.h $(O)\custmact.h $(O)\serializ.h \
  182. $(O)\buffer.h $(O)\srgtprot.h
  183. clean:
  184. -erase $(O)\*.h >NUL 2>NUL