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.

46 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 = logon
  9. IMPORT = imports
  10. CLIENT_H = logon_c.h
  11. SERVER_H = logon_s.h
  12. CLIENT_ACF = logoncli.acf
  13. SERVER_ACF = logonsrv.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$(PROJECT_ROOT)\netapi\inc \
  19. -I$(DS_INC_PATH) -I$(NET_INC_PATH) -I$(BASE_INC_PATH) -I$(PROJECT_ROOT)\inc
  20. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c $(O)\$(CLIENT_H)
  21. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c $(O)\$(SERVER_H)
  22. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  23. CLIENT_FLAGS = -acf $(CLIENT_ACF) -header $(CLIENT_H) -oldnames -server none -out .\$(O)
  24. SERVER_FLAGS = -acf $(SERVER_ACF) -header $(SERVER_H) -oldnames -client none -out .\$(O)
  25. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) $(NET_C_DEFINES)
  26. #
  27. # MIDL COMPILE
  28. #
  29. $(CLIENT_TARGETS) : .\$(IDL_NAME).idl .\$(IMPORT).idl .\$(IMPORT).h .\$(CLIENT_ACF)
  30. midl $(MIDL_OPTIMIZATION) -ms_ext -c_ext $(CPP) $(CLIENT_FLAGS) $(INCS) .\$(IDL_NAME).idl
  31. $(SERVER_TARGETS) : .\$(IDL_NAME).idl .\$(IMPORT).idl .\$(IMPORT).h .\$(SERVER_ACF)
  32. midl $(MIDL_OPTIMIZATION) -ms_ext -c_ext $(CPP) $(SERVER_FLAGS) $(INCS) .\$(IDL_NAME).idl