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.

77 lines
2.1 KiB

  1. #
  2. # makefile.idl
  3. # Created: ???
  4. #
  5. # Revision
  6. # MuraliK 2-March-1995 [ Eliminated absolute directory dependencies]
  7. #
  8. # Specify the following in the file for use
  9. #
  10. # IDL_FILE_NAME ( without the .idl suffix)
  11. # IDL_FLAGS if any thing specific required
  12. #
  13. !INCLUDE $(NTMAKEENV)\makefile.plt
  14. IDL_FILE_BASENAME = info
  15. IDL_FILE_NAME = info
  16. IDL_FLAGS = -ms_ext -c_ext -oldnames $(MIDL_OPTIMIZATION_NT5)
  17. IMPORTS = imports
  18. CLIENT_H = $(O)\$(IDL_FILE_NAME)_cli.h
  19. SERVER_H = $(O)\$(IDL_FILE_NAME)_srv.h
  20. CLIENT_ACF = $(IDL_FILE_NAME)cli.acf
  21. SERVER_ACF = $(IDL_FILE_NAME)srv.acf
  22. !IFNDEF DISABLE_NET_UNICODE
  23. UNICODE = 1
  24. NET_C_DEFINES = -DUNICODE
  25. !ENDIF
  26. SDKINC = $(SDK_INC_PATH)
  27. SDKCRTINC = $(CRT_INC_PATH)
  28. INCS = -I. -I$(SDKINC) -I$(SDKCRTINC) -I$(IISBASEDIR)\inc
  29. CLIENT_STUB = $(O)\$(IDL_FILE_NAME)_cli.c
  30. SERVER_STUB = $(O)\$(IDL_FILE_NAME)_srv.c
  31. CLIENT_TARGETS = $(CLIENT_STUB) \
  32. $(CLIENT_H)
  33. SERVER_TARGETS = $(SERVER_STUB) \
  34. $(SERVER_H)
  35. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  36. EXTRN_DEPENDS = $(IISBASEDIR)\inc\inetinfo.h
  37. CLIENT_FLAGS = -server none -acf $(CLIENT_ACF) -header $(CLIENT_H)
  38. SERVER_FLAGS = -client none -acf $(SERVER_ACF) -header $(SERVER_H)
  39. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) \
  40. $(C_DEFINES) $(NET_C_DEFINES)
  41. #
  42. # Define output and dependencies
  43. #
  44. all: $(TARGETS) $(EXTRN_DEPENDS)
  45. !IF "$(BUILDMSG)" != ""
  46. @ech ; $(BUILDMSG) ;
  47. !ENDIF
  48. #
  49. # MIDL Compile stuff
  50. #
  51. $(CLIENT_TARGETS): .\$(IDL_FILE_BASENAME).idl $(EXTRN_DEPENDS) .\$(IMPORTS).idl \
  52. .\$(IMPORTS).h .\$(CLIENT_ACF)
  53. midl $(IDL_FLAGS) $(CPP) $(CLIENT_FLAGS) .\$(IDL_FILE_BASENAME).idl -cstub $(CLIENT_STUB) $(INCS)
  54. $(SERVER_TARGETS): .\$(IDL_FILE_BASENAME).idl $(EXTRN_DEPENDS) .\$(IMPORTS).idl \
  55. .\$(IMPORTS).h .\$(SERVER_ACF)
  56. midl $(IDL_FLAGS) $(CPP) $(SERVER_FLAGS) .\$(IDL_FILE_BASENAME).idl -sstub $(SERVER_STUB) $(INCS)