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.

61 lines
1.7 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. !INCLUDE $(NTMAKEENV)\makefile.plt
  8. O = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
  9. IDL_NAME = jetrpc
  10. #IMPORT = wtypes
  11. UNICODE=1
  12. SDKBIN = $(BASEDIR)\public\sdk\bin
  13. SDKINC = $(BASEDIR)\public\sdk\inc
  14. OAKINC = $(BASEDIR)\public\oak\inc
  15. SDKCRTINC = $(BASEDIR)\public\sdk\inc\crt
  16. INCS = -I. -I$(SDKINC) -I$(SDKCRTINC) -I$(OAKINC) -I$(TERMSRV_INC_PATH)
  17. CPP = -cpp_cmd "$(MIDL_CPP)" -DNO_STRICT $(MIDL_FLAGS)
  18. HEADER_TARGETS = inc\$(O)\$(IDL_NAME).h
  19. CLIENT_TARGETS = inc\$(O)\$(IDL_NAME)_c.c
  20. SERVER_TARGETS = inc\$(O)\$(IDL_NAME)_s.c
  21. EXTRN_DEPENDS = $(SDKINC)\windef.h \
  22. # $(IMPORT).h
  23. #
  24. # Define Products and Dependencies
  25. #
  26. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  27. !IF "$(BUILDMSG)" != ""
  28. @ech ; $(BUILDMSG) ;
  29. !ENDIF
  30. clean: delete_source all
  31. delete_source:
  32. erase $(CLIENT_TARGETS) $(SERVER_TARGETS) $(HEADER_TARGETS)
  33. #
  34. # MIDL COMPILE
  35. #
  36. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  37. -md inc\$(O)
  38. midl -Oicf -robust -server none -oldnames -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS) -header $(HEADER_TARGETS)
  39. IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c $(CLIENT_TARGETS) & \
  40. del $(IDL_NAME)_c.c
  41. $(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  42. -md inc\$(O)
  43. midl -Oicf -robust -client none -oldnames -error stub_data -error bounds_check -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS) -header $(HEADER_TARGETS)
  44. IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c $(SERVER_TARGETS) & \
  45. del $(IDL_NAME)_s.c