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.

57 lines
1.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. #
  7. !if "$(OS)" == "Windows_NT"
  8. !INCLUDE $(NTMAKEENV)\makefile.plt
  9. INCS = -I$(SDK_INC_PATH) -I$(CRT_INC_PATH)
  10. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) $(NET_C_DEFINES) $(MIDL_OPTIMIZATION)
  11. !else
  12. FLAGS = -D_X86_ -Di386 -D_WCHAR_T_DEFINED
  13. CPP = -cpp_cmd "cl" -cpp_opt "-E $(FLAGS) $(INCS) $(C_DEFINES)"
  14. HEADER_TARGETS =
  15. !endif
  16. IDL_NAME = espidl
  17. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c
  18. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c
  19. EXTRN_DEPENDS =
  20. #
  21. # Define Products and Dependencies
  22. #
  23. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  24. !IF "$(BUILDMSG)" != ""
  25. @ech ; $(BUILDMSG) ;
  26. !ENDIF
  27. clean: delete_source all
  28. delete_source:
  29. -erase $(CLIENT_TARGETS) $(SERVER_TARGETS)
  30. #
  31. # MIDL COMPILE
  32. #
  33. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  34. midl -server none -oldnames -error allocation -error ref -out .\$(O) -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS)
  35. $(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  36. midl -client none -oldnames -error stub_data -error allocation -error ref -out .\$(O) -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS)