Sync EDKII BaseTools to BaseTools project r1913.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10193 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2010-03-04 11:57:31 +00:00
parent 5a15736588
commit c69f724df0
55 changed files with 1057 additions and 601 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,23 +1,35 @@
## @file
all: subdirs # Windows makefile for Base Tools project build.
#
LANGUAGES = C Python # Copyright (c) 2009 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES))) # are licensed and made available under the terms and conditions of the BSD License
SUBDIRS := $(SOURCE_SUBDIRS) Tests # which accompanies this distribution. The full text of the license may be found at
CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS))) # http://opensource.org/licenses/bsd-license.php
#
.PHONY: subdirs $(SUBDIRS) # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
subdirs: $(SUBDIRS) # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
$(SUBDIRS): #
$(MAKE) -C $@
all: subdirs
.PHONY: $(CLEAN_SUBDIRS)
$(CLEAN_SUBDIRS): LANGUAGES = C Python
-$(MAKE) -C $(@:-clean=) clean
SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))
clean: $(CLEAN_SUBDIRS) SUBDIRS := $(SOURCE_SUBDIRS) Tests
CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))
test:
@$(MAKE) -C Tests .PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: $(CLEAN_SUBDIRS)
$(CLEAN_SUBDIRS):
-$(MAKE) -C $(@:-clean=) clean
clean: $(CLEAN_SUBDIRS)
test:
@$(MAKE) -C Tests

View File

@ -1,22 +1,34 @@
## @file
SUBDIRS = Source\C Source\Python # Windows makefile for Base Tools project build.
#
all: c python # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
c : # are licensed and made available under the terms and conditions of the BSD License
@Source\C\Makefiles\NmakeSubdirs.bat all Source\C # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
python: #
@Source\C\Makefiles\NmakeSubdirs.bat all Source\Python # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
subdirs: $(SUBDIRS) #
@Source\C\Makefiles\NmakeSubdirs.bat all $**
SUBDIRS = Source\C Source\Python
.PHONY: clean
clean: all: c python
@Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)
c :
.PHONY: cleanall @Source\C\Makefiles\NmakeSubdirs.bat all Source\C
cleanall:
@Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS) python:
@Source\C\Makefiles\NmakeSubdirs.bat all Source\Python
subdirs: $(SUBDIRS)
@Source\C\Makefiles\NmakeSubdirs.bat all $**
.PHONY: clean
clean:
@Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)
.PHONY: cleanall
cleanall:
@Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'BootSectImage' module build.
#
APPNAME = BootSectImage # Copyright (c) 2009 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = bootsectimage.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = BootSectImage
LIBS = -lCommon
OBJECTS = bootsectimage.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'BootSectImage' module build.
APPNAME = BootSectImage #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = BootSectImage.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = BootSectImage
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = BootSectImage.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,28 +1,40 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'Common' module build.
#
# VPATH = .. # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBNAME = Common # 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
OBJECTS = \ # http://opensource.org/licenses/bsd-license.php
BasePeCoff.o \ #
BinderFuncs.o \ # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
CommonLib.o \ # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Crc32.o \ #
Decompress.o \ ARCH ?= IA32
EfiCompress.o \ MAKEROOT ?= ..
EfiUtilityMsgs.o \
FirmwareVolumeBuffer.o \ # VPATH = ..
FvLib.o \
MemoryFile.o \ LIBNAME = Common
MyAlloc.o \
OsPath.o \ OBJECTS = \
ParseGuidedSectionTools.o \ BasePeCoff.o \
ParseInf.o \ BinderFuncs.o \
PeCoffLoaderEx.o \ CommonLib.o \
SimpleFileParsing.o \ Crc32.o \
StringFuncs.o \ Decompress.o \
TianoCompress.o EfiCompress.o \
EfiUtilityMsgs.o \
include $(MAKEROOT)/Makefiles/lib.makefile FirmwareVolumeBuffer.o \
FvLib.o \
MemoryFile.o \
MyAlloc.o \
OsPath.o \
ParseGuidedSectionTools.o \
ParseInf.o \
PeCoffLoaderEx.o \
SimpleFileParsing.o \
StringFuncs.o \
TianoCompress.o
include $(MAKEROOT)/Makefiles/lib.makefile

