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.

85 lines
2.1 KiB

  1. #
  2. # makefil0
  3. # Makefile for generating RPC stubs of W3 Service.
  4. #
  5. # Specify the following in the file for use
  6. #
  7. # CLIENT_DIR
  8. # SERVER_DIR
  9. # IDL_FILE_NAME ( without the .idl suffix)
  10. # IDL_FLAGS if any thing specific required
  11. #
  12. !INCLUDE $(NTMAKEENV)\makefile.plt
  13. #
  14. # Name it w3svci to prevent conflicts with net\inc\w3svc.h
  15. #
  16. IDL_FILE_NAME = w3svci
  17. IDL_FLAGS = -ms_ext -c_ext -oldnames $(MIDL_OPTIMIZATION_NT5)
  18. IMPORTS = ..\..\..\inc\infoimp
  19. CLIENT_H = $(O)\$(IDL_FILE_NAME)_c.h
  20. SERVER_H = $(O)\$(IDL_FILE_NAME)_s.h
  21. CLIENT_ACF = $(IDL_FILE_NAME).acf
  22. SERVER_ACF = $(IDL_FILE_NAME).acf
  23. !IFNDEF DISABLE_NET_UNICODE
  24. UNICODE = 1
  25. NET_C_DEFINES = -DUNICODE
  26. !ENDIF
  27. SDKINC = $(SDK_INC_PATH)
  28. INETINC = -I..\..\..\inc
  29. SDKCRTINC = $(CRT_INC_PATH)
  30. INCS = -I. -I$(SDKINC) -I$(SDKCRTINC) $(INETINC)
  31. CLIENT_STUB = $(O)\$(IDL_FILE_NAME)_c.c
  32. SERVER_STUB = $(O)\$(IDL_FILE_NAME)_s.c
  33. CLIENT_TARGETS = $(CLIENT_STUB) \
  34. $(CLIENT_H)
  35. SERVER_TARGETS = $(SERVER_STUB) \
  36. $(SERVER_H)
  37. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  38. EXTRN_DEPENDS = $(IDL_FILE_NAME).acf $(IMPORTS).h
  39. CLIENT_FLAGS = -server none -acf $(CLIENT_ACF) -header $(CLIENT_H)
  40. SERVER_FLAGS = -client none -acf $(SERVER_ACF) -header $(SERVER_H)
  41. MSC_WARNING_LEVEL= /W3 /WX
  42. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) \
  43. $(C_DEFINES) $(NET_C_DEFINES)
  44. #
  45. # Define output and dependencies
  46. #
  47. all: $(TARGETS) $(EXTRN_DEPENDS)
  48. !IF "$(BUILDMSG)" != ""
  49. @ech ; $(BUILDMSG) ;
  50. !ENDIF
  51. clean: delsrc all
  52. delsrc:
  53. -erase $(TARGETS)
  54. #
  55. # MIDL Compile stuff
  56. #
  57. $(CLIENT_TARGETS): .\$(IDL_FILE_NAME).idl $(EXTRN_DEPENDS) .\$(IMPORTS).idl \
  58. .\$(IMPORTS).h .\$(CLIENT_ACF)
  59. midl $(IDL_FLAGS) $(CPP) $(CLIENT_FLAGS) .\$(IDL_FILE_NAME).idl -cstub $(CLIENT_STUB) $(INCS)
  60. $(SERVER_TARGETS): .\$(IDL_FILE_NAME).idl $(EXTRN_DEPENDS) .\$(IMPORTS).idl \
  61. .\$(IMPORTS).h .\$(SERVER_ACF)
  62. midl $(IDL_FLAGS) $(CPP) $(SERVER_FLAGS) .\$(IDL_FILE_NAME).idl -sstub $(SERVER_STUB) $(INCS)