2007-10-17 03:54:36 +02:00
|
|
|
#
|
2011-05-11 12:26:49 +02:00
|
|
|
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
|
2010-10-11 08:26:52 +02:00
|
|
|
# Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
|
2010-05-18 07:04:32 +02:00
|
|
|
# This program and the accompanying materials
|
2007-10-17 03:54:36 +02:00
|
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
#
|
|
|
|
|
|
|
|
## Syntax
|
|
|
|
#
|
|
|
|
# "*" is used to indicate that the source files will be processed at the same time.
|
|
|
|
# "?" is used to indicate that the source files will be processed one by one.
|
|
|
|
#
|
2008-08-12 09:54:36 +02:00
|
|
|
# "[" <File-Type>[.<Build-Type>][.<Arch>][, <File-Type>[.<Build-Type>][.<Arch>]] "]" <EOL>
|
2007-10-17 03:54:36 +02:00
|
|
|
# <InputFile[.<ToolChainFamily>]> <EOL>
|
2008-08-12 09:54:36 +02:00
|
|
|
# (?|*).<File-Extension> [(\n|,) (?|*).<File-Extension>]
|
2007-10-17 03:54:36 +02:00
|
|
|
#
|
|
|
|
# <OutputFile[.<ToolChainFamily>]> <EOL>
|
|
|
|
# <FileFullPath>
|
|
|
|
#
|
2008-08-12 09:54:36 +02:00
|
|
|
# <ExtraDependency>
|
|
|
|
# <FileFullPath>
|
|
|
|
#
|
2007-10-17 03:54:36 +02:00
|
|
|
# <Command[.<ToolChainFamily>]> <EOL>
|
|
|
|
# <Command1>
|
|
|
|
# [<Command2>]
|
|
|
|
#
|
2008-08-12 09:54:36 +02:00
|
|
|
# <Build-Type> is the MODULE_TYPE in EDK2 or COMPONENT_TYPE in EDK.
|
|
|
|
# Missing <InputFile> will cause an exception and break build.
|
|
|
|
# Missing <Command> will cause that related build target won't be generated but
|
|
|
|
# won't break build.
|
|
|
|
#
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
## Placeholders for string substitution
|
|
|
|
#
|
|
|
|
# ${src} Source file(s) to be built (full path)
|
|
|
|
# ${s_path} Source file directory (absolute path)
|
|
|
|
# ${s_dir} Source file relative directory within a module
|
|
|
|
# (Note: ${s_dir} is always equals to "." if source file is given in absolute path.)
|
|
|
|
# ${s_name} Source file name without path
|
|
|
|
# ${s_base} Source file name without extension and path
|
|
|
|
# ${s_ext} Source file extension
|
|
|
|
#
|
|
|
|
# ${dst} Destination file(s) built from ${src} (full path)
|
|
|
|
# ${d_path} Destination file directory (absolute path)
|
|
|
|
# ${d_name} Destination file name without path
|
|
|
|
# ${d_base} Destination file name without extension and path
|
|
|
|
# ${d_ext} Destination file extension
|
|
|
|
#
|
|
|
|
# (+) Directory separator
|
|
|
|
#
|
|
|
|
|
|
|
|
## Macro
|
|
|
|
# $(WORKSPACE) Workspace directory
|
|
|
|
# $(OUTPUT_DIR) Directory for intermediate files for building a module
|
|
|
|
# $(DEBUG_DIR) Directory for files used to debug a module
|
|
|
|
# $(BUILD_DIR) All files for building a platform will be put in this directory
|
|
|
|
# $(BIN_DIR) Common directory for executable files
|
|
|
|
# $(FV_DIR) Directory to store flash image files
|
|
|
|
# $(INC) Search path of current module
|
2008-12-31 07:06:11 +01:00
|
|
|
# $(INC_LIST) A file containing search pathes of current module
|
2007-10-17 03:54:36 +02:00
|
|
|
# $(LIBS) Static library files of current module
|
|
|
|
# $(<tool>_FLAGS) Tools flags of current module
|
|
|
|
# $(MODULE_NAME) Current module name
|
|
|
|
# $(MODULE_TYPE) Current module type
|
2009-11-09 12:47:35 +01:00
|
|
|
# $(MODULE_GUID) Current module guid
|
2007-10-17 03:54:36 +02:00
|
|
|
# $(ARCH) Architecture of current module
|
|
|
|
# $(TOOLCHAIN) Toolchain used to build current module
|
|
|
|
# $(TARGET) Target of current module (DEBUG/RELEASE)
|
|
|
|
# $(<tool>) Path of tool
|
|
|
|
# $(EDK_TOOLS_PATH) Path of build tools
|
2008-12-31 07:06:11 +01:00
|
|
|
# $(<FILE_TYPES>) File list of each file type
|
2007-10-17 03:54:36 +02:00
|
|
|
# (Note: The macro name is derived from file type name. For example,
|
2008-12-31 07:06:11 +01:00
|
|
|
# C-Code-File will have C_CODE_FILES macro.)
|
|
|
|
# $(<FILE_TYPES_LIST>) Macro point to a file containing list of files of a file type
|
|
|
|
# (
|
|
|
|
# Note: The macro and file name are derived from file type name.
|
2009-02-16 14:37:23 +01:00
|
|
|
# For example, C-Code-File will have C_CODE_FILES_LIST macro pointing
|
2008-12-31 07:06:11 +01:00
|
|
|
# to $(OUTPUT_DIR)/c_code_files.lst. The list file and macro name
|
|
|
|
# will be generated only when this macro is used in command line.
|
|
|
|
# This is intended to get over the long command line limitation.
|
|
|
|
# )
|
2007-10-17 03:54:36 +02:00
|
|
|
#
|
|
|
|
# $(CP) copy command
|
|
|
|
# $(MV) move command
|
|
|
|
# $(RM) delete command
|
|
|
|
# $(MD) create dir command
|
|
|
|
# $(RD) remove dir command
|
|
|
|
#
|
|
|
|
|
|
|
|
## Reserved File-Type
|
|
|
|
#
|
2007-12-25 10:17:00 +01:00
|
|
|
# Don't change following names of file types and their associated files,
|
2007-10-17 03:54:36 +02:00
|
|
|
# which are also used in tools' code
|
|
|
|
#
|
|
|
|
# C-Code-File
|
|
|
|
# C-Header-File
|
|
|
|
# Dynamic-Library-File
|
|
|
|
# Static-Library-File
|
|
|
|
# Visual-Form-Representation-File
|
|
|
|
# Unicode-Text-File
|
|
|
|
#
|
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[C-Code-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.c
|
|
|
|
?.C
|
|
|
|
?.cc
|
|
|
|
?.CC
|
|
|
|
?.cpp
|
|
|
|
?.Cpp
|
|
|
|
?.CPP
|
2008-08-12 09:54:36 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
2008-06-05 09:36:19 +02:00
|
|
|
$(MAKE_FILE)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
|
|
|
"$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src}
|
|
|
|
|
2009-09-11 05:14:43 +02:00
|
|
|
<Command.GCC, Command.RVCT>
|
|
|
|
# For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues
|
|
|
|
"$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
|
2009-04-13 14:50:50 +02:00
|
|
|
"$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst}
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2010-03-12 11:54:01 +01:00
|
|
|
<Command.ARMGCC>
|
|
|
|
"$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
|
|
|
|
|
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[C-Header-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
*.h, *.H
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Assembly-Code-File.COMMON.COMMON]
|
2009-09-11 05:14:43 +02:00
|
|
|
<InputFile.MSFT, InputFile.INTEL, InputFile.RVCT>
|
2008-08-12 09:54:36 +02:00
|
|
|
?.asm, ?.Asm, ?.ASM
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<InputFile.GCC>
|
2009-04-13 14:50:50 +02:00
|
|
|
?.S, ?.s
|
2008-08-12 09:54:36 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
2008-06-05 09:36:19 +02:00
|
|
|
$(MAKE_FILE)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
|
|
|
"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
2008-09-10 08:51:00 +02:00
|
|
|
"$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2009-09-11 05:14:43 +02:00
|
|
|
<Command.GCC, Command.RVCT>
|
2007-10-17 03:54:36 +02:00
|
|
|
"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
2009-09-11 05:14:43 +02:00
|
|
|
# For RVCTCYGWIN ASM_FLAGS must be first to work around pathing issues
|
|
|
|
"$(ASM)" $(ASM_FLAGS) -o ${dst} $(INC) ${d_path}(+)${s_base}.iii
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Assembly-Code-File.COMMON.IPF]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.s
|
2008-08-12 09:54:36 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
2008-06-05 09:36:19 +02:00
|
|
|
$(MAKE_FILE)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
|
|
|
"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
2009-09-11 05:14:43 +02:00
|
|
|
# For RVCTCYGWIN ASM_FLAGS must be first to work around pathing issues
|
|
|
|
"$(ASM)" $(ASM_FLAGS) -o ${dst} ${d_path}(+)${s_base}.iii
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Visual-Form-Representation-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.vfr
|
|
|
|
?.Vfr
|
|
|
|
?.VFR
|
2008-08-12 09:54:36 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
2008-06-05 09:36:19 +02:00
|
|
|
$(MAKE_FILE)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)${s_dir}(+)${s_base}.c
|
|
|
|
|
|
|
|
<Command>
|
2009-03-29 18:16:19 +02:00
|
|
|
-$(MD) $(OUTPUT_DIR)(+)${s_dir} > NUL 2>&1
|
2008-11-21 20:09:26 +01:00
|
|
|
"$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
2009-03-29 18:16:19 +02:00
|
|
|
-$(MD) ${d_path} > NUL 2>&1
|
2009-09-11 05:14:43 +02:00
|
|
|
"$(VFR)" $(VFR_FLAGS) --output-directory ${d_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Object-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
*.obj
|
|
|
|
*.o
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).lib
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2009-04-13 14:50:50 +02:00
|
|
|
"$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} @$(OBJECT_FILES_LIST)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2009-11-09 12:47:35 +01:00
|
|
|
"$(SLINK)" -cr ${dst} $(SLINK_FLAGS) @$(OBJECT_FILES_LIST)
|
2009-09-11 05:14:43 +02:00
|
|
|
|
|
|
|
<Command.RVCT>
|
|
|
|
"$(SLINK)" $(SLINK_FLAGS) ${dst} --via $(OBJECT_FILES_LIST)
|
|
|
|
|
2010-03-12 11:54:01 +01:00
|
|
|
<Command.RVCTCYGWIN, Command.ARMGCC>
|
2009-09-11 05:14:43 +02:00
|
|
|
# $(OBJECT_FILES_LIST) has wrong paths for cygwin
|
|
|
|
"$(SLINK)" $(SLINK_FLAGS) ${dst} $(OBJECT_FILES)
|
|
|
|
|
|
|
|
<Command.XCODE>
|
|
|
|
"$(SLINK)" $(SLINK_FLAGS) ${dst} -filelist $(OBJECT_FILES_LIST)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Static-Library-File]
|
|
|
|
<InputFile>
|
2008-12-31 06:53:26 +01:00
|
|
|
*.lib
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
<ExtraDependency>
|
2007-11-08 04:57:35 +01:00
|
|
|
$(MAKE_FILE)
|
2007-10-29 19:34:07 +01:00
|
|
|
|
2007-10-17 03:54:36 +02:00
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME).dll
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2009-04-13 14:50:50 +02:00
|
|
|
"$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<Command.GCC>
|
2009-11-09 12:47:35 +01:00
|
|
|
"$(DLINK)" -o ${dst} $(DLINK_FLAGS) -\( $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) -\) $(DLINK2_FLAGS)
|
2009-04-13 14:50:50 +02:00
|
|
|
"$(OBJCOPY)" $(OBJCOPY_FLAGS) ${dst}
|
2009-02-16 14:37:23 +01:00
|
|
|
|
2010-03-12 11:54:01 +01:00
|
|
|
<Command.ARMGCC>
|
|
|
|
"$(DLINK)" -o ${dst} $(DLINK_FLAGS) -( $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) -) $(DLINK2_FLAGS)
|
|
|
|
|
2009-09-11 05:14:43 +02:00
|
|
|
<Command.RVCT>
|
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) --via $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
|
|
|
|
|
|
|
<Command.RVCTCYGWIN>
|
|
|
|
#$(STATIC_LIBRARY_FILES_LIST) has wrong paths for cygwin
|
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) $(DLINK2_FLAGS)
|
|
|
|
|
|
|
|
<Command.XCODE>
|
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) -filelist $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
|
|
|
|
|
|
|
|
2009-02-16 14:37:23 +01:00
|
|
|
[Static-Library-File.USER_DEFINED]
|
|
|
|
<InputFile>
|
|
|
|
*.lib
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2009-04-13 14:50:50 +02:00
|
|
|
"$(DLINK)" $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
|
2009-02-16 14:37:23 +01:00
|
|
|
|
|
|
|
<Command.GCC>
|
2009-04-13 14:50:50 +02:00
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -\( $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) -\) $(DLINK2_FLAGS)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2010-03-12 11:54:01 +01:00
|
|
|
<Command.ARMGCC>
|
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -( $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) -) $(DLINK2_FLAGS)
|
|
|
|
|
2009-09-11 05:14:43 +02:00
|
|
|
<Command.RVCT>
|
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) --via $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
|
|
|
|
|
|
|
<Command.RVCTCYGWIN>
|
|
|
|
#$(STATIC_LIBRARY_FILES_LIST) has the wrong paths for cygwin
|
|
|
|
"$(DLINK)" $(DLINK_FLAGS) -o ${dst} $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) $(DLINK2_FLAGS)
|
|
|
|
|
|
|
|
<Command.XCODE>
|
|
|
|
"$(DLINK)" -o ${dst} $(DLINK_FLAGS) $(DLINK_SPATH) -filelist $(STATIC_LIBRARY_FILES_LIST) $(DLINK2_FLAGS)
|
|
|
|
|
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Dynamic-Library-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.dll
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME).efi
|
|
|
|
|
2010-03-12 11:54:01 +01:00
|
|
|
<Command.MSFT, Command.INTEL, Command.RVCT, Command.ARMGCC>
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
|
2010-03-01 00:39:39 +01:00
|
|
|
$(CP) ${dst} $(OUTPUT_DIR)
|
|
|
|
$(CP) ${dst} $(BIN_DIR)
|
|
|
|
-$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
|
|
|
|
|
|
|
<Command.GCC>
|
2011-05-11 12:26:49 +02:00
|
|
|
$(OBJCOPY) --only-keep-debug ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
|
2010-03-01 00:39:39 +01:00
|
|
|
$(OBJCOPY) --strip-unneeded ${src}
|
2011-05-11 12:26:49 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
#The below 2 lines are only needed for UNIXGCC tool chain, which genereates PE image directly
|
|
|
|
#
|
|
|
|
-$(OBJCOPY) --add-gnu-debuglink=$(DEBUG_DIR)(+)$(MODULE_NAME).debug ${src}
|
|
|
|
-$(CP) $(DEBUG_DIR)(+)$(MODULE_NAME).debug $(BIN_DIR)
|
|
|
|
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
|
2007-10-17 03:54:36 +02:00
|
|
|
$(CP) ${dst} $(OUTPUT_DIR)
|
|
|
|
$(CP) ${dst} $(BIN_DIR)
|
|
|
|
-$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
2009-09-11 05:14:43 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
|
|
|
# tool to convert Mach-O to PE/COFF
|
|
|
|
"$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).pecoff
|
|
|
|
# create symbol file for GDB debug
|
|
|
|
-$(DSYMUTIL) ${src}
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} $(DEBUG_DIR)(+)$(MODULE_NAME).pecoff $(GENFW_FLAGS)
|
2009-09-11 05:14:43 +02:00
|
|
|
$(CP) ${dst} $(OUTPUT_DIR)
|
|
|
|
$(CP) ${dst} $(BIN_DIR)
|
|
|
|
-$(CP) $(DEBUG_DIR)(+)*.map $(OUTPUT_DIR)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Dependency-Expression-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.dxs, ?.Dxs, ?.DXS
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).depex
|
|
|
|
|
2010-06-28 11:33:10 +02:00
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
2007-10-17 03:54:36 +02:00
|
|
|
<Command>
|
2010-06-28 11:33:10 +02:00
|
|
|
"$(PP)" $(APP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
2007-12-22 17:58:04 +01:00
|
|
|
Trim --source-code -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
GenDepex -t $(MODULE_TYPE) -o ${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Acpi-Source-Language-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.asl, ?.Asl, ?.ASL
|
|
|
|
|
|
|
|
<OutputFile>
|
2008-09-10 08:51:00 +02:00
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.aml
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
2007-10-17 03:54:36 +02:00
|
|
|
<Command.MSFT, Command.INTEL>
|
2010-10-11 08:26:52 +02:00
|
|
|
Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i $(INC_LIST) ${src}
|
2008-11-17 03:12:36 +01:00
|
|
|
"$(ASLPP)" $(ASLPP_FLAGS) $(INC) /I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
2010-10-11 08:26:52 +02:00
|
|
|
Trim --source-code -l -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
|
|
|
"$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2009-03-29 20:42:14 +02:00
|
|
|
<Command.GCC>
|
2010-10-11 08:26:52 +02:00
|
|
|
Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -i $(INC_LIST) ${src}
|
2009-03-29 20:42:14 +02:00
|
|
|
"$(ASLPP)" $(ASLPP_FLAGS) $(INC) -I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
2009-06-17 11:34:46 +02:00
|
|
|
"$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii
|
2009-03-29 20:42:14 +02:00
|
|
|
|
2008-09-01 03:18:00 +02:00
|
|
|
[C-Code-File.AcpiTable]
|
|
|
|
<InputFile>
|
|
|
|
?.c
|
|
|
|
|
|
|
|
<OutputFile>
|
2008-09-10 08:51:00 +02:00
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
|
2008-09-01 03:18:00 +02:00
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
2010-11-15 03:51:34 +01:00
|
|
|
"$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
2008-09-01 03:18:00 +02:00
|
|
|
"$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2008-09-01 03:18:00 +02:00
|
|
|
|
2009-03-29 20:42:14 +02:00
|
|
|
<Command.GCC>
|
2009-04-14 05:20:33 +02:00
|
|
|
"$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
"$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2009-03-29 20:42:14 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Acpi-Table-Code-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
2008-09-01 03:18:00 +02:00
|
|
|
?.aslc, ?.act
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<OutputFile>
|
2008-09-10 08:51:00 +02:00
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
2007-10-17 03:54:36 +02:00
|
|
|
<Command.MSFT, Command.INTEL>
|
2010-11-15 03:51:34 +01:00
|
|
|
"$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
2008-08-21 15:11:01 +02:00
|
|
|
"$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2009-03-29 20:42:14 +02:00
|
|
|
<Command.GCC>
|
|
|
|
"$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
"$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
|
2009-09-11 05:14:43 +02:00
|
|
|
|
|
|
|
<Command.XCODE>
|
|
|
|
"$(ASLCC)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(INC) ${src}
|
|
|
|
"$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
"$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi $(GENFW_FLAGS)
|
2009-09-11 05:14:43 +02:00
|
|
|
|
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Masm16-Code-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
?.asm16, ?.Asm16, ?.ASM16
|
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
2007-10-17 03:54:36 +02:00
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_base}.com
|
|
|
|
|
|
|
|
<Command.MSFT, Command.INTEL>
|
|
|
|
cd $(OUTPUT_DIR)(+)${s_dir}
|
2010-08-03 05:29:17 +02:00
|
|
|
"$(ASM16)" /nologo /c /omf $(INC) /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj ${src}
|
2007-10-17 03:54:36 +02:00
|
|
|
"$(ASMLINK)" $(ASMLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj,${dst},,,,
|
|
|
|
|
2009-09-11 05:14:43 +02:00
|
|
|
<Command.GCC>
|
|
|
|
"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
"$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
|
|
|
|
"$(DLINK)" -o ${dst} $(DLINK_FLAGS) -( $(DLINK_SPATH) $(LIBS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj -)
|
|
|
|
|
|
|
|
<Command.XCODE>
|
|
|
|
"$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
|
|
|
|
Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
|
|
|
|
"$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
|
|
|
|
"$(SLINK)" $(SLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
|
|
|
|
otool -t $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib | hex2bin.py ${dst}
|
|
|
|
|
|
|
|
|
2009-12-29 07:16:53 +01:00
|
|
|
[Microcode-File.USER_DEFINED, Microcode-File.Microcode]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
2009-12-29 07:16:53 +01:00
|
|
|
?.txt, ?.TXT, ?.Txt, ?.mut, ?.inc
|
2007-10-17 03:54:36 +02:00
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_base}.mcb
|
|
|
|
|
|
|
|
<Command>
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -m ${src} $(GENFW_FLAGS)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[Microcode-Binary-File]
|
2007-10-17 03:54:36 +02:00
|
|
|
<InputFile>
|
|
|
|
*.mcb
|
|
|
|
|
2010-03-01 00:39:39 +01:00
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
2007-10-17 03:54:36 +02:00
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME).bin
|
|
|
|
|
|
|
|
<Command>
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o ${dst} -j $(MICROCODE_BINARY_FILES) $(GENFW_FLAGS)
|
2008-04-18 05:08:20 +02:00
|
|
|
-$(CP) ${dst} $(BIN_DIR)
|
2007-10-17 03:54:36 +02:00
|
|
|
|
2008-08-12 09:54:36 +02:00
|
|
|
[EFI-Image-File]
|
|
|
|
<InputFile>
|
|
|
|
?.efi, ?.Efi, ?.EFI
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
2008-12-25 04:22:58 +01:00
|
|
|
[Unicode-Text-File]
|
|
|
|
<InputFile>
|
|
|
|
*.uni, *.Uni, *.UNI
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(DEBUG_DIR)(+)AutoGen.c
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h
|
|
|
|
|
|
|
|
<Command>
|
2009-05-03 08:40:59 +02:00
|
|
|
|
|
|
|
[Efi-Image.UEFI_OPTIONROM]
|
|
|
|
<InputFile>
|
|
|
|
?.efi, ?.EFI, ?.Efi
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(BIN_DIR)(+)$(MODULE_NAME).rom
|
|
|
|
|
|
|
|
<Command>
|
2009-05-05 09:31:56 +02:00
|
|
|
$(OPTROM) -i $(PCI_DEVICE_ID) -f $(PCI_VENDOR_ID) -l $(PCI_CLASS_CODE) -r $(PCI_REVISION) -o $dst $(OPTROM_FLAGS) $src
|
2009-05-03 08:40:59 +02:00
|
|
|
|
2009-11-09 12:47:35 +01:00
|
|
|
[Unicode-Text-File.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
*.uni, *.Uni, *.UNI
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)StrDefs.hpk
|
|
|
|
$(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
|
|
|
|
[Visual-Form-Representation-File.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
?.vfr
|
|
|
|
?.Vfr
|
|
|
|
?.VFR
|
|
|
|
|
|
|
|
<ExtraDependency>
|
|
|
|
$(MAKE_FILE)
|
|
|
|
|
|
|
|
<OutputFile>
|
|
|
|
$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.hpk
|
|
|
|
|
|
|
|
<Command>
|
|
|
|
-$(MD) $(OUTPUT_DIR)(+)${s_dir} > NUL 2>&1
|
|
|
|
"$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
-$(MD) $(OUTPUT_DIR)(+)${s_dir} > NUL 2>&1
|
|
|
|
"$(VFR)" $(VFR_FLAGS) --create-ifr-package --output-directory $(OUTPUT_DIR)(+)${s_dir} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i
|
|
|
|
|
|
|
|
[Hii-Binary-Package.UEFI_HII]
|
|
|
|
<InputFile>
|
|
|
|
*.hpk
|
|
|
|
|
2010-10-11 08:26:52 +02:00
|
|
|
<OutputFile.MSFT, OutputFile.INTEL, OutputFile.GCC>
|
2009-11-09 12:47:35 +01:00
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.lib
|
|
|
|
|
2010-10-11 08:26:52 +02:00
|
|
|
<OutputFile.XCODE, OutputFile.RVCT, OutputFile.ARMGCC>
|
|
|
|
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
|
|
|
|
|
2009-11-09 12:47:35 +01:00
|
|
|
<Command.MSFT, Command.INTEL>
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiipackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
|
2009-11-09 12:47:35 +01:00
|
|
|
"$(RC)" /Fo${dst} $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
|
|
|
|
|
|
|
|
<Command.GCC>
|
2010-09-06 03:58:00 +02:00
|
|
|
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
|
2009-12-29 07:16:53 +01:00
|
|
|
"$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}
|
2010-10-11 08:26:52 +02:00
|
|
|
|
|
|
|
<Command.XCODE, Command.RVCT, Command.ARMGCC>
|
|
|
|
GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES)
|
|
|
|
|
|
|
|
|