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.

88 lines
1.9 KiB

  1. ##############################################################################
  2. # The following variables must be define in the environment for
  3. # a make to work.
  4. #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5. !IFNDEF EFI_SOURCE
  6. error Need to have EFI_SOURCE set to the root of the EFI source tree
  7. !ENDIF
  8. !IFNDEF EFI_MSVCTOOLPATH
  9. error Need to have EFI_MSVCTOOLPATH set to the root of the EFI source tree
  10. !ENDIF
  11. !IFNDEF EFI_MASMPATH
  12. error Need to have EFI_MASMPATH set to the path of MASM 6.11
  13. !ENDIF
  14. !IFNDEF INCLUDE
  15. error NT build needs to have INCLUDE set to standard include files
  16. !ENDIF
  17. !IFNDEF EFI_LIBPATH
  18. %error NT build needs to have EFI_LIBPATH set to standard lib files
  19. !ENDIF
  20. #
  21. #
  22. #
  23. PROCESSOR=Ia32
  24. BUILD_TOOL=..\tools\bin
  25. BIN_DIR=bin
  26. #
  27. #
  28. #
  29. C_STD_INCLUDE=/X
  30. C_PROJ_FLAGS=/D EFI32
  31. !IF "$(EFI_DEBUG)" == "YES"
  32. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_DEBUG
  33. !ENDIF
  34. !IF "$(EFI_DEBUG_CLEAR_MEMORY)" == "YES"
  35. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_DEBUG_CLEAR_MEMORY
  36. !ENDIF
  37. !IF "$(EFI_BOOTSHELL)" == "YES"
  38. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_BOOTSHELL
  39. !ENDIF
  40. !IF "$(EFI_SPLIT_CONSOLES)" == "YES"
  41. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_SPLIT_CONSOLES
  42. !ENDIF
  43. C_BUILD_FLAGS=/nologo /W3 /WX /Gm /GX /Zi /Od /Gf /Gy /FAcs /Fa$*.cod
  44. L_BUILD_FLAGS=/nologo /MACHINE:IX86 /subsystem:console /NODEFAULTLIB /INCREMENTAL:NO /MAP /DEBUG
  45. LIB_BUILD_FLAGS=/nologo
  46. #
  47. # Ia32 tools
  48. #
  49. CC=cl
  50. LINK=link
  51. LIB=lib
  52. MAKE=nmake -nologo
  53. FWIMAGE=$(BUILD_TOOL)\fwimage
  54. BSCMAKE=bscmake
  55. MASM=$(EFI_MASMPATH)\bin\ml
  56. MASMLINK=$(EFI_MASMPATH)\binr\link
  57. MASM_FLAGS=/c /Fl$*.lst
  58. #
  59. #
  60. #
  61. L_FLAGS=$(L_BUILD_FLAGS) /DLL $(L_PROJ_FLAGS)
  62. C_FLAGS=$(C_BUILD_FLAGS) $(C_STD_INCLUDE) $(C_PROJ_FLAGS) $(INC)
  63. LIB_FLAGS=$(LIB_BUILD_FLAGS) $(LIB_PROJ_FLAGS)
  64. #
  65. # tool path
  66. #
  67. PATH=$(PATH);$(EFI_SOURCE)\tools\bin