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.

128 lines
4.2 KiB

  1. !IF 0
  2. Copyright (C) Microsoft Corporation, 1995 - 1998
  3. Module Name:
  4. makefile.inc
  5. !ENDIF
  6. #
  7. # This is the MIDL compile phase of the build process.
  8. #
  9. MIDL_PROTOCOL=all
  10. !INCLUDE $(NTMAKEENV)\makefile.plt
  11. #####################################################################
  12. #
  13. # For the UI RPC functions
  14. #
  15. IDL_NAME = llsrpc
  16. CLIENT_ACF = llscli.acf
  17. SERVER_ACF = llssrv.acf
  18. CLIENT_INC_FILE = $(IDL_NAME)_c.h
  19. SERVER_INC_FILE = $(IDL_NAME)_s.h
  20. #####################################################################
  21. #
  22. # For the NtLSApi functions
  23. #
  24. LSAPI_IDL_NAME = lsapi
  25. LSAPI_CLIENT_ACF = lsapicli.acf
  26. LSAPI_SERVER_ACF = lsapisrv.acf
  27. LSAPI_CLIENT_INC_FILE = $(LSAPI_IDL_NAME)_c.h
  28. LSAPI_SERVER_INC_FILE = $(LSAPI_IDL_NAME)_s.h
  29. #####################################################################
  30. #
  31. # For the Debugging RPC functions
  32. #
  33. DEBUG_IDL_NAME = llsdbg
  34. DEBUG_CLIENT_ACF = lsdbgcli.acf
  35. DEBUG_SERVER_ACF = lsdbgsrv.acf
  36. DEBUG_CLIENT_INC_FILE = $(DEBUG_IDL_NAME)_c.h
  37. DEBUG_SERVER_INC_FILE = $(DEBUG_IDL_NAME)_s.h
  38. #####################################################################
  39. #
  40. # Common INC files
  41. #
  42. SDKINC = $(SDK_INC_PATH)
  43. SDKCRTINC = $(CRT_INC_PATH)
  44. LLSINC = ..\inc
  45. INCS = -I$(SDKINC) -I$(SDKCRTINC) -I$(LLSINC)
  46. EXTRN_DEPENDS =
  47. MIDL_FLAGS= $(MIDL_FLAGS) -out .\$(O)
  48. CLIENT_FLAGS = $(MIDL_OPTIMIZATION) -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(CLIENT_ACF) -header $(CLIENT_INC_FILE) -server none
  49. SERVER_FLAGS = $(MIDL_OPTIMIZATION) -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(SERVER_ACF) -header $(SERVER_INC_FILE) -client none
  50. LSAPI_CLIENT_FLAGS = $(MIDL_OPTIMIZATION) -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(LSAPI_CLIENT_ACF) -header $(LSAPI_CLIENT_INC_FILE) -server none
  51. LSAPI_SERVER_FLAGS = $(MIDL_OPTIMIZATION) -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(LSAPI_SERVER_ACF) -header $(LSAPI_SERVER_INC_FILE) -client none
  52. DEBUG_CLIENT_FLAGS = $(MIDL_OPTIMIZATION) -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(DEBUG_CLIENT_ACF) -header $(DEBUG_CLIENT_INC_FILE) -server none
  53. DEBUG_SERVER_FLAGS = $(MIDL_OPTIMIZATION) -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(DEBUG_SERVER_ACF) -header $(DEBUG_SERVER_INC_FILE) -client none
  54. CPP = -cpp_cmd "$(MIDL_CPP)"
  55. #
  56. # Separate client and server targets. Note that the .h file produced
  57. # when MIDL is run with the client .acf file attached differs from the
  58. # .h file produced when MIDL is run with the server .acf file attached.
  59. #
  60. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c \
  61. $(O)\$(CLIENT_INC_FILE)
  62. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c \
  63. $(O)\$(SERVER_INC_FILE)
  64. LSAPI_CLIENT_TARGETS = \
  65. $(O)\$(LSAPI_IDL_NAME)_c.c \
  66. $(O)\$(LSAPI_CLIENT_INC_FILE)
  67. LSAPI_SERVER_TARGETS = \
  68. $(O)\$(LSAPI_IDL_NAME)_s.c \
  69. $(O)\$(LSAPI_SERVER_INC_FILE)
  70. DEBUG_SERVER_TARGETS = \
  71. $(O)\$(DEBUG_IDL_NAME)_s.c \
  72. $(O)\$(DEBUG_SERVER_INC_FILE)
  73. TARGETS = $(CLIENT_TARGETS) \
  74. $(SERVER_TARGETS) \
  75. $(LSAPI_CLIENT_TARGETS) \
  76. $(LSAPI_SERVER_TARGETS) \
  77. $(DEBUG_SERVER_TARGETS)
  78. CLIENT_EXTRN_DEPENDS = $(CLIENT_ACF) $(LSAPI_CLIENT_ACF) $(DEBUG_CLIENT_ACF)
  79. SERVER_EXTRN_DEPENDS = $(SERVER_ACF) $(LSAPI_SERVER_ACF) $(DEBUG_SERVER_ACF)
  80. EXTRN_DEPENDS = $(CLIENT_EXTRN_DEPENDS)
  81. #
  82. # MIDL COMPILE
  83. #
  84. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(CLIENT_EXTRN_DEPENDS)
  85. midl -no_format_opt $(CPP) $(CLIENT_FLAGS) $(INCS) $(IDL_NAME).idl
  86. $(SERVER_TARGETS) : $(IDL_NAME).idl $(SERVER_EXTRN_DEPENDS)
  87. midl -no_format_opt $(CPP) $(SERVER_FLAGS) $(INCS) $(IDL_NAME).idl
  88. $(LSAPI_CLIENT_TARGETS) : $(LSAPI_IDL_NAME).idl $(CLIENT_EXTRN_DEPENDS)
  89. midl -no_format_opt $(CPP) $(LSAPI_CLIENT_FLAGS) $(INCS) $(LSAPI_IDL_NAME).idl
  90. $(LSAPI_SERVER_TARGETS) : $(LSAPI_IDL_NAME).idl $(SERVER_EXTRN_DEPENDS)
  91. midl -no_format_opt $(CPP) $(LSAPI_SERVER_FLAGS) $(INCS) $(LSAPI_IDL_NAME).idl
  92. $(DEBUG_SERVER_TARGETS) : $(DEBUG_IDL_NAME).idl $(SERVER_EXTRN_DEPENDS)
  93. midl -no_format_opt $(CPP) $(DEBUG_SERVER_FLAGS) $(INCS) $(DEBUG_IDL_NAME).idl