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.

75 lines
2.5 KiB

  1. #
  2. # This is the MIDL compile phase of the build process.
  3. #
  4. # The following is where you put the name of your .idl file without
  5. # the .idl extension:
  6. !INCLUDE $(NTMAKEENV)\makefile.plt
  7. IDL_NAME = sspitest
  8. CLIENT_ACF =
  9. SERVER_ACF =
  10. CLIENT_INC_FILE = $(IDL_NAME).h
  11. SERVER_INC_FILE = $(IDL_NAME).h
  12. INCS = -I$(SDK_INC_PATH) -I$(CRT_INC_PATH)
  13. EXTRN_DEPENDS = $(SDK_INC_PATH)\ntlsa.h
  14. CLIENT_FLAGS = -Oi -oldnames -error allocation -error ref -c_ext -ms_ext $(MIDL_FLAGS) $(CLIENT_ACF) -header $(CLIENT_INC_FILE)
  15. SERVER_FLAGS = -oldnames -error allocation -error ref -c_ext -ms_ext $(MIDL_FLAGS) $(SERVER_ACF) -header $(SERVER_INC_FILE) -prefix server srv_
  16. CPP = -cpp_cmd "$(MIDL_CPP)"
  17. #
  18. # Separate client and server targets. Note that the .h file produced
  19. # when MIDL is run with the client .acf file attached differs from the
  20. # .h file produced when MIDL is run with the server .acf file attached.
  21. #
  22. CLIENT_TARGETS = client\$(IDL_NAME)_c.c \
  23. client2\$(IDL_NAME)_c.c \
  24. client2\$(CLIENT_INC_FILE) \
  25. client\$(CLIENT_INC_FILE) \
  26. server\$(IDL_NAME)_c.c
  27. SERVER_TARGETS = server\$(IDL_NAME)_s.c \
  28. server\$(SERVER_INC_FILE)
  29. TARGETS = $(CLIENT_TARGETS) \
  30. $(SERVER_TARGETS)
  31. EXTRN_DEPENDS = $(CLIENT_EXTRN_DEPENDS) makefil0
  32. #
  33. # Define Products and Dependencies
  34. #
  35. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  36. !IF "$(BUILDMSG)" != ""
  37. @ech ; $(BUILDMSG) ;
  38. !ENDIF
  39. clean: delete_source all
  40. delete_source:
  41. -erase $(TARGETS)
  42. #
  43. # MIDL COMPILE
  44. #
  45. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(CLIENT_EXTRN_DEPENDS)
  46. IF EXIST $(IDL_NAME).h del i$(IDL_NAME).h
  47. midl $(CPP) $(CLIENT_FLAGS) $(IDL_NAME).idl $(INCS)
  48. IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client & IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client2 & copy $(IDL_NAME)_c.c .\server & del $(IDL_NAME)_c.c
  49. IF EXIST $(IDL_NAME)_s.c del $(IDL_NAME)_s.c
  50. IF EXIST $(CLIENT_INC_FILE) copy $(CLIENT_INC_FILE) .\client & IF EXIST $(CLIENT_INC_FILE) copy $(CLIENT_INC_FILE) .\client2 & del $(CLIENT_INC_FILE)
  51. $(SERVER_TARGETS) : $(IDL_NAME).idl
  52. IF EXIST inc\$(IDL_NAME).h del inc\$(IDL_NAME).h
  53. midl $(CPP) $(SERVER_FLAGS) $(IDL_NAME).idl $(INCS)
  54. IF EXIST $(IDL_NAME)_c.c del $(IDL_NAME)_c.c
  55. IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c .\server & del $(IDL_NAME)_s.c
  56. IF EXIST $(SERVER_INC_FILE) copy $(SERVER_INC_FILE) .\server & del $(SERVER_INC_FILE)