ArmPlatformPkg/Scripts: Fixed the Makefile for Windows

This is the Makefile for the Windows version of Eclipse (use
MingW for Unix 'emulation').

Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13886 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin 2012-10-29 14:54:21 +00:00
parent f7a5d58c57
commit 25328e4354
1 changed files with 4 additions and 5 deletions

View File

@ -25,8 +25,8 @@ ifeq ($(EDK2_DSC),"")
endif
ifeq ("$(OS)","Windows_NT")
WORKSPACE?=$(PWD)
EDK_TOOLS_PATH ?= $(WORKSPACE)\BaseTools
export WORKSPACE?=$(PWD)
export EDK_TOOLS_PATH ?= $(WORKSPACE)\BaseTools
endif
SHELL := /bin/bash
@ -41,8 +41,7 @@ EDK2_CONF = Conf/BuildEnv.sh Conf/build_rule.txt Conf/target.txt Conf/tools_def.
all: $(EDK2_CONF)
ifeq ("$(OS)","Windows_NT")
echo %PATH%
build -a $(EDK2_ARCH) -p $(EDK2_PKG) -t $(EDK2_TOOLCHAIN) -b $(EDK2_BUILD) $(EDK2_MACROS)
build -a $(EDK2_ARCH) -p $(EDK2_DSC) -t $(EDK2_TOOLCHAIN) -b $(EDK2_BUILD) $(EDK2_MACROS)
else
. ./edksetup.sh `pwd`/BaseTools; build -a $(EDK2_ARCH) -p $(EDK2_DSC) -t $(EDK2_TOOLCHAIN) -b $(EDK2_BUILD) $(EDK2_MACROS)
endif
@ -59,7 +58,7 @@ endif
clean:
ifeq ("$(OS)","Windows_NT")
build -a $(EDK2_ARCH) -p $(EDK2_PKG) -t $(EDK2_TOOLCHAIN) -b $(EDK2_BUILD) $(EDK2_MACROS) cleanall
build -a $(EDK2_ARCH) -p $(EDK2_DSC) -t $(EDK2_TOOLCHAIN) -b $(EDK2_BUILD) $(EDK2_MACROS) cleanall
else
. ./edksetup.sh `pwd`/BaseTools; build -a $(EDK2_ARCH) -p $(EDK2_DSC) -t $(EDK2_TOOLCHAIN) -b $(EDK2_BUILD) $(EDK2_MACROS) cleanall; \
rm -Rf $(EDK2_CONF) Conf/.cache