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.

57 lines
1.7 KiB

  1. #
  2. # This is the MIDL compile phase of the build process.
  3. #
  4. # The following symbols should be defined in your environment:
  5. # NOTE: This file is designed to provide separate generation
  6. # of client and server stubs. Right now, it uses an
  7. # .acf for only the server stub generation. However,
  8. # lines to cause a client .acf file to be used are present
  9. # but commented out.
  10. # The following is where you put the name of your .idl file without
  11. # the .idl extension:
  12. !INCLUDE $(NTMAKEENV)\makefile.plt
  13. IDL_NAME = tsrpc
  14. CLIENT_DIR = ..\cpl
  15. SERVER_DIR = .
  16. INC_FILE = $(IDL_NAME).h
  17. SDKINC = $(SDK_INC_PATH)
  18. SDKCRTINC = $(SDK_INC_PATH)\crt
  19. INCS = -I$(SDKINC) -I$(SDKCRTINC)
  20. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES)
  21. FLAGS = -no_format_opt -Oicf -header $(INC_FILE)
  22. CLIENT_TARGETS = $(CLIENT_DIR)\$(IDL_NAME)_c.c $(CLIENT_DIR)\$(INC_FILE)
  23. SERVER_TARGETS = $(SERVER_DIR)\$(IDL_NAME)_s.c $(SERVER_DIR)\$(INC_FILE)
  24. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  25. # Define Products and Dependencies
  26. all: $(TARGETS) $(EXTRN_DEPENDS)
  27. !IF "$(BUILDMSG)" != ""
  28. @ech ; $(BUILDMSG) ;
  29. !ENDIF
  30. clean: delete_source all
  31. delete_source:
  32. -erase $(TARGETS)
  33. #
  34. # MIDL COMPILE
  35. #
  36. $(CLIENT_TARGETS) : $(IDL_NAME).idl
  37. IF EXIST $(CLIENT_DIR)\$(IDL_NAME).h del $(CLIENT_DIR)\$(IDL_NAME).h
  38. IF EXIST $(CLIENT_DIR)\$(IDL_NAME)_c.c del $(CLIENT_DIR)\$(IDL_NAME)_c.c
  39. midl /server none /out $(CLIENT_DIR) $(CPP) $(FLAGS) $(IDL_NAME).idl $(INCS)
  40. $(SERVER_TARGETS) : $(IDL_NAME).idl
  41. IF EXIST $(SERVER_DIR)\$(IDL_NAME).h del $(SERVER_DIR)\$(IDL_NAME).h
  42. IF EXIST $(SERVER_DIR)\$(IDL_NAME)_s.c del $(SERVER_DIR)\$(IDL_NAME)_s.c
  43. midl /client none /out $(SERVER_DIR) $(CPP) $(FLAGS) $(IDL_NAME).idl $(INCS)