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.

73 lines
2.3 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 = kerbtest
  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. client\$(CLIENT_INC_FILE) \
  24. server\$(IDL_NAME)_c.c
  25. SERVER_TARGETS = server\$(IDL_NAME)_s.c \
  26. server\$(SERVER_INC_FILE)
  27. TARGETS = $(CLIENT_TARGETS) \
  28. $(SERVER_TARGETS)
  29. EXTRN_DEPENDS = $(CLIENT_EXTRN_DEPENDS) makefil0
  30. #
  31. # Define Products and Dependencies
  32. #
  33. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  34. !IF "$(BUILDMSG)" != ""
  35. @ech ; $(BUILDMSG) ;
  36. !ENDIF
  37. clean: delete_source all
  38. delete_source:
  39. -erase $(TARGETS)
  40. #
  41. # MIDL COMPILE
  42. #
  43. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(CLIENT_EXTRN_DEPENDS)
  44. IF EXIST $(IDL_NAME).h del i$(IDL_NAME).h
  45. midl $(CPP) $(CLIENT_FLAGS) $(IDL_NAME).idl $(INCS)
  46. IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client & copy $(IDL_NAME)_c.c .\server & del $(IDL_NAME)_c.c
  47. IF EXIST $(IDL_NAME)_s.c del $(IDL_NAME)_s.c
  48. IF EXIST $(CLIENT_INC_FILE) copy $(CLIENT_INC_FILE) .\client & del $(CLIENT_INC_FILE)
  49. $(SERVER_TARGETS) : $(IDL_NAME).idl
  50. IF EXIST inc\$(IDL_NAME).h del inc\$(IDL_NAME).h
  51. midl $(CPP) $(SERVER_FLAGS) $(IDL_NAME).idl $(INCS)
  52. IF EXIST $(IDL_NAME)_c.c del $(IDL_NAME)_c.c
  53. IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c .\server & del $(IDL_NAME)_s.c
  54. IF EXIST $(SERVER_INC_FILE) copy $(SERVER_INC_FILE) .\server & del $(SERVER_INC_FILE)