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.

128 lines
5.5 KiB

  1. !include master.env
  2. #
  3. # Libs to link together a FW image
  4. #
  5. EFI_LIBS = \
  6. output\lib\lib.lib
  7. #
  8. # We sometimes link the shell's tools into this build, so include
  9. # libs for all the tools and the shell
  10. #
  11. # (Note this is for debugging, and a real build should remove
  12. # this as to be sure it's not mistakenly including any parts of
  13. # the shell)
  14. #
  15. !IF "$(EFI_BOOTSHELL)" == "YES"
  16. EFI_LIBS = $(EFI_LIBS) \
  17. output\shell\newshell\newshell.lib \
  18. output\shell\shellenv\shellenv.lib \
  19. output\shell\lib\lib.lib \
  20. output\shell\rm\rm.lib \
  21. output\shell\mkdir\mkdir.lib \
  22. output\shell\ls\ls.lib \
  23. output\shell\mode\mode.lib \
  24. output\shell\cp\cp.lib \
  25. output\shell\memmap\memmap.lib \
  26. output\shell\type\type.lib \
  27. output\shell\load\load.lib \
  28. output\shell\dmpstore\dmpstore.lib \
  29. output\shell\ver\ver.lib \
  30. output\shell\attrib\attrib.lib \
  31. output\shell\mv\mv.lib \
  32. output\shell\date\date.lib \
  33. output\shell\time\time.lib \
  34. output\shell\stall\stall.lib \
  35. output\shell\reset\reset.lib \
  36. output\shell\debug\debug.lib \
  37. output\shell\iomod\iomod.lib \
  38. output\shell\mem\mem.lib \
  39. output\shell\pci\pci.lib \
  40. output\shell\err\err.lib \
  41. output\shell\vol\vol.lib \
  42. output\shell\comp\comp.lib \
  43. output\shell\cls\cls.lib \
  44. output\shell\bcfg\bcfg.lib \
  45. output\shell\edit\edit.lib \
  46. !ENDIF
  47. #
  48. #
  49. #
  50. !IFNDEF EFI_TARGETNAME
  51. TARGET_BASENAME=Sal64
  52. !ELSE
  53. TARGET_BASENAME=$(EFI_TARGETNAME)
  54. !ENDIF
  55. OUTPUTS=bin\$(TARGET_BASENAME).exe
  56. all: makemaker
  57. $(OUTPUTS): $(EFI_LIBS)
  58. $(LINK) @<<
  59. $(L_FLAGS) $(NT_LIBS) $(EFI_LIBS) /entry:MainEntry /out:$@ /pdb:$*.pdb
  60. <<NOKEEP
  61. # pe2sym $*.pdb $*.sym
  62. #
  63. # Everything to build
  64. #
  65. banner:
  66. -type $(EFI_SOURCE)\corefw\fw\platform\BuildTip\Sal64\banner.c > $(EFI_SOURCE)\corefw\fw\platform\BuildTip\Sal64\banner.xxx
  67. -del $(EFI_SOURCE)\corefw\fw\platform\BuildTip\Sal64\banner.c
  68. -rename $(EFI_SOURCE)\corefw\fw\platform\BuildTip\Sal64\banner.xxx banner.c
  69. makemaker:
  70. $(BUILD_TOOL)\genmake
  71. $(MAKE) -f output\lib\makefile all
  72. !IF "$(EFI_BOOTSHELL)" == "YES"
  73. $(MAKE) -f output\shell\lib\makefile all
  74. $(MAKE) -f output\shell\shellenv\makefile all
  75. $(MAKE) -f output\shell\newshell\makefile all
  76. $(MAKE) -f output\shell\ls\makefile all
  77. $(MAKE) -f output\shell\mode\makefile all
  78. $(MAKE) -f output\shell\mkdir\makefile all
  79. $(MAKE) -f output\shell\rm\makefile all
  80. $(MAKE) -f output\shell\cp\makefile all
  81. $(MAKE) -f output\shell\comp\makefile all
  82. $(MAKE) -f output\shell\type\makefile all
  83. $(MAKE) -f output\shell\memmap\makefile all
  84. $(MAKE) -f output\shell\dmpstore\makefile all
  85. $(MAKE) -f output\shell\load\makefile all
  86. $(MAKE) -f output\shell\getmtc\makefile all
  87. $(MAKE) -f output\shell\debug\makefile all
  88. $(MAKE) -f output\shell\pci\makefile all
  89. $(MAKE) -f output\shell\mem\makefile all
  90. $(MAKE) -f output\shell\iomod\makefile all
  91. $(MAKE) -f output\shell\ver\makefile all
  92. $(MAKE) -f output\shell\date\makefile all
  93. $(MAKE) -f output\shell\time\makefile all
  94. $(MAKE) -f output\shell\reset\makefile all
  95. $(MAKE) -f output\shell\stall\makefile all
  96. $(MAKE) -f output\shell\attrib\makefile all
  97. $(MAKE) -f output\shell\setsize\makefile all
  98. $(MAKE) -f output\shell\touch\makefile all
  99. $(MAKE) -f output\shell\mv\makefile all
  100. $(MAKE) -f output\shell\err\makefile all
  101. $(MAKE) -f output\shell\vol\makefile all
  102. $(MAKE) -f output\shell\bcfg\makefile all
  103. $(MAKE) -f output\shell\cls\makefile all
  104. $(MAKE) -f output\shell\edit\makefile all
  105. !ENDIF
  106. bsc:
  107. - dir /s /b *.sbr > temp.rm
  108. $(BSCMAKE) /n /o bin/$(TARGET_BASENAME).BSC "@temp.rm"
  109. -del temp.rm
  110. clean:
  111. - rd /s /q output
  112. - rd /s /q bin
  113. - del VC?0.*
  114. - del $(TARGET_BASENAME).*