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.

174 lines
4.8 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. # only a header file generated
  37. #$(O)\iface.h: ..\iface.idl
  38. # $(MIDL) $(MIDL_FLAGS) -header $@ ..\iface.idl
  39. # Local Resolver Interface for NT
  40. $(O)\lclor.h: ..\lclor.idl $(SDK_INC_PATH)\obase.idl ..\lclor.acf
  41. $(MIDL) $(SSWITCH) $(MIDL_FLAGS) -out $(O) -header lclor.h ..\lclor.idl
  42. $(O)\orcb.h: ..\orcb.idl $(SDK_INC_PATH)\obase.idl ..\orcb.acf
  43. $(MIDL) $(SSWITCH) $(MIDL_FLAGS) -out $(O) -header orcb.h ..\orcb.idl
  44. # first MIDL invocation makes the object header
  45. # the object proxy and stub are made with mega.idl
  46. # second MIDL invocation makes the server and the '_' prefixed client
  47. $(O)\odeth.h : ..\odeth.idl ..\..\private\iface.idl ..\odeth.acf \
  48. $(SDK_INC_PATH)\obase.idl $(PUBLIC_IDL)\remunk.idl ..\comhndl.h
  49. $(MIDL) $(MIDL_FLAGS) -out $(O) -header odeth.h \
  50. -client none -server none ..\odeth.idl
  51. $(O)\rawodeth.h : ..\odeth.idl ..\..\private\iface.idl ..\odeth.acf \
  52. $(SDK_INC_PATH)\obase.idl $(PUBLIC_IDL)\remunk.idl ..\comhndl.h
  53. $(MIDL) $(MIDL_FLAGS) -out $(O) -header rawodeth.h \
  54. $(SSWITCH) -D RAW ..\odeth.idl
  55. # only a header file generated
  56. $(O)\irot.h: ..\irot.idl ..\irot.acf
  57. $(MIDL) $(MIDL_FLAGS) \
  58. -cstub $(O)\irot_c.c \
  59. -sstub $(O)\irot_s.c \
  60. -header $@ ..\irot.idl
  61. # Only generate a header. The object proxy and stub are made with
  62. # mega.idl
  63. $(O)\getif.h: ..\getif.idl
  64. $(MIDL) $(MIDL_FLAGS) \
  65. -client none -server none -header $@ \
  66. -iid $(O)\getif_i.c \
  67. ..\getif.idl
  68. # Only generate a header. The object proxy and stub are made with
  69. # mega.idl
  70. !ifdef SERVER_HANDLER
  71. $(O)\srvhdl.h: ..\srvhdl.idl
  72. $(MIDL) $(MIDL_FLAGS) \
  73. -client none -server none -header $@ \
  74. -iid $(O)\srvhdl_i.c \
  75. ..\srvhdl.idl
  76. !endif
  77. # Only generate a header. The object proxy and stub are made with
  78. # mega.idl
  79. $(O)\host.h: ..\host.idl
  80. $(MIDL) $(MIDL_FLAGS) \
  81. -client none -server none -header $@ \
  82. -iid $(O)\host_i.c \
  83. ..\host.idl
  84. # Only generate a header. The object proxy and stub are made with
  85. # mega.idl -- this should be before actprops.idl
  86. $(O)\custmact.h: ..\custmact.idl ..\custmact.acf
  87. $(MIDL) $(MES_MIDL_FLAGS) \
  88. -cstub $(O)\custmact_c.c \
  89. -sstub $(O)\custmact_s.c \
  90. -header $@ \
  91. ..\custmact.idl
  92. # Only generate a header. The object proxy and stub are made with
  93. # mega.idl
  94. $(O)\serializ.h: ..\serializ.idl
  95. $(MIDL) $(MIDL_FLAGS) \
  96. -client none -server none -header $@ \
  97. -iid $(O)\serializ_i.c \
  98. ..\serializ.idl
  99. $(O)\buffer.h: ..\buffer.idl
  100. $(MIDL) $(MIDL_FLAGS) \
  101. -client none -server none -header $@ \
  102. -iid $(O)\buffer_i.c \
  103. ..\buffer.idl
  104. # first MIDL invocation makes the object header
  105. # the object proxy and stub are made with mega.idl
  106. # second MIDL invocation makes the server and the '_' prefixed client
  107. $(O)\objsrv.h: ..\objsrv.idl ..\objsrv.acf
  108. $(MIDL) $(MIDL_FLAGS) \
  109. -client none -server none -out $(O) -header objsrv.h \
  110. ..\objsrv.idl
  111. $(O)\rwobjsrv.h: ..\objsrv.idl ..\objsrv.acf
  112. $(MIDL) $(MIDL_FLAGS) \
  113. -cstub $(O)\objsrv_c.c \
  114. -server none -header $@ \
  115. -D RAW \
  116. ..\objsrv.idl
  117. # COM+ surrogate protocol interface
  118. $(O)\srgtprot.h: ..\srgtprot.idl ..\srgtprot.acf
  119. $(MIDL) $(MIDL_FLAGS) \
  120. -cstub $(O)\srgtprot_c.c \
  121. -sstub $(O)\srgtprot_s.c \
  122. -header $@\
  123. ..\srgtprot.idl
  124. # first MIDL invocation makes the server and the '_' prefixed client
  125. # second MIDL invocation makes proxy for ole32.dll
  126. $(O)\scm.h: ..\scm.idl ..\scm.acf
  127. $(MIDL) $(MIDL_FLAGS) \
  128. $(CSWITCH) \
  129. -cstub $(O)\scm_z.c \
  130. -sstub $(O)\scm_s.c \
  131. -header $@\
  132. ..\scm.idl
  133. $(MIDL) $(MIDL_FLAGS) \
  134. -cstub $(O)\scm_c.c \
  135. -server none -header $@ \
  136. ..\scm.idl
  137. allidl: $(O)\lclor.h $(O)\odeth.h $(O)\rawodeth.h $(O)\orcb.h \
  138. $(O)\irot.h $(O)\getif.h $(O)\host.h $(O)\objsrv.h $(O)\rwobjsrv.h \
  139. $(O)\scm.h $(O)\custmact.h $(O)\serializ.h \
  140. $(O)\buffer.h $(O)\srgtprot.h
  141. clean:
  142. -erase $(O)\*.h >NUL 2>NUL