From 84255c8f8d7729b14e3ea1b17faeff3995459986 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 26 Oct 2007 08:18:08 +0000 Subject: Add some EDK build configuration files and EDK DSC file as the templates to build EDK modules. This is a temporary solution to build EDK modules (e.g. Shell applications) under EDK II environment with EDK tools in ECP. After the EDKII tools are ready to parse EDK II DSC file to build EDK INF file, these temporary build files can be safely removed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4221 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Sample/Platform/X64/Build/Makefile | 147 +++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 EdkCompatibilityPkg/Sample/Platform/X64/Build/Makefile (limited to 'EdkCompatibilityPkg/Sample/Platform/X64/Build/Makefile') diff --git a/EdkCompatibilityPkg/Sample/Platform/X64/Build/Makefile b/EdkCompatibilityPkg/Sample/Platform/X64/Build/Makefile new file mode 100644 index 0000000..bbb1ad3 --- /dev/null +++ b/EdkCompatibilityPkg/Sample/Platform/X64/Build/Makefile @@ -0,0 +1,147 @@ +#/*++ +# +# Copyright (c) 2006 - 2007, Intel Corporation +# All rights reserved. This program and the accompanying materials +# 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. +# +# Module Name: +# Makefile +# +# Abstract: +# Makefile for this build tip +# +#--*/ + +# +# Everything depends on EDK_SOURCE being set. +# +!IFNDEF EDK_SOURCE +!ERROR EDK_SOURCE environmental variable not set +!ENDIF + +!IFNDEF EDK_TOOLS_PATH +!MESSAGE EDK_TOOLS_PATH environmental variable not set, default setting used +!ENDIF + +# +# Set the processor type +# +PROCESSOR = IA32 + +# +# Define a toolchain so we can pick up the basic defines from +# the EFI tool setup file. +# +TOOLCHAIN = TOOLCHAIN_MSVC + +# +# Include the platform-specific settings file +# +!INCLUDE PlatformTools.env + +# +# Default target to create the makefiles and then build the drivers +# +all : build_tools makefiles builds + +# +# Make all the build tools by calling the makefile +# +build_tools : + -if not exist $(EDK_TOOLS_OUTPUT) mkdir $(EDK_TOOLS_OUTPUT) + -if exist $(EDK_TOOLS_BIN)\*.* copy $(EDK_TOOLS_BIN)\*.* $(EDK_TOOLS_OUTPUT) + $(MAKE) -f $(EDK_TOOLS_SOURCE)\makefile PROCESSOR=$(PROCESSOR) BUILD_DIR=$(BUILD_DIR) + $(GUIDCHK) -b $(EDK_TOOLS_OUTPUT)\GuidDatabase.txt + +PROCESSOR=X64 + +# +# Run ProcessDsc on our main description files to generate the +# makefiles and package files. Specify -v option for more verbose output. +# Specify "-xref filename" to generate a cross-reference file of +# basename-to-fileguid that can be used by VolInfo. +# +makefiles : + $(PROCESSDSC) \ + -d EFI_SOURCE=$(EDK_SOURCE) \ + -d EDK_SOURCE=$(EDK_SOURCE) \ + -d PROCESSOR=$(PROCESSOR) \ + -d PROJECT_NAME=$(PROJECT_NAME) \ + -d PROJECT_FAMILY=$(PROJECT_FAMILY) \ + -d UEFI_PREFIX=$(UEFI_PREFIX) \ + -d PI_PREFIX=$(PI_PREFIX) \ + -d COMPRESS_METHOD=$(COMPRESS_METHOD) \ + -d OEMTOOLPATH=$(EDK_TOOLS_OUTPUT) \ + -g $(EDK_TOOLS_OUTPUT)\GuidDatabase.txt \ + $(PROJECT_NAME).dsc + +# +# Call all the makefiles that were generated by ProcessDsc. ProcessDsc +# creates the makefile.out that calls all the component makefiles. +# +builds : + $(MAKE) -f makefile.out libraries + $(MAKE) -f makefile.out components + +# +# Define a pseudo-target to start building with the libraries or with the +# components. +# +libraries : + $(MAKE) -f makefile.out libraries + +components : + $(MAKE) -f makefile.out components + +# +# Create a target to clean up all build directories +# +clean : + - @if exist vc??.* del vc??.* > NUL + - @if exist *.bak del *.bak > NUL + - @if exist ia32 rd /s/q ia32 > NUL + - @if exist ipf rd /s /q ipf > NUL + - @if exist ebc rd /s /q ebc > NUL + - @if exist x64 rd /s /q x64 > NUL + - @if exist fv rd /s /q fv > NUL + - @if exist Tools rd /s /q Tools > NUL + - @if exist makefile.out del makefile.out > NUL + - @if exist module.* del module.* > NUL + - @echo All targets cleaned + +# +# Clean up all build directories except for tools. +# +cleanbuilds : + - @if exist *.bak del *.bak > NUL + - @if exist ia32 rd /s/q ia32 > NUL + - @if exist ipf rd /s /q ipf > NUL + - @if exist ebc rd /s /q ebc > NUL + - @if exist x64 rd /s /q x64 > NUL + - @if exist fv rd /s /q fv > NUL + - @if exist makefile.out del makefile.out > NUL + - @if exist module.* del module.* > NUL + - @echo All modules cleaned + +# +# Clean up only the tools +# +cleantools : + - @if exist vc??.* del vc??.* > NUL + - @if exist Tools rd /s /q Tools > NUL + - @echo All tools cleaned + +# +# Rebuild target, clean and build all +# +rebuild : clean all + +# +# cleanall target to clean all build directories. +# +cleanall : clean -- cgit v1.1