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.

82 lines
2.0 KiB

  1. ##############################################################################
  2. # The following variables must be define in the environment for
  3. # a make to work.
  4. #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5. # EFI_SOURCE=
  6. # EFI_BUILD_TOOLS=
  7. !IFNDEF EFI_SOURCE
  8. error Need to have EFI_SOURCE set to the root of the EFI source tree
  9. !ENDIF
  10. #
  11. #
  12. #
  13. PROCESSOR=Ia64
  14. BUILD_TOOL=..\tools\bin
  15. BIN_DIR=bin
  16. #
  17. # BugBug: Change C_BUILD, AFLAGS, & CC when you change compilers
  18. #
  19. C_STD_INCLUDE=/X
  20. C_PROJ_FLAGS=/D EFI64 $(ENV_CFLAGS)
  21. !IF "$(SOFT_SDV)" == "YES"
  22. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D SOFT_SDV
  23. !ENDIF
  24. !IF "$(EFI_DEBUG)" == "YES"
  25. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_DEBUG
  26. !ENDIF
  27. !IF "$(EFI_DEBUG_CLEAR_MEMORY)" == "YES"
  28. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_DEBUG_CLEAR_MEMORY
  29. !ENDIF
  30. !IF "$(EFI_BOOTSHELL)" == "YES"
  31. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_BOOTSHELL
  32. !ENDIF
  33. !IF "$(EFI_SPLIT_CONSOLES)" == "YES"
  34. C_PROJ_FLAGS= $(C_PROJ_FLAGS) /D EFI_SPLIT_CONSOLES
  35. !ENDIF
  36. #C_BUILD_FLAGS=/nologo /X /Zl /Od /W3 /WX /QIA64_fr32
  37. C_BUILD_FLAGS=/nologo /X /Zl /Od /W3 /WX /QIA64_fr32 /QIA64_A0
  38. L_BUILD_FLAGS=/nologo /SUBSYSTEM:NATIVE /NODEFAULTLIB /MACHINE:IA64 /MAP /DEBUG /DEBUGTYPE:CV /DEBUG:FULL
  39. LIB_BUILD_FLAGS=/nologo /MACHINE:IA64
  40. #AFLAGS = -X explicit -F COFF32_PLUS -M ilp64 -N us
  41. AFLAGS = -X explicit -F COFF32_PLUS -N us
  42. CFLAGS_P = /EP /C $(C_STD_INCLUDE) $(C_PROJ_FLAGS) $(INC)
  43. #
  44. # Ia64 tools
  45. #
  46. IA64_TOOLS=$(NTMAKEENV)\win64\$(PROCESSOR_ARCHITECTURE)
  47. CC=$(IA64_TOOLS)\cl
  48. LINK=$(NTMAKEENV)\$(PROCESSOR_ARCHITECTURE)\link
  49. LIB=$(NTMAKEENV)\$(PROCESSOR_ARCHITECTURE)\lib
  50. ASM=$(IA64_TOOLS)\ias
  51. MAKE=nmake -nologo
  52. FWIMAGE=$(BUILD_TOOL)\fwimage
  53. BSCMAKE=bscmake
  54. #
  55. #
  56. #
  57. L_FLAGS=$(L_BUILD_FLAGS) $(L_PROJ_FLAGS)
  58. C_FLAGS=$(C_BUILD_FLAGS) $(C_STD_INCLUDE) $(C_PROJ_FLAGS) $(INC)
  59. LIB_FLAGS=$(LIB_BUILD_FLAGS) $(LIB_PROJ_FLAGS)
  60. # tool path
  61. PATH=$(PATH);$(EFI_BUILD_TOOLS);$(EFI_SOURCE)\tools\bin