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.2 KiB

  1. #
  2. # makefile.idl
  3. # Template Defined by MuraliK 10-Nov-1994
  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. IDL_FILE_NAME =gd
  14. IDL_FLAGS = -ms_ext -c_ext -oldnames
  15. IMPORTS = ..\..\inc\infoimp
  16. CLIENT_DIR = client
  17. SERVER_DIR = server
  18. CLIENT_H = $(CLIENT_DIR)\$(IDL_FILE_NAME)_cli.h
  19. SERVER_H = $(SERVER_DIR)\$(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 = $(BASEDIR)\public\sdk\inc
  27. INETINC = -I..\..\inc
  28. SDKCRTINC = $(BASEDIR)\public\sdk\inc\crt
  29. PRIVINC = $(BASEDIR)\private\inc
  30. INCS = -I. -I$(SDKINC) -I$(SDKCRTINC) -I$(PRIVINC) $(INETINC)
  31. CLIENT_STUB = $(CLIENT_DIR)\$(IDL_FILE_NAME)_cli.c
  32. SERVER_STUB = $(SERVER_DIR)\$(IDL_FILE_NAME)_srv.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 = $(SDKINC)\windef.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 -Oi -error allocation -error ref $(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 -Oi -error allocation -error ref $(IDL_FLAGS) $(CPP) $(SERVER_FLAGS) .\$(IDL_FILE_NAME).idl -sstub $(SERVER_STUB) $(INCS)