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.

134 lines
3.7 KiB

  1. !INCLUDE $(NTMAKEENV)\makefile.plt
  2. NBASE_HDR =$(O)\nbase.h
  3. MGMT_HDR =$(O)\mgmt.h
  4. MGMT_CSTUB=$(O)\mgmt_c.c
  5. MGMT_SSTUB=$(O)\mgmt_s.c
  6. CONV_HDR =$(O)\conv.h
  7. CONV_CSTUB=$(O)\conv_c.c
  8. CONV_SSTUB=$(O)\conv_s.c
  9. CONVC_HDR =$(O)\convc.h
  10. CONVC_CSTUB=$(O)\convc_c.c
  11. CONVC_SSTUB=$(O)\convc_s.c
  12. MQMGR_HDR =$(O)\mqmgr.h
  13. MQMGR_CSTUB=$(O)\mqmgr_c.c
  14. MQMGR_SSTUB=..\epmap\$(O)\mqmgr_s.c
  15. EPMP_HDR =$(O)\epmp.h
  16. EPMP_CSTUB=$(O)\epmp_c.c
  17. EPMP_SSTUB=..\epmap\$(O)\epmp_s.c
  18. DBGIDL_HDR =$(O)\DbgIdl.h
  19. DBGIDL_CSTUB=$(O)\DbgIdl_c.c
  20. DBGIDL_SSTUB=..\epmap\$(O)\DbgIdl_s.c
  21. EEINFO_HDR =$(O)\EEInfo.h
  22. EEINFO_CSTUB=$(O)\EEInfo_c.c
  23. CPP_CMD = -cpp_cmd "$(MIDL_CPP)"
  24. CPP_OPT = $(MIDL_FLAGS)
  25. COMMON_FLAGS= $(MIDL_OPTIMIZATION_NT5) -no_stamp -c_ext -ms_ext -I..\mtrt;$(BASEDIR)\public\sdk\inc -oldnames -DNTENV $(CPP_CMD) $(CPP_OPT)
  26. EPMP_FLAGS= $(COMMON_FLAGS:-protocol all=)
  27. clean: delsrc allidl
  28. delsrc:
  29. -del $(MGMT_HDR) $(MGMT_CSTUB) $(MGMT_SSTUB) \
  30. $(CONV_HDR) $(CONV_CSTUB) $(CONV_SSTUB) \
  31. $(EPMP_HDR) $(EPMP_CSTUB) $(EPMP_SSTUB) \
  32. $(MQMGR_HDR) $(MQMGR_CSTUB) $(MQMGR_SSTUB) \
  33. $(EEINFO_HDR) $(EEINFO_CSTUB) \
  34. $(DBGIDL_HDR) $(DBGIDL_CSTUB) $(DBGIDL_SSTUB) >nul 2>&1
  35. allidl: dirs nbase mgmt epmp conv mqmgr convc dbgidl eeinfo
  36. dirs: ..\epmap\$(O) $(O)
  37. $(O):
  38. md $@
  39. ..\epmap\$(O):
  40. md $@
  41. #
  42. # Common DCE types, imported into all the other .idls
  43. #
  44. nbase: $(NBASE_HDR)
  45. $(NBASE_HDR): nbase.idl
  46. midl $(COMMON_FLAGS) -server none -client none -header $(NBASE_HDR)\
  47. nbase.idl
  48. #
  49. # Remote RPC Management APIs
  50. #
  51. mgmt: $(MGMT_HDR) $(MGMT_CSTUB) $(MGMT_SSTUB)
  52. $(MGMT_HDR) $(MGMT_CSTUB) $(MGMT_SSTUB) : mgmt.idl mgmt.acf nbase.idl
  53. midl $(COMMON_FLAGS) -prefix client _ \
  54. -cstub $(MGMT_CSTUB) -sstub $(MGMT_SSTUB) -header $(MGMT_HDR) mgmt.idl
  55. #
  56. # Conversation interface - datagram callback to verify client id.
  57. #
  58. conv: $(CONV_HDR) $(CONV_CSTUB) $(CONV_SSTUB)
  59. $(CONV_HDR) $(CONV_CSTUB) $(CONV_SSTUB) : conv.idl nbase.idl
  60. midl $(COMMON_FLAGS) -prefix client _ \
  61. -cstub $(CONV_CSTUB) -sstub $(CONV_SSTUB) -header $(CONV_HDR) conv.idl
  62. #
  63. # Client Conversation interface - datagram context handle keep-alives.
  64. #
  65. convc: $(CONVC_HDR) $(CONVC_CSTUB) $(CONVC_SSTUB)
  66. $(CONVC_HDR) $(CONVC_CSTUB) $(CONVC_SSTUB) : convc.idl nbase.idl
  67. midl $(COMMON_FLAGS) -prefix client _ \
  68. -cstub $(CONVC_CSTUB) -sstub $(CONVC_SSTUB) -header $(CONVC_HDR) convc.idl
  69. #
  70. # Endpoint mapper interface
  71. #
  72. epmp: $(EPMP_HDR) $(EPMP_CSTUB) $(EPMP_SSTUB)
  73. $(EPMP_HDR) $(EPMP_CSTUB) : epmp.idl epmp.acf nbase.idl
  74. midl $(EPMP_FLAGS) -header $(EPMP_HDR) -cstub $(EPMP_CSTUB) -server none -D_CLIENT_PASS_ epmp.idl
  75. $(EPMP_SSTUB) : $(EPMP_HDR)
  76. midl $(EPMP_FLAGS) -header $(EPMP_HDR) -sstub $(EPMP_SSTUB) -client none -D_SERVER_PASS_ epmp.idl
  77. #
  78. # MQ Management Interface (for temporary queues):
  79. #
  80. mqmgr: $(MQMGR_HDR) $(MQMGR_CSTUB) $(MQMGR_SSTUB)
  81. $(MQMGR_HDR) $(MQMGR_CSTUB) $(MQMGR_SSTUB) : mqmgr.idl mqmgr.acf nbase.idl
  82. midl $(COMMON_FLAGS) \
  83. -cstub $(MQMGR_CSTUB) -sstub $(MQMGR_SSTUB) -header $(MQMGR_HDR) mqmgr.idl
  84. #
  85. # DbgIdl interface (for enhanced debugging):
  86. #
  87. dbgidl: $(DBGIDL_HDR) $(DBGIDL_CSTUB) $(DBGIDL_SSTUB)
  88. $(DBGIDL_HDR) $(DBGIDL_CSTUB) $(DBGIDL_SSTUB) : DbgIdl.idl nbase.idl
  89. midl $(COMMON_FLAGS) \
  90. -cstub $(DBGIDL_CSTUB) -sstub $(DBGIDL_SSTUB) -header $(DBGIDL_HDR) DbgIdl.idl
  91. #
  92. # EEInfo interface (for extended error information):
  93. #
  94. eeinfo: $(EEINFO_HDR) $(EEINFO_CSTUB)
  95. $(EEINFO_HDR) $(EEINFO_CSTUB) : EEInfo.idl nbase.idl
  96. midl $(COMMON_FLAGS) \
  97. -cstub $(EEINFO_CSTUB) -server none -header $(EEINFO_HDR) EEInfo.idl