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.

138 lines
4.3 KiB

  1. #
  2. # Copyright (c) 1999, 2000
  3. # Intel Corporation.
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without modification,
  7. # are permitted provided that the following conditions are met:
  8. #
  9. # 1. Redistributions of source code must retain the above copyright notice,
  10. # this list of conditions and the following disclaimer.
  11. #
  12. # 2. Redistributions in binary form must reproduce the above copyright notice,
  13. # this list of conditions and the following disclaimer in the documentation
  14. # and/or other materials provided with the distribution.
  15. #
  16. # 3. All advertising materials mentioning features or use of this software must
  17. # display the following acknowledgement:
  18. #
  19. # This product includes software developed by Intel Corporation and its
  20. # contributors.
  21. #
  22. # 4. Neither the name of Intel Corporation or its contributors may be used to
  23. # endorse or promote products derived from this software without specific
  24. # prior written permission.
  25. #
  26. # THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION AND CONTRIBUTORS ``AS IS'' AND
  27. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  28. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  29. # DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION OR CONTRIBUTORS BE LIABLE FOR
  30. # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  31. # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  32. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  33. # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  34. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  35. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36. #
  37. #
  38. # Include sdk.env environment
  39. #
  40. !include $(SDK_INSTALL_DIR)\build\$(SDK_BUILD_ENV)\sdk.env
  41. #
  42. # Set the base output name and entry point
  43. #
  44. BASE_NAME = shellenv
  45. IMAGE_ENTRY_POINT = InitializeShellEnvironment
  46. #
  47. # Globals needed by master.mak
  48. #
  49. TARGET_BS_DRIVER = $(BASE_NAME)
  50. SOURCE_DIR = $(SDK_INSTALL_DIR)\efishell\$(BASE_NAME)
  51. BUILD_DIR = $(SDK_BUILD_DIR)\efishell\$(BASE_NAME)
  52. #
  53. # Include paths
  54. #
  55. !include $(SDK_INSTALL_DIR)\include\efishell\makefile.hdr
  56. INC = -I $(SDK_INSTALL_DIR)\include\efishell \
  57. -I $(SDK_INSTALL_DIR)\include\efishell\$(PROCESSOR) $(INC)
  58. !include $(SDK_INSTALL_DIR)\include\efi\makefile.hdr
  59. INC = -I $(SDK_INSTALL_DIR)\include\efi \
  60. -I $(SDK_INSTALL_DIR)\include\efi\protocol \
  61. -I $(SDK_INSTALL_DIR)\include\efi\$(PROCESSOR) $(INC)
  62. !include makefile.hdr
  63. INC = -I . $(INC)
  64. #
  65. # Libraries
  66. #
  67. LIBS = $(LIBS) $(SDK_BUILD_DIR)\lib\libefi\libefi.lib
  68. LIBS = $(LIBS) $(SDK_BUILD_DIR)\lib\libefishell\libefishell.lib
  69. #
  70. # Default target
  71. #
  72. all : dirs $(LIBS) $(OBJECTS)
  73. #
  74. # Program object files
  75. #
  76. OBJECTS = $(OBJECTS) \
  77. $(BUILD_DIR)\cmddisp.obj \
  78. $(BUILD_DIR)\data.obj \
  79. $(BUILD_DIR)\exec.obj \
  80. $(BUILD_DIR)\init.obj \
  81. $(BUILD_DIR)\protid.obj \
  82. $(BUILD_DIR)\var.obj \
  83. $(BUILD_DIR)\conio.obj \
  84. $(BUILD_DIR)\handle.obj \
  85. $(BUILD_DIR)\dprot.obj \
  86. $(BUILD_DIR)\map.obj \
  87. $(BUILD_DIR)\marg.obj \
  88. $(BUILD_DIR)\batch.obj \
  89. $(BUILD_DIR)\if.obj \
  90. $(BUILD_DIR)\goto.obj \
  91. $(BUILD_DIR)\echo.obj \
  92. $(BUILD_DIR)\pause.obj \
  93. $(BUILD_DIR)\for.obj \
  94. $(BUILD_DIR)\mount.obj \
  95. #
  96. # Source file dependencies
  97. #
  98. $(BUILD_DIR)\cmddisp.obj : $(*B).c $(INC_DEPS)
  99. $(BUILD_DIR)\data.obj : $(*B).c $(INC_DEPS)
  100. $(BUILD_DIR)\exec.obj : $(*B).c $(INC_DEPS)
  101. $(BUILD_DIR)\init.obj : $(*B).c $(INC_DEPS)
  102. $(BUILD_DIR)\protid.obj : $(*B).c $(INC_DEPS)
  103. $(BUILD_DIR)\var.obj : $(*B).c $(INC_DEPS)
  104. $(BUILD_DIR)\conio.obj : $(*B).c $(INC_DEPS)
  105. $(BUILD_DIR)\handle.obj : $(*B).c $(INC_DEPS)
  106. $(BUILD_DIR)\dprot.obj : $(*B).c $(INC_DEPS)
  107. $(BUILD_DIR)\map.obj : $(*B).c $(INC_DEPS)
  108. $(BUILD_DIR)\batch.obj : $(*B).c $(INC_DEPS)
  109. $(BUILD_DIR)\if.obj : $(*B).c $(INC_DEPS)
  110. $(BUILD_DIR)\goto.obj : $(*B).c $(INC_DEPS)
  111. $(BUILD_DIR)\echo.obj : $(*B).c $(INC_DEPS)
  112. $(BUILD_DIR)\pause.obj : $(*B).c $(INC_DEPS)
  113. $(BUILD_DIR)\for.obj : $(*B).c $(INC_DEPS)
  114. $(BUILD_DIR)\mount.obj : $(*B).c $(INC_DEPS)
  115. #
  116. # Handoff to master.mak
  117. #
  118. !include $(SDK_INSTALL_DIR)\build\master.mak