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.

47 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. !INCLUDE $(NTMAKEENV)\makefile.plt
  7. CLIENT_ACF = dssetup.acf
  8. SERVER_ACF = dssetups.acf
  9. CLIENT_INC_FILE = dssetup_c.h
  10. SERVER_INC_FILE = dssetrpc.h
  11. INCS = -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I$(DS_INC_PATH) -I..\inc
  12. # take MIDL_OPTIMIZATION_NT5 from tools\makefile.plt.
  13. MIDL_FLAGS= $(MIDL_FLAGS) -out .\$(O)
  14. CLIENT_FLAGS = -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(CLIENT_ACF) -header $(CLIENT_INC_FILE) -server none
  15. SERVER_FLAGS = -oldnames -c_ext -ms_ext $(MIDL_FLAGS) -acf $(SERVER_ACF) -header $(SERVER_INC_FILE) -client none
  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 = $(O)\dssetup_c.c \
  23. $(O)\$(CLIENT_INC_FILE)
  24. SERVER_TARGETS = $(O)\dssetup_s.c \
  25. $(O)\$(SERVER_INC_FILE)
  26. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  27. #
  28. # MIDL COMPILE
  29. #
  30. $(CLIENT_TARGETS) : dssetup.idl $(CLIENT_ACF)
  31. midl $(CPP) $(MIDL_OPTIMIZATION_NT5) $(CLIENT_FLAGS) $(INCS) dssetup.idl
  32. $(SERVER_TARGETS) : dssetup.idl $(SERVER_ACF)
  33. midl $(CPP) $(MIDL_OPTIMIZATION_NT5) $(SERVER_FLAGS) $(INCS) dssetup.idl