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.

55 lines
1.4 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. CLIENT_ACF = spdcli.acf
  9. SERVER_ACF = spdsrv.acf
  10. IDL_NAME = spd
  11. IMPORT = import
  12. UNICODE=1
  13. INCS = -I. -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I$(OAK_INC_PATH) -I$(PROJECT_ROOT)\inc -I$(NET_INC_PATH)
  14. CPP = -cpp_cmd "$(MIDL_CPP)" -DNO_STRICT $(MIDL_FLAGS)
  15. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c \
  16. $(O)\$(IDL_NAME)_c.h
  17. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c \
  18. $(O)\$(IDL_NAME)_s.h
  19. #
  20. # Define Products and Dependencies
  21. #
  22. all: $(CLIENT_TARGETS) $(SERVER_TARGETS)
  23. !IF "$(BUILDMSG)" != ""
  24. @ech ; $(BUILDMSG) ;
  25. !ENDIF
  26. clean: delete_source all
  27. delete_source:
  28. erase $(CLIENT_TARGETS) $(SERVER_TARGETS)
  29. #
  30. # MIDL COMPILE
  31. #
  32. MIDL_OPTIMIZATION_NT5=-Oicf -no_format_opt -robust -error all -out .\$(O)
  33. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(CLIENT_ACF)
  34. midl $(MIDL_OPTIMIZATION_NT5) -acf $(CLIENT_ACF) -server none -oldnames -ms_ext -c_ext $(CPP) $(INCS) $(IDL_NAME).idl -header $(IDL_NAME)_c.h
  35. $(SERVER_TARGETS) : $(IDL_NAME).idl $(SERVER_ACF)
  36. midl $(MIDL_OPTIMIZATION_NT5) -acf $(SERVER_ACF) -client none -oldnames -ms_ext -c_ext $(CPP) $(INCS) $(IDL_NAME).idl -header $(IDL_NAME)_s.h