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.

45 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. IDL_NAME = timeif
  9. IMPORT = imports
  10. CLIENT_H = timeif_c.h
  11. SERVER_H = timeif_s.h
  12. CLIENT_ACF = timeif.acf
  13. SERVER_ACF = timeif.acf
  14. !IFNDEF DISABLE_NET_UNICODE
  15. UNICODE=1
  16. NET_C_DEFINES=-DUNICODE
  17. !ENDIF
  18. INCS = -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I$(DS_INC_PATH)
  19. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c $(O)\$(CLIENT_H)
  20. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c $(O)\$(SERVER_H)
  21. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  22. CLIENT_FLAGS = -D CLIENT=1 -acf $(CLIENT_ACF) -header $(CLIENT_H) -server none -prefix server s_ -prefix client c_ -prefix switch sw_ -out .\$(O)
  23. SERVER_FLAGS = -D SERVER=1 -acf $(SERVER_ACF) -header $(SERVER_H) -client none -prefix server s_ -prefix client c_ -prefix switch sw_ -out .\$(O)
  24. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) $(NET_C_DEFINES)
  25. #
  26. # MIDL COMPILE
  27. #
  28. $(CLIENT_TARGETS) : .\$(IDL_NAME).idl .\$(IMPORT).idl .\$(IMPORT).h .\$(CLIENT_ACF)
  29. midl $(MIDL_OPTIMIZATION) -ms_ext -c_ext $(CPP) $(CLIENT_FLAGS) $(INCS) .\$(IDL_NAME).idl
  30. $(SERVER_TARGETS) : .\$(IDL_NAME).idl .\$(IMPORT).idl .\$(IMPORT).h .\$(SERVER_ACF)
  31. midl $(MIDL_OPTIMIZATION) -ms_ext -c_ext $(CPP) $(SERVER_FLAGS) $(INCS) .\$(IDL_NAME).idl