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.

60 lines
1.5 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 = ftpsvc
  9. !IFNDEF DISABLE_NET_UNICODE
  10. UNICODE=1
  11. NET_C_DEFINES=-DUNICODE
  12. !ENDIF
  13. C_DEFINES=-D_INETASRV_H_
  14. SDKINC = $(BASEDIR)\public\sdk\inc
  15. INETINC = ..\..\..\inc
  16. SDKCRTINC = $(BASEDIR)\public\sdk\inc\crt
  17. INCS = -I$(SDKINC) -I$(SDKCRTINC) -I$(INETINC)
  18. # Treat warnings as errors
  19. MSC_WARNING_LEVEL = /W3 /WX
  20. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c\
  21. $(O)\$(IDL_NAME).h
  22. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c
  23. EXTRN_DEPENDS = $(IDL_NAME).acf \
  24. $(INETINC)\infoimp.h \
  25. $(INETINC)\ftpd.h \
  26. $(INETINC)\inetinfo.h \
  27. $(INETINC)\inetcom.h
  28. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) $(NET_C_DEFINES)
  29. #
  30. # Define Products and Dependencies
  31. #
  32. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  33. !IF "$(BUILDMSG)" != ""
  34. @ech ; $(BUILDMSG) ;
  35. !ENDIF
  36. #
  37. # MIDL COMPILE
  38. #
  39. $(CLIENT_TARGETS) : .\$(IDL_NAME).idl $(EXTRN_DEPENDS)
  40. midl -Oicf -robust -server none -oldnames -error allocation -error ref -out .\$(O) -ms_ext -c_ext $(CPP) .\$(IDL_NAME).idl $(INCS)
  41. $(SERVER_TARGETS) : .\$(IDL_NAME).idl $(EXTRN_DEPENDS)
  42. midl -Oicf -robust -client none -oldnames -error allocation -error ref -out .\$(O) -ms_ext -c_ext $(CPP) .\$(IDL_NAME).idl $(INCS)