View File

@ -1,3 +1,15 @@
## @file
# Windows makefile for 'Common' module build.
#
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
# 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.
#
!INCLUDE ..\Makefiles\ms.common !INCLUDE ..\Makefiles\ms.common
# VPATH = .. # VPATH = ..

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'EfiLdrImage' module build.
#
APPNAME = EfiLdrImage # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = EfiLdrImage.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = EfiLdrImage
LIBS = -lCommon
OBJECTS = EfiLdrImage.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'EfiLdrImage' module build.
APPNAME = EfiLdrImage #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = EfiLdrImage.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = EfiLdrImage
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = EfiLdrImage.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'EfiRom' module build.
#
APPNAME = EfiRom # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = EfiRom.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = EfiRom
LIBS = -lCommon
OBJECTS = EfiRom.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'EfiRom' module build.
APPNAME = EfiRom #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = EfiRom.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = EfiRom
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = EfiRom.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,7 +1,7 @@
## @file ## @file
# GNU Make makefile for BaseTools/Source/C. # GNU Make makefile for C tools build.
# #
# Copyright (c) 2007 - 2009, Intel Corporation # Copyright (c) 2007 - 2010, Intel Corporation
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenBootSector' module build.
APPNAME = GenBootSector #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenBootSector.obj GetDrvNumOffset.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenBootSector
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenBootSector.obj GetDrvNumOffset.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenCrc32' module build.
#
APPNAME = GenCrc32 # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = GenCrc32.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = GenCrc32
LIBS = -lCommon
OBJECTS = GenCrc32.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenCrc32' module build.
APPNAME = GenCrc32 #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenCrc32.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenCrc32
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenCrc32.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,11 +1,23 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenFfs' module build.
#
APPNAME = GenFfs # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
OBJECTS = GenFfs.o # 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
include $(MAKEROOT)/Makefiles/app.makefile # http://opensource.org/licenses/bsd-license.php
#
LIBS = -lCommon # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = GenFfs
OBJECTS = GenFfs.o
include $(MAKEROOT)/Makefiles/app.makefile
LIBS = -lCommon

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenFfs' module build.
APPNAME = GenFfs #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenFfs.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenFfs
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenFfs.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,18 +1,30 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenFv' module build.
#
APPNAME = GenFv # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
OBJECTS = GenFv.o GenFvInternalLib.o # 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
include $(MAKEROOT)/Makefiles/app.makefile # http://opensource.org/licenses/bsd-license.php
#
LIBS = -lCommon # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
ifeq ($(CYGWIN), CYGWIN) # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
LIBS += -L/lib/e2fsprogs -luuid #
endif ARCH ?= IA32
MAKEROOT ?= ..
ifeq ($(LINUX), Linux)
LIBS += -luuid APPNAME = GenFv
endif
OBJECTS = GenFv.o GenFvInternalLib.o
include $(MAKEROOT)/Makefiles/app.makefile
LIBS = -lCommon
ifeq ($(CYGWIN), CYGWIN)
LIBS += -L/lib/e2fsprogs -luuid
endif
ifeq ($(LINUX), Linux)
LIBS += -luuid
endif

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenFv' module build.
APPNAME = GenFv #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib RpcRT4.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenFv.obj GenFvInternalLib.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenFv
LIBS = $(LIB_PATH)\Common.lib RpcRT4.lib
OBJECTS = GenFv.obj GenFvInternalLib.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,18 +1,30 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenFw' module build.
#
APPNAME = GenFw # Copyright (c) 2009 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
OBJECTS = GenFw.o # 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
include $(MAKEROOT)/Makefiles/app.makefile # http://opensource.org/licenses/bsd-license.php
#
LIBS = -lCommon # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
ifeq ($(CYGWIN), CYGWIN) # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
LIBS += -L/lib/e2fsprogs -luuid #
endif ARCH ?= IA32
MAKEROOT ?= ..
ifeq ($(LINUX), Linux)
LIBS += -luuid APPNAME = GenFw
endif
OBJECTS = GenFw.o
include $(MAKEROOT)/Makefiles/app.makefile
LIBS = -lCommon
ifeq ($(CYGWIN), CYGWIN)
LIBS += -L/lib/e2fsprogs -luuid
endif
ifeq ($(LINUX), Linux)
LIBS += -luuid
endif

View File

@ -1,12 +1,24 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenFw' module build.
APPNAME = GenFw #
# Copyright (c) 2009 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenFw.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
!INCLUDE ..\Makefiles\ms.app # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenFw
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenFw.obj
#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenPage' module build.
#
APPNAME = GenPage # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = GenPage.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = GenPage
LIBS = -lCommon
OBJECTS = GenPage.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenPage' module build.
APPNAME = GenPage #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenPage.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenPage
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenPage.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,18 +1,30 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenSec' module build.
#
APPNAME = GenSec # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
OBJECTS = GenSec.o # 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
include $(MAKEROOT)/Makefiles/app.makefile # http://opensource.org/licenses/bsd-license.php
#
LIBS = -lCommon # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
ifeq ($(CYGWIN), CYGWIN) # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
LIBS += -L/lib/e2fsprogs -luuid #
endif ARCH ?= IA32
MAKEROOT ?= ..
ifeq ($(LINUX), Linux)
LIBS += -luuid APPNAME = GenSec
endif
OBJECTS = GenSec.o
include $(MAKEROOT)/Makefiles/app.makefile
LIBS = -lCommon
ifeq ($(CYGWIN), CYGWIN)
LIBS += -L/lib/e2fsprogs -luuid
endif
ifeq ($(LINUX), Linux)
LIBS += -luuid
endif

View File

@ -1,12 +1,24 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenSec' module build.
APPNAME = GenSec #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenSec.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
!INCLUDE ..\Makefiles\ms.app # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenSec
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenSec.obj
#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GenVtf' module build.
#
APPNAME = GenVtf # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = GenVtf.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = GenVtf
LIBS = -lCommon
OBJECTS = GenVtf.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'GenVtf' module build.
APPNAME = GenVtf #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = GenVtf.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = GenVtf
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = GenVtf.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'GnuGenBootSector' module build.
#
APPNAME = GnuGenBootSector # Copyright (c) 2009 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = GnuGenBootSector.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = GnuGenBootSector
LIBS = -lCommon
OBJECTS = GnuGenBootSector.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,61 +1,73 @@
ARCH = IA32 ## @file
# Windows makefile for C tools build.
!INCLUDE Makefiles\ms.common #
# Copyright (c) 2009 - 2010, Intel Corporation<BR>
LIBRARIES = Common # All rights reserved. This program and the accompanying materials
APPLICATIONS = \ # are licensed and made available under the terms and conditions of the BSD License
BootSectImage \ # which accompanies this distribution. The full text of the license may be found at
EfiLdrImage \ # http://opensource.org/licenses/bsd-license.php
EfiRom \ #
GenBootSector \ # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
GenCrc32 \ # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
GenFfs \ #
GenFv \ ARCH = IA32
GenFw \
GenPage \ !INCLUDE Makefiles\ms.common
GenSec \
GenVtf \ LIBRARIES = Common
LzmaCompress \ APPLICATIONS = \
Split \ BootSectImage \
TianoCompress \ EfiLdrImage \
VolInfo \ EfiRom \
VfrCompile GenBootSector \
GenCrc32 \
all: libs apps install GenFfs \
GenFv \
libs: $(LIBRARIES) GenFw \
@echo. GenPage \
@echo ###################### GenSec \
@echo # Build libraries GenVtf \
@echo ###################### LzmaCompress \
@if not exist $(LIB_PATH) mkdir $(LIB_PATH) Split \
@Makefiles\NmakeSubdirs.bat all $** TianoCompress \
VolInfo \
apps: $(APPLICATIONS) VfrCompile
@echo.
@echo ###################### all: libs apps install
@echo # Build executables
@echo ###################### libs: $(LIBRARIES)
@if not exist $(BIN_PATH) mkdir $(BIN_PATH) @echo.
@Makefiles\NmakeSubdirs.bat all $** @echo ######################
@echo # Build libraries
install: $(LIB_PATH) $(BIN_PATH) @echo ######################
@echo. @if not exist $(LIB_PATH) mkdir $(LIB_PATH)
@echo ###################### @Makefiles\NmakeSubdirs.bat all $**
@echo # Install to $(SYS_LIB_PATH)
@echo # Install to $(SYS_BIN_PATH) apps: $(APPLICATIONS)
@echo ###################### @echo.
@-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1 @echo ######################
@-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1 @echo # Build executables
@echo ######################
.PHONY: clean @if not exist $(BIN_PATH) mkdir $(BIN_PATH)
clean: @Makefiles\NmakeSubdirs.bat all $**
@Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)
install: $(LIB_PATH) $(BIN_PATH)
.PHONY: cleanall @echo.
cleanall: @echo ######################
@Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS) @echo # Install to $(SYS_LIB_PATH)
@del /f /q $(BIN_PATH)\*.pdb $(BIN_PATH)\*.ilk @echo # Install to $(SYS_BIN_PATH)
@echo ######################
!INCLUDE Makefiles\ms.rule @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1
@-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
.PHONY: clean
clean:
@Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)
.PHONY: cleanall
cleanall:
@Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS)
@del /f /q $(BIN_PATH)\*.pdb $(BIN_PATH)\*.ilk
!INCLUDE Makefiles\ms.rule

View File

@ -1,12 +1,24 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'Split' module build.
#
APPNAME = Split # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
OBJECTS = Split.o # 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
include $(MAKEROOT)/Makefiles/app.makefile # http://opensource.org/licenses/bsd-license.php
#
LIBS = -lCommon # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = Split
OBJECTS = Split.o
include $(MAKEROOT)/Makefiles/app.makefile
LIBS = -lCommon

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'Split' module build.
APPNAME = Split #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = Split.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = Split
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = Split.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,10 +1,22 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'TianoCompress' module build.
#
APPNAME = TianoCompress # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = -lCommon # 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
OBJECTS = TianoCompress.o # http://opensource.org/licenses/bsd-license.php
#
include $(MAKEROOT)/Makefiles/app.makefile # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = TianoCompress
LIBS = -lCommon
OBJECTS = TianoCompress.o
include $(MAKEROOT)/Makefiles/app.makefile

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'TianoCompress' module build.
APPNAME = TianoCompress #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = TianoCompress.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = TianoCompress
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = TianoCompress.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,53 +1,65 @@
## @file
ARCH ?= IA32 # Windows makefile for 'VfrCompile' module build.
MAKEROOT ?= .. #
# Copyright (c) 2008 - 2010, Intel Corporation<BR>
APPNAME = VfrCompile # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
LIBS = -lCommon # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
TOOL_INCLUDE = -I Pccts/h #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
#OBJECTS = VfrSyntax.o VfrServices.o DLGLexer.o EfiVfrParser.o ATokenBuffer.o DLexerBase.o AParser.o # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
OBJECTS = AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o \ #
VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o
ARCH ?= IA32
VFR_CPPFLAGS = -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS) MAKEROOT ?= ..
LINKER = $(CXX) APPNAME = VfrCompile
EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h LIBS = -lCommon
include $(MAKEROOT)/Makefiles/app.makefile TOOL_INCLUDE = -I Pccts/h
VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g #OBJECTS = VfrSyntax.o VfrServices.o DLGLexer.o EfiVfrParser.o ATokenBuffer.o DLexerBase.o AParser.o
Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g OBJECTS = AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o \
VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o
VfrLexer.cpp VfrLexer.h: Pccts/dlg/dlg VfrParser.dlg
Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg VFR_CPPFLAGS = -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS)
Pccts/antlr/antlr: LINKER = $(CXX)
BIN_DIR='.' make -C Pccts/antlr
EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h
Pccts/dlg/dlg:
BIN_DIR='.' make -C Pccts/dlg include $(MAKEROOT)/Makefiles/app.makefile
ATokenBuffer.o: Pccts/h/ATokenBuffer.cpp VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
DLexerBase.o: Pccts/h/DLexerBase.cpp VfrLexer.cpp VfrLexer.h: Pccts/dlg/dlg VfrParser.dlg
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg
AParser.o: Pccts/h/AParser.cpp Pccts/antlr/antlr:
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ BIN_DIR='.' make -C Pccts/antlr
VfrSyntax.o: VfrSyntax.cpp Pccts/dlg/dlg:
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ BIN_DIR='.' make -C Pccts/dlg
clean: localClean ATokenBuffer.o: Pccts/h/ATokenBuffer.cpp
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
localClean:
BIN_DIR='.' make -C Pccts/antlr clean DLexerBase.o: Pccts/h/DLexerBase.cpp
BIN_DIR='.' make -C Pccts/dlg clean $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
rm -f $(EXTRA_CLEAN_OBJECTS)
AParser.o: Pccts/h/AParser.cpp
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
VfrSyntax.o: VfrSyntax.cpp
$(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@
clean: localClean
localClean:
BIN_DIR='.' make -C Pccts/antlr clean
BIN_DIR='.' make -C Pccts/dlg clean
rm -f $(EXTRA_CLEAN_OBJECTS)

View File

@ -1,44 +1,56 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'VfrCompile' module build.
CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG #
APPNAME = VfrCompile # Copyright (c) 2008 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
LIBS = $(LIB_PATH)\Common.lib # 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
OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \ # http://opensource.org/licenses/bsd-license.php
EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \ #
VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h #
!INCLUDE ..\Makefiles\ms.common
!INCLUDE ..\Makefiles\ms.app
CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG
VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g APPNAME = VfrCompile
pushd . & cd Pccts & $(MAKE) & popd
antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g LIBS = $(LIB_PATH)\Common.lib
# pushd . & cd Pccts & $(MAKE) clean
OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \
VfrLexer.cpp VfrLexer.h: VfrParser.dlg EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \
dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj
ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h
$(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@
!INCLUDE ..\Makefiles\ms.app
DLexerBase.obj: Pccts\h\DLexerBase.cpp
$(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g
pushd . & cd Pccts & $(MAKE) & popd
AParser.obj: Pccts\h\AParser.cpp antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
$(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ # pushd . & cd Pccts & $(MAKE) clean
EXTRA_CLEAN_OBJECTS = VfrParser.dlg EfiVfrParser.cpp EfiVfrParser.h \ VfrLexer.cpp VfrLexer.h: VfrParser.dlg
VfrLexer.cpp VfrLexer.h \ dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg
VfrSyntax.cpp VfrTokens.h
ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp
clean: localClean $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@
cleanall: localClean localCleanall
DLexerBase.obj: Pccts\h\DLexerBase.cpp
localClean: $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@
-DEL $(EXTRA_CLEAN_OBJECTS)
AParser.obj: Pccts\h\AParser.cpp
localCleanall: $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@
pushd . & cd Pccts & $(MAKE) cleanall & popd
EXTRA_CLEAN_OBJECTS = VfrParser.dlg EfiVfrParser.cpp EfiVfrParser.h \
VfrLexer.cpp VfrLexer.h \
VfrSyntax.cpp VfrTokens.h
clean: localClean
cleanall: localClean localCleanall
localClean:
-DEL $(EXTRA_CLEAN_OBJECTS)
localCleanall:
pushd . & cd Pccts & $(MAKE) cleanall & popd

View File

@ -1,12 +1,24 @@
ARCH ?= IA32 ## @file
MAKEROOT ?= .. # Windows makefile for 'VolInfo' module build.
#
APPNAME = VolInfo # Copyright (c) 2007 - 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
OBJECTS = VolInfo.o # 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
include $(MAKEROOT)/Makefiles/app.makefile # http://opensource.org/licenses/bsd-license.php
#
LIBS = -lCommon # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32
MAKEROOT ?= ..
APPNAME = VolInfo
OBJECTS = VolInfo.o
include $(MAKEROOT)/Makefiles/app.makefile
LIBS = -lCommon

View File

@ -1,10 +1,22 @@
!INCLUDE ..\Makefiles\ms.common ## @file
# Windows makefile for 'VolInfo' module build.
APPNAME = VolInfo #
# Copyright (c) 2007 - 2010, Intel Corporation<BR>
LIBS = $(LIB_PATH)\Common.lib # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
OBJECTS = VolInfo.obj # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
!INCLUDE ..\Makefiles\ms.app #
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common
APPNAME = VolInfo
LIBS = $(LIB_PATH)\Common.lib
OBJECTS = VolInfo.obj
!INCLUDE ..\Makefiles\ms.app

View File

@ -1,6 +1,18 @@
## @file
all: # Windows makefile for Python tools build.
#
clean: # Copyright (c) 2007 - 2010, Intel Corporation<BR>
find . -name '*.pyc' -exec rm '{}' ';' # 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.
#
all:
clean:
find . -name '*.pyc' -exec rm '{}' ';'

View File

@ -1,16 +1,28 @@
## @file
!IFNDEF PYTHON_FREEZER_PATH # Windows makefile for Python tools build.
!ERROR PYTHON_FREEZER_PATH must be defined! #
!ENDIF # Copyright (c) 2010, Intel Corporation<BR>
# All rights reserved. This program and the accompanying materials
FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe # 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
MODULES=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8,encodings.utf_16_le,encodings.latin_1 # http://opensource.org/licenses/bsd-license.php
#
BIN_DIR=$(EDK_TOOLS_PATH)\Bin\Win32 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
APPLICATIONS=$(BIN_DIR)\build.exe $(BIN_DIR)\GenFds.exe $(BIN_DIR)\Trim.exe $(BIN_DIR)\MigrationMsa2Inf.exe $(BIN_DIR)\Fpd2Dsc.exe $(BIN_DIR)\TargetTool.exe $(BIN_DIR)\spd2dec.exe $(BIN_DIR)\GenDepex.exe $(BIN_DIR)\GenPatchPcdTable.exe $(BIN_DIR)\PatchPcdValue.exe
!IFNDEF PYTHON_FREEZER_PATH
!ERROR PYTHON_FREEZER_PATH must be defined!
!ENDIF
FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe
MODULES=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8,encodings.utf_16_le,encodings.latin_1
BIN_DIR=$(EDK_TOOLS_PATH)\Bin\Win32
APPLICATIONS=$(BIN_DIR)\build.exe $(BIN_DIR)\GenFds.exe $(BIN_DIR)\Trim.exe $(BIN_DIR)\MigrationMsa2Inf.exe $(BIN_DIR)\Fpd2Dsc.exe $(BIN_DIR)\TargetTool.exe $(BIN_DIR)\spd2dec.exe $(BIN_DIR)\GenDepex.exe $(BIN_DIR)\GenPatchPcdTable.exe $(BIN_DIR)\PatchPcdValue.exe
COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \ COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \
$(BASE_TOOLS_PATH)\Source\Python\Common\Database.py \ $(BASE_TOOLS_PATH)\Source\Python\Common\Database.py \
@ -53,25 +65,25 @@ COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \
$(BASE_TOOLS_PATH)\Source\Python\Autogen\__init__.py $(BASE_TOOLS_PATH)\Source\Python\Autogen\__init__.py
all: SetPythonPath $(APPLICATIONS) all: SetPythonPath $(APPLICATIONS)
SetPythonPath: SetPythonPath:
set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\Python set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\Python
$(BIN_DIR)\build.exe: $(BASE_TOOLS_PATH)\Source\Python\build\build.py $(COMMON_PYTHON) $(BIN_DIR)\build.exe: $(BASE_TOOLS_PATH)\Source\Python\build\build.py $(COMMON_PYTHON)
@pushd . & @cd build & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) build.py & @popd @pushd . & @cd build & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) build.py & @popd
$(BIN_DIR)\GenFds.exe: $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py $(COMMON_PYTHON) $(BIN_DIR)\GenFds.exe: $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py $(COMMON_PYTHON)
@pushd . & @cd GenFds & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenFds.py & @popd @pushd . & @cd GenFds & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenFds.py & @popd
$(BIN_DIR)\Trim.exe: $(BASE_TOOLS_PATH)\Source\Python\Trim\Trim.py $(COMMON_PYTHON) $(BIN_DIR)\Trim.exe: $(BASE_TOOLS_PATH)\Source\Python\Trim\Trim.py $(COMMON_PYTHON)
@pushd . & @cd Trim & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Trim.py & @popd @pushd . & @cd Trim & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Trim.py & @popd
$(BIN_DIR)\MigrationMsa2Inf.exe: $(BASE_TOOLS_PATH)\Source\Python\MigrationMsa2Inf\MigrationMsa2Inf.py $(BIN_DIR)\MigrationMsa2Inf.exe: $(BASE_TOOLS_PATH)\Source\Python\MigrationMsa2Inf\MigrationMsa2Inf.py
@pushd . & @cd MigrationMsa2Inf & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) MigrationMsa2Inf.py & @popd @pushd . & @cd MigrationMsa2Inf & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) MigrationMsa2Inf.py & @popd
$(BIN_DIR)\Fpd2Dsc.exe: $(BASE_TOOLS_PATH)\Source\Python\Fpd2Dsc\Fpd2Dsc.py $(COMMON_PYTHON) $(BIN_DIR)\Fpd2Dsc.exe: $(BASE_TOOLS_PATH)\Source\Python\Fpd2Dsc\Fpd2Dsc.py $(COMMON_PYTHON)
@pushd . & @cd Fpd2Dsc & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Fpd2Dsc.py & @popd @pushd . & @cd Fpd2Dsc & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Fpd2Dsc.py & @popd
$(BIN_DIR)\spd2dec.exe: $(BASE_TOOLS_PATH)\Source\Python\spd2dec\Spd2Dec.py $(COMMON_PYTHON) $(BIN_DIR)\spd2dec.exe: $(BASE_TOOLS_PATH)\Source\Python\spd2dec\Spd2Dec.py $(COMMON_PYTHON)
@pushd . & @cd Spd2Dec & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Spd2Dec.py & @popd @pushd . & @cd Spd2Dec & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Spd2Dec.py & @popd
@ -82,14 +94,14 @@ $(BIN_DIR)\GenDepex.exe: $(BASE_TOOLS_PATH)\Source\Python\AutoGen\GenDepex.py $(
$(BIN_DIR)\TargetTool.exe: $(BASE_TOOLS_PATH)\Source\Python\TargetTool\TargetTool.py $(COMMON_PYTHON) $(BIN_DIR)\TargetTool.exe: $(BASE_TOOLS_PATH)\Source\Python\TargetTool\TargetTool.py $(COMMON_PYTHON)
@pushd . & @cd TargetTool & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) TargetTool.py & @popd @pushd . & @cd TargetTool & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) TargetTool.py & @popd
$(BIN_DIR)\GenPatchPcdTable.exe: $(BASE_TOOLS_PATH)\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py $(COMMON_PYTHON) $(BIN_DIR)\GenPatchPcdTable.exe: $(BASE_TOOLS_PATH)\Source\Python\GenPatchPcdTable\GenPatchPcdTable.py $(COMMON_PYTHON)
@pushd . & @cd GenPatchPcdTable & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenPatchPcdTable.py & @popd @pushd . & @cd GenPatchPcdTable & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenPatchPcdTable.py & @popd
$(BIN_DIR)\PatchPcdValue.exe: $(BASE_TOOLS_PATH)\Source\Python\PatchPcdValue\PatchPcdValue.py $(COMMON_PYTHON) $(BIN_DIR)\PatchPcdValue.exe: $(BASE_TOOLS_PATH)\Source\Python\PatchPcdValue\PatchPcdValue.py $(COMMON_PYTHON)
@pushd . & @cd PatchPcdValue & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) PatchPcdValue.py & @popd @pushd . & @cd PatchPcdValue & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) PatchPcdValue.py & @popd
clean: clean:
cleanall: cleanall:
@del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll
@for %%i in ($(APPLICATIONS)) do @del /f /q %%i @for %%i in ($(APPLICATIONS)) do @del /f /q %%i

View File

@ -1,9 +1,21 @@
## @file
all: test # Windows makefile for 'Tests' module build.
#
test: # Copyright (c) 2009 - 2010, Intel Corporation<BR>
@python RunTests.py # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
clean: # which accompanies this distribution. The full text of the license may be found at
find . -name '*.pyc' -exec rm '{}' ';' # 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.
#
all: test
test:
@python RunTests.py
clean:
find . -name '*.pyc' -exec rm '{}' ';'