From c69f724df0f9e53b2c29f10e1eae3c784749e8da Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 4 Mar 2010 11:57:31 +0000 Subject: [PATCH] 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 --- BaseTools/Bin/Win32/BootSectImage.exe | Bin 393216 -> 393216 bytes BaseTools/Bin/Win32/EfiLdrImage.exe | Bin 421888 -> 421888 bytes BaseTools/Bin/Win32/EfiRom.exe | Bin 446464 -> 446464 bytes BaseTools/Bin/Win32/GenBootSector.exe | Bin 425984 -> 425984 bytes BaseTools/Bin/Win32/GenCrc32.exe | Bin 425984 -> 425984 bytes BaseTools/Bin/Win32/GenFfs.exe | Bin 430080 -> 430080 bytes BaseTools/Bin/Win32/GenFv.exe | Bin 475136 -> 475136 bytes BaseTools/Bin/Win32/GenFw.exe | Bin 479232 -> 479232 bytes BaseTools/Bin/Win32/GenPage.exe | Bin 421888 -> 421888 bytes BaseTools/Bin/Win32/GenSec.exe | Bin 446464 -> 446464 bytes BaseTools/Bin/Win32/GenVtf.exe | Bin 446464 -> 446464 bytes BaseTools/Bin/Win32/LzmaCompress.exe | Bin 397312 -> 397312 bytes BaseTools/Bin/Win32/Split.exe | Bin 425984 -> 425984 bytes BaseTools/Bin/Win32/TianoCompress.exe | Bin 434176 -> 434176 bytes BaseTools/Bin/Win32/VfrCompile.exe | Bin 1183744 -> 1183744 bytes BaseTools/Bin/Win32/VolInfo.exe | Bin 471040 -> 471040 bytes BaseTools/GNUmakefile | 58 +++++--- BaseTools/Makefile | 56 +++++--- BaseTools/Source/C/BootSectImage/GNUmakefile | 32 +++-- BaseTools/Source/C/BootSectImage/Makefile | 32 +++-- BaseTools/Source/C/Common/GNUmakefile | 68 +++++---- BaseTools/Source/C/Common/Makefile | 12 ++ BaseTools/Source/C/EfiLdrImage/GNUmakefile | 32 +++-- BaseTools/Source/C/EfiLdrImage/Makefile | 32 +++-- BaseTools/Source/C/EfiRom/GNUmakefile | 32 +++-- BaseTools/Source/C/EfiRom/Makefile | 32 +++-- BaseTools/Source/C/GNUmakefile | 4 +- BaseTools/Source/C/GenBootSector/Makefile | 32 +++-- BaseTools/Source/C/GenCrc32/GNUmakefile | 32 +++-- BaseTools/Source/C/GenCrc32/Makefile | 32 +++-- BaseTools/Source/C/GenFfs/GNUmakefile | 34 +++-- BaseTools/Source/C/GenFfs/Makefile | 32 +++-- BaseTools/Source/C/GenFv/GNUmakefile | 48 ++++--- BaseTools/Source/C/GenFv/Makefile | 32 +++-- BaseTools/Source/C/GenFw/GNUmakefile | 48 ++++--- BaseTools/Source/C/GenFw/Makefile | 36 +++-- BaseTools/Source/C/GenPage/GNUmakefile | 32 +++-- BaseTools/Source/C/GenPage/Makefile | 32 +++-- BaseTools/Source/C/GenSec/GNUmakefile | 48 ++++--- BaseTools/Source/C/GenSec/Makefile | 36 +++-- BaseTools/Source/C/GenVtf/GNUmakefile | 32 +++-- BaseTools/Source/C/GenVtf/Makefile | 32 +++-- .../Source/C/GnuGenBootSector/GNUmakefile | 32 +++-- BaseTools/Source/C/Makefile | 134 ++++++++++-------- BaseTools/Source/C/Split/GNUmakefile | 36 +++-- BaseTools/Source/C/Split/Makefile | 32 +++-- BaseTools/Source/C/TianoCompress/GNUmakefile | 32 +++-- BaseTools/Source/C/TianoCompress/Makefile | 32 +++-- BaseTools/Source/C/VfrCompile/GNUmakefile | 118 ++++++++------- BaseTools/Source/C/VfrCompile/Makefile | 100 +++++++------ BaseTools/Source/C/VolInfo/GNUmakefile | 36 +++-- BaseTools/Source/C/VolInfo/Makefile | 32 +++-- BaseTools/Source/Python/GNUmakefile | 24 +++- BaseTools/Source/Python/Makefile | 92 ++++++------ BaseTools/Tests/GNUmakefile | 30 ++-- 55 files changed, 1057 insertions(+), 601 deletions(-) diff --git a/BaseTools/Bin/Win32/BootSectImage.exe b/BaseTools/Bin/Win32/BootSectImage.exe index cb7cf6a44c338cc13bf3fd1ca8ba8083d1dda715..9d041086254b550530642262ce5b5bb9b66d6021 100755 GIT binary patch delta 59 zcmZo@kZ5R-nDBt<^UTIat&bR6A2GE)V&3|QX@! delta 59 zcmZo@kZ5R-nDBt9OsVlv>m$b2M@+4cn72M+`2-T$e(fO(-yVVgcGf)Sc;&tJ+^;*i P?_K<}?O*1y@+1KOJqjFx diff --git a/BaseTools/Bin/Win32/EfiLdrImage.exe b/BaseTools/Bin/Win32/EfiLdrImage.exe index 558b09a694fe57ed9b024a7ce9c6573415bc33ff..cc1bbd5cacfc0d8f60e7f6b8b6282dd5b73bab3d 100755 GIT binary patch delta 62 zcmV-E0Kxx&;2D768Ia%t_nCp>h2jB);sS-@1BK!Qwc-WxPy+Xvx7JYwzTgnW^GIwi U3$jF%mXy U=g>`*KY$v#qdH8tq%sCvJ;2BvvH$=8 diff --git a/BaseTools/Bin/Win32/EfiRom.exe b/BaseTools/Bin/Win32/EfiRom.exe index 5967c544138b80b0c8a6ebe0ef4aacbdbbd081be..02a8851b2e69073772fe40ff2819d93acb172303 100755 GIT binary patch delta 62 zcmV-E0Kxx&pc{ao8<6k<_nCq6h4KM~@&bkO1BLPgwekhxkOKFax7Lvb{@@S~uEdpK U`hZH6L?ThV4r=VTpP)>nq0AS4^$1m|I`5Y<RIx7J|=zTgl~FsGlR UEUZhEoIFKIz}Ez~q(TN diff --git a/BaseTools/Bin/Win32/GenFv.exe b/BaseTools/Bin/Win32/GenFv.exe index 1eefa3aaa36aabae3d084032c3a1e25e580345ff..897cba72957a1a7b6f01ccf064e3a25a40d05c36 100755 GIT binary patch delta 62 zcmV-E0Kxx&fE|E<9gye({h5L4h3Wx?>H>x81BL1Ywdw`x-~#=bx7OhW_TUgsH>x81BL1Ywdw`x-~y8(x7OhW_TUgn+ywYt U!v9W){2SMy6V8pd+`EC2ui diff --git a/BaseTools/Bin/Win32/GenSec.exe b/BaseTools/Bin/Win32/GenSec.exe index b3a7bc26b7007ebd6043252afac20c6a3ffc0468..e4c0407b2425ae4cda27667e32a24806dd79a27a 100755 GIT binary patch delta 62 zcmV-E0Kxx&pc{ao8<5}v|Cxc}h2jB);sS-@1BK!Qwc-WxkOKdix7LvbuHX>OPF(CS Ux7LvbuHX=6azSig UDe+3Pa$Vo!tU0>3lyU}aU8m3;`Tzg` diff --git a/BaseTools/Bin/Win32/GenVtf.exe b/BaseTools/Bin/Win32/GenVtf.exe index d0ba8e18074a7f04d17750444503987408d51b32..32f7dce991a66bda300d6423c0dcf51bc900fb1f 100755 GIT binary patch delta 62 zcmV-E0Kxx&pc{ao8<6M%0Gfg7h3Wx?>H>x81BL1Ywdw`xpaKAzx7MKrj^Pk=+VfEO UUA04%6(6tF_4)<3bb|(rOufAx;{X5v delta 62 zcmV-E0Kxx&pc{ao8<6M%m?DAdh3Wx?>H>x81BL1Ywdw`xpaPg8x7MKrj^Pl9%%DUN UzzacyoaBblMZ}Z0bb|(rOt&N+PXGV_ diff --git a/BaseTools/Bin/Win32/LzmaCompress.exe b/BaseTools/Bin/Win32/LzmaCompress.exe index f34c530eff9bf18f626dedbc963a2cedfa770b8e..425fd346a846c116adc966202682d920261ca090 100644 GIT binary patch delta 62 zcmV-E0Kxx&pcsIl7?9us1e$^3h2jB);sS-@1BK!Qwc-WxAOZxMx7HyAp0N-eWZNqV UnfpzmS$W}ws8-gugwq9lJbd~b)Bpeg delta 62 zcmV-E0Kxx&pcsIl7?9usp(26eh2jB);sS-@1BK!Qwc-WxAOfKxx7HyAp0N-F#c(6F UwsAwaymwrZwlzDqgwq9lJcr*Lc>n+a diff --git a/BaseTools/Bin/Win32/Split.exe b/BaseTools/Bin/Win32/Split.exe index 0dc4b743384c1822d240fe5708fa9a88f195e2d8..aa66468d841df2001f5b21f6fe227c67435b8f81 100755 GIT binary patch delta 62 zcmV-E0Kxx&fEs{+8j$b;1e$^Jh4KM~@&bkO1BLPgwekh>U;+f1x8`95Cg2e2QtxlE U9jZp6AJw0j4{kZP96|=U;?5dx8`95Cg2eLdD}Mv U#63f$vbc`V)aUEB96|=V!Z diff --git a/BaseTools/Bin/Win32/TianoCompress.exe b/BaseTools/Bin/Win32/TianoCompress.exe index 2789735c04d7fdac136a7c0fde388b7ea5ada7e3..aa3ded3ac356d06488276bb05eb4112bc6d124b2 100755 GIT binary patch delta 62 zcmV-E0Kxx&z#4$S8j#=u1)724h2jB);sS-@1BK!Qwc-WxfC2@Yx7L9L&fpM-pdT#o U_f|-dlRuj~57~UTv|prKv|npa_SM05?I9gwEw!Y$OeZ{@? z6;G5RP-(lH63=!wC0;%rfkWD%hbkJx-8-(b-AYh5?`}`g;{{?qAm#^Rf$b@Jf^!}M E06Kgr>i_@% delta 103 zcmZoz;L)(aW5Nrj^Gc1cT3<1?zG7;9#oYRerS%nS>npa_SM05?I9gwEw!Y$OeZ{@? z6;G5RP-(lH63=!wC0;%rfxvs~SS^G7eP{6$U79m*OHO-=9xo8{0Wm)i3v5r(6P)u9 E0A`0O+W-In diff --git a/BaseTools/Bin/Win32/VolInfo.exe b/BaseTools/Bin/Win32/VolInfo.exe index 1ce534e43b0889c1d179f8271325a33a1d02acc7..e54096b32d49b5f464d574c76d402645069adbe5 100755 GIT binary patch delta 62 zcmV-E0Kxx&;2eP99FW)o2AYA|h1vmy+5&~z1BKcIwb}&=;Q|Jlx8~smrtA=l`nic^ UxDG~?WLWH^D$p!Bh?FANm7oX!ShVYU7p&Hw-a diff --git a/BaseTools/GNUmakefile b/BaseTools/GNUmakefile index aa140439e2..881b65b4c1 100644 --- a/BaseTools/GNUmakefile +++ b/BaseTools/GNUmakefile @@ -1,23 +1,35 @@ - -all: subdirs - -LANGUAGES = C Python - -SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES))) -SUBDIRS := $(SOURCE_SUBDIRS) Tests -CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS))) - -.PHONY: subdirs $(SUBDIRS) -subdirs: $(SUBDIRS) -$(SUBDIRS): - $(MAKE) -C $@ - -.PHONY: $(CLEAN_SUBDIRS) -$(CLEAN_SUBDIRS): - -$(MAKE) -C $(@:-clean=) clean - -clean: $(CLEAN_SUBDIRS) - -test: - @$(MAKE) -C Tests - +## @file +# Windows makefile for Base Tools project build. +# +# Copyright (c) 2009 - 2010, 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. +# + +all: subdirs + +LANGUAGES = C Python + +SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES))) +SUBDIRS := $(SOURCE_SUBDIRS) Tests +CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS))) + +.PHONY: subdirs $(SUBDIRS) +subdirs: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: $(CLEAN_SUBDIRS) +$(CLEAN_SUBDIRS): + -$(MAKE) -C $(@:-clean=) clean + +clean: $(CLEAN_SUBDIRS) + +test: + @$(MAKE) -C Tests + diff --git a/BaseTools/Makefile b/BaseTools/Makefile index a16f57732c..f6efb7b6a7 100644 --- a/BaseTools/Makefile +++ b/BaseTools/Makefile @@ -1,22 +1,34 @@ - -SUBDIRS = Source\C Source\Python - -all: c python - -c : - @Source\C\Makefiles\NmakeSubdirs.bat all Source\C - -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) - +## @file +# Windows makefile for Base Tools project build. +# +# Copyright (c) 2007 - 2010, 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. +# + +SUBDIRS = Source\C Source\Python + +all: c python + +c : + @Source\C\Makefiles\NmakeSubdirs.bat all Source\C + +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) + diff --git a/BaseTools/Source/C/BootSectImage/GNUmakefile b/BaseTools/Source/C/BootSectImage/GNUmakefile index 0891060988..adf9ce5d6f 100644 --- a/BaseTools/Source/C/BootSectImage/GNUmakefile +++ b/BaseTools/Source/C/BootSectImage/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = BootSectImage - -LIBS = -lCommon - -OBJECTS = bootsectimage.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'BootSectImage' module build. +# +# Copyright (c) 2009 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = BootSectImage + +LIBS = -lCommon + +OBJECTS = bootsectimage.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/BootSectImage/Makefile b/BaseTools/Source/C/BootSectImage/Makefile index ce0c83c7b9..1c9e5fa19e 100644 --- a/BaseTools/Source/C/BootSectImage/Makefile +++ b/BaseTools/Source/C/BootSectImage/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = BootSectImage - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = BootSectImage.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'BootSectImage' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = BootSectImage + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = BootSectImage.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/Common/GNUmakefile b/BaseTools/Source/C/Common/GNUmakefile index df3108d923..172802d7ed 100644 --- a/BaseTools/Source/C/Common/GNUmakefile +++ b/BaseTools/Source/C/Common/GNUmakefile @@ -1,28 +1,40 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -# VPATH = .. - -LIBNAME = Common - -OBJECTS = \ - BasePeCoff.o \ - BinderFuncs.o \ - CommonLib.o \ - Crc32.o \ - Decompress.o \ - EfiCompress.o \ - EfiUtilityMsgs.o \ - 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 +## @file +# Windows makefile for 'Common' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +# VPATH = .. + +LIBNAME = Common + +OBJECTS = \ + BasePeCoff.o \ + BinderFuncs.o \ + CommonLib.o \ + Crc32.o \ + Decompress.o \ + EfiCompress.o \ + EfiUtilityMsgs.o \ + 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 diff --git a/BaseTools/Source/C/Common/Makefile b/BaseTools/Source/C/Common/Makefile index cdaa0065f3..017c5a63d7 100644 --- a/BaseTools/Source/C/Common/Makefile +++ b/BaseTools/Source/C/Common/Makefile @@ -1,3 +1,15 @@ +## @file +# Windows makefile for 'Common' module build. +# +# Copyright (c) 2007 - 2010, 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. +# !INCLUDE ..\Makefiles\ms.common # VPATH = .. diff --git a/BaseTools/Source/C/EfiLdrImage/GNUmakefile b/BaseTools/Source/C/EfiLdrImage/GNUmakefile index 3bf3d045a1..3c3acdb08a 100644 --- a/BaseTools/Source/C/EfiLdrImage/GNUmakefile +++ b/BaseTools/Source/C/EfiLdrImage/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = EfiLdrImage - -LIBS = -lCommon - -OBJECTS = EfiLdrImage.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'EfiLdrImage' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = EfiLdrImage + +LIBS = -lCommon + +OBJECTS = EfiLdrImage.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/EfiLdrImage/Makefile b/BaseTools/Source/C/EfiLdrImage/Makefile index 925248b910..8652a9e9bf 100644 --- a/BaseTools/Source/C/EfiLdrImage/Makefile +++ b/BaseTools/Source/C/EfiLdrImage/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = EfiLdrImage - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = EfiLdrImage.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'EfiLdrImage' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = EfiLdrImage + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = EfiLdrImage.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/EfiRom/GNUmakefile b/BaseTools/Source/C/EfiRom/GNUmakefile index 9392a6f6df..f94880cf58 100644 --- a/BaseTools/Source/C/EfiRom/GNUmakefile +++ b/BaseTools/Source/C/EfiRom/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = EfiRom - -LIBS = -lCommon - -OBJECTS = EfiRom.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'EfiRom' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = EfiRom + +LIBS = -lCommon + +OBJECTS = EfiRom.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/EfiRom/Makefile b/BaseTools/Source/C/EfiRom/Makefile index 9bf8e8aad5..c31f47ba5b 100644 --- a/BaseTools/Source/C/EfiRom/Makefile +++ b/BaseTools/Source/C/EfiRom/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = EfiRom - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = EfiRom.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'EfiRom' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = EfiRom + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = EfiRom.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile index 3b370eb4ce..263b7c520d 100644 --- a/BaseTools/Source/C/GNUmakefile +++ b/BaseTools/Source/C/GNUmakefile @@ -1,7 +1,7 @@ ## @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 # are licensed and made available under the terms and conditions of the BSD License diff --git a/BaseTools/Source/C/GenBootSector/Makefile b/BaseTools/Source/C/GenBootSector/Makefile index 90fc2fe4ad..ce6bb50b0f 100644 --- a/BaseTools/Source/C/GenBootSector/Makefile +++ b/BaseTools/Source/C/GenBootSector/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenBootSector - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenBootSector.obj GetDrvNumOffset.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenBootSector' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenBootSector + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenBootSector.obj GetDrvNumOffset.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenCrc32/GNUmakefile b/BaseTools/Source/C/GenCrc32/GNUmakefile index 73f525c82a..42118dbeb5 100644 --- a/BaseTools/Source/C/GenCrc32/GNUmakefile +++ b/BaseTools/Source/C/GenCrc32/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenCrc32 - -LIBS = -lCommon - -OBJECTS = GenCrc32.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'GenCrc32' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenCrc32 + +LIBS = -lCommon + +OBJECTS = GenCrc32.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/GenCrc32/Makefile b/BaseTools/Source/C/GenCrc32/Makefile index 46397673a5..c2d71f0d77 100644 --- a/BaseTools/Source/C/GenCrc32/Makefile +++ b/BaseTools/Source/C/GenCrc32/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenCrc32 - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenCrc32.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenCrc32' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenCrc32 + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenCrc32.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenFfs/GNUmakefile b/BaseTools/Source/C/GenFfs/GNUmakefile index df431b49e8..855ceade38 100644 --- a/BaseTools/Source/C/GenFfs/GNUmakefile +++ b/BaseTools/Source/C/GenFfs/GNUmakefile @@ -1,11 +1,23 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenFfs - -OBJECTS = GenFfs.o - -include $(MAKEROOT)/Makefiles/app.makefile - -LIBS = -lCommon - +## @file +# Windows makefile for 'GenFfs' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenFfs + +OBJECTS = GenFfs.o + +include $(MAKEROOT)/Makefiles/app.makefile + +LIBS = -lCommon + diff --git a/BaseTools/Source/C/GenFfs/Makefile b/BaseTools/Source/C/GenFfs/Makefile index 060cd03209..9af3b8fe0f 100644 --- a/BaseTools/Source/C/GenFfs/Makefile +++ b/BaseTools/Source/C/GenFfs/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenFfs - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenFfs.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenFfs' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenFfs + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenFfs.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenFv/GNUmakefile b/BaseTools/Source/C/GenFv/GNUmakefile index 7cb1664350..00e0e56917 100644 --- a/BaseTools/Source/C/GenFv/GNUmakefile +++ b/BaseTools/Source/C/GenFv/GNUmakefile @@ -1,18 +1,30 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenFv - -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 - +## @file +# Windows makefile for 'GenFv' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenFv + +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 + diff --git a/BaseTools/Source/C/GenFv/Makefile b/BaseTools/Source/C/GenFv/Makefile index ee6ba4d437..b4cb6fc708 100644 --- a/BaseTools/Source/C/GenFv/Makefile +++ b/BaseTools/Source/C/GenFv/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenFv - -LIBS = $(LIB_PATH)\Common.lib RpcRT4.lib - -OBJECTS = GenFv.obj GenFvInternalLib.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenFv' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenFv + +LIBS = $(LIB_PATH)\Common.lib RpcRT4.lib + +OBJECTS = GenFv.obj GenFvInternalLib.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenFw/GNUmakefile b/BaseTools/Source/C/GenFw/GNUmakefile index decae9e9ba..25228eb5bb 100644 --- a/BaseTools/Source/C/GenFw/GNUmakefile +++ b/BaseTools/Source/C/GenFw/GNUmakefile @@ -1,18 +1,30 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenFw - -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 - +## @file +# Windows makefile for 'GenFw' module build. +# +# Copyright (c) 2009 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenFw + +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 + diff --git a/BaseTools/Source/C/GenFw/Makefile b/BaseTools/Source/C/GenFw/Makefile index 35adfb1386..b9c40fce5a 100644 --- a/BaseTools/Source/C/GenFw/Makefile +++ b/BaseTools/Source/C/GenFw/Makefile @@ -1,12 +1,24 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenFw - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenFw.obj - -#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenFw' module build. +# +# Copyright (c) 2009 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenFw + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenFw.obj + +#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenPage/GNUmakefile b/BaseTools/Source/C/GenPage/GNUmakefile index a828168cd0..b2c2aae1cc 100644 --- a/BaseTools/Source/C/GenPage/GNUmakefile +++ b/BaseTools/Source/C/GenPage/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenPage - -LIBS = -lCommon - -OBJECTS = GenPage.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'GenPage' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenPage + +LIBS = -lCommon + +OBJECTS = GenPage.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/GenPage/Makefile b/BaseTools/Source/C/GenPage/Makefile index 5faf037f44..72df008202 100644 --- a/BaseTools/Source/C/GenPage/Makefile +++ b/BaseTools/Source/C/GenPage/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenPage - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenPage.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenPage' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenPage + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenPage.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenSec/GNUmakefile b/BaseTools/Source/C/GenSec/GNUmakefile index a3bed5d325..dd41f82868 100644 --- a/BaseTools/Source/C/GenSec/GNUmakefile +++ b/BaseTools/Source/C/GenSec/GNUmakefile @@ -1,18 +1,30 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenSec - -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 - +## @file +# Windows makefile for 'GenSec' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenSec + +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 + diff --git a/BaseTools/Source/C/GenSec/Makefile b/BaseTools/Source/C/GenSec/Makefile index 502735bfea..2418241e13 100644 --- a/BaseTools/Source/C/GenSec/Makefile +++ b/BaseTools/Source/C/GenSec/Makefile @@ -1,12 +1,24 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenSec - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenSec.obj - -#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenSec' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenSec + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenSec.obj + +#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GenVtf/GNUmakefile b/BaseTools/Source/C/GenVtf/GNUmakefile index 2449bb8ed5..76db9b2b98 100644 --- a/BaseTools/Source/C/GenVtf/GNUmakefile +++ b/BaseTools/Source/C/GenVtf/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GenVtf - -LIBS = -lCommon - -OBJECTS = GenVtf.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'GenVtf' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GenVtf + +LIBS = -lCommon + +OBJECTS = GenVtf.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/GenVtf/Makefile b/BaseTools/Source/C/GenVtf/Makefile index 0d6a8d134b..7d2550fd47 100644 --- a/BaseTools/Source/C/GenVtf/Makefile +++ b/BaseTools/Source/C/GenVtf/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = GenVtf - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = GenVtf.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'GenVtf' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = GenVtf + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = GenVtf.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/GnuGenBootSector/GNUmakefile b/BaseTools/Source/C/GnuGenBootSector/GNUmakefile index c0261e9253..1a466288f7 100644 --- a/BaseTools/Source/C/GnuGenBootSector/GNUmakefile +++ b/BaseTools/Source/C/GnuGenBootSector/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = GnuGenBootSector - -LIBS = -lCommon - -OBJECTS = GnuGenBootSector.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'GnuGenBootSector' module build. +# +# Copyright (c) 2009 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = GnuGenBootSector + +LIBS = -lCommon + +OBJECTS = GnuGenBootSector.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/Makefile b/BaseTools/Source/C/Makefile index b137da6498..aeacbd30ee 100644 --- a/BaseTools/Source/C/Makefile +++ b/BaseTools/Source/C/Makefile @@ -1,61 +1,73 @@ -ARCH = IA32 - -!INCLUDE Makefiles\ms.common - -LIBRARIES = Common -APPLICATIONS = \ - BootSectImage \ - EfiLdrImage \ - EfiRom \ - GenBootSector \ - GenCrc32 \ - GenFfs \ - GenFv \ - GenFw \ - GenPage \ - GenSec \ - GenVtf \ - LzmaCompress \ - Split \ - TianoCompress \ - VolInfo \ - VfrCompile - -all: libs apps install - -libs: $(LIBRARIES) - @echo. - @echo ###################### - @echo # Build libraries - @echo ###################### - @if not exist $(LIB_PATH) mkdir $(LIB_PATH) - @Makefiles\NmakeSubdirs.bat all $** - -apps: $(APPLICATIONS) - @echo. - @echo ###################### - @echo # Build executables - @echo ###################### - @if not exist $(BIN_PATH) mkdir $(BIN_PATH) - @Makefiles\NmakeSubdirs.bat all $** - -install: $(LIB_PATH) $(BIN_PATH) - @echo. - @echo ###################### - @echo # Install to $(SYS_LIB_PATH) - @echo # Install to $(SYS_BIN_PATH) - @echo ###################### - @-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 - +## @file +# Windows makefile for C tools build. +# +# Copyright (c) 2009 - 2010, 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. +# +ARCH = IA32 + +!INCLUDE Makefiles\ms.common + +LIBRARIES = Common +APPLICATIONS = \ + BootSectImage \ + EfiLdrImage \ + EfiRom \ + GenBootSector \ + GenCrc32 \ + GenFfs \ + GenFv \ + GenFw \ + GenPage \ + GenSec \ + GenVtf \ + LzmaCompress \ + Split \ + TianoCompress \ + VolInfo \ + VfrCompile + +all: libs apps install + +libs: $(LIBRARIES) + @echo. + @echo ###################### + @echo # Build libraries + @echo ###################### + @if not exist $(LIB_PATH) mkdir $(LIB_PATH) + @Makefiles\NmakeSubdirs.bat all $** + +apps: $(APPLICATIONS) + @echo. + @echo ###################### + @echo # Build executables + @echo ###################### + @if not exist $(BIN_PATH) mkdir $(BIN_PATH) + @Makefiles\NmakeSubdirs.bat all $** + +install: $(LIB_PATH) $(BIN_PATH) + @echo. + @echo ###################### + @echo # Install to $(SYS_LIB_PATH) + @echo # Install to $(SYS_BIN_PATH) + @echo ###################### + @-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 + diff --git a/BaseTools/Source/C/Split/GNUmakefile b/BaseTools/Source/C/Split/GNUmakefile index 45cf419145..9d91161f9a 100644 --- a/BaseTools/Source/C/Split/GNUmakefile +++ b/BaseTools/Source/C/Split/GNUmakefile @@ -1,12 +1,24 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = Split - -OBJECTS = Split.o - -include $(MAKEROOT)/Makefiles/app.makefile - -LIBS = -lCommon - - +## @file +# Windows makefile for 'Split' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = Split + +OBJECTS = Split.o + +include $(MAKEROOT)/Makefiles/app.makefile + +LIBS = -lCommon + + diff --git a/BaseTools/Source/C/Split/Makefile b/BaseTools/Source/C/Split/Makefile index 33e4b51082..1ad9e7ddc4 100644 --- a/BaseTools/Source/C/Split/Makefile +++ b/BaseTools/Source/C/Split/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = Split - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = Split.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'Split' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = Split + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = Split.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/TianoCompress/GNUmakefile b/BaseTools/Source/C/TianoCompress/GNUmakefile index 151bbe2cc1..986f32c640 100644 --- a/BaseTools/Source/C/TianoCompress/GNUmakefile +++ b/BaseTools/Source/C/TianoCompress/GNUmakefile @@ -1,10 +1,22 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = TianoCompress - -LIBS = -lCommon - -OBJECTS = TianoCompress.o - -include $(MAKEROOT)/Makefiles/app.makefile +## @file +# Windows makefile for 'TianoCompress' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = TianoCompress + +LIBS = -lCommon + +OBJECTS = TianoCompress.o + +include $(MAKEROOT)/Makefiles/app.makefile diff --git a/BaseTools/Source/C/TianoCompress/Makefile b/BaseTools/Source/C/TianoCompress/Makefile index c7e0bed2d8..8cee1a1cb2 100644 --- a/BaseTools/Source/C/TianoCompress/Makefile +++ b/BaseTools/Source/C/TianoCompress/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = TianoCompress - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = TianoCompress.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'TianoCompress' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = TianoCompress + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = TianoCompress.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/C/VfrCompile/GNUmakefile b/BaseTools/Source/C/VfrCompile/GNUmakefile index 6fe376ddbb..7be5758ffb 100644 --- a/BaseTools/Source/C/VfrCompile/GNUmakefile +++ b/BaseTools/Source/C/VfrCompile/GNUmakefile @@ -1,53 +1,65 @@ - -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = VfrCompile - -LIBS = -lCommon - -TOOL_INCLUDE = -I Pccts/h - -#OBJECTS = VfrSyntax.o VfrServices.o DLGLexer.o EfiVfrParser.o ATokenBuffer.o DLexerBase.o AParser.o -OBJECTS = AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o \ - VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o - -VFR_CPPFLAGS = -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS) - -LINKER = $(CXX) - -EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h - -include $(MAKEROOT)/Makefiles/app.makefile - -VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g - Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g - -VfrLexer.cpp VfrLexer.h: Pccts/dlg/dlg VfrParser.dlg - Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg - -Pccts/antlr/antlr: - BIN_DIR='.' make -C Pccts/antlr - -Pccts/dlg/dlg: - BIN_DIR='.' make -C Pccts/dlg - -ATokenBuffer.o: Pccts/h/ATokenBuffer.cpp - $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ - -DLexerBase.o: Pccts/h/DLexerBase.cpp - $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ - -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) - +## @file +# Windows makefile for 'VfrCompile' module build. +# +# Copyright (c) 2008 - 2010, 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. +# + +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = VfrCompile + +LIBS = -lCommon + +TOOL_INCLUDE = -I Pccts/h + +#OBJECTS = VfrSyntax.o VfrServices.o DLGLexer.o EfiVfrParser.o ATokenBuffer.o DLexerBase.o AParser.o +OBJECTS = AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o \ + VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o + +VFR_CPPFLAGS = -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS) + +LINKER = $(CXX) + +EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h + +include $(MAKEROOT)/Makefiles/app.makefile + +VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g + Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g + +VfrLexer.cpp VfrLexer.h: Pccts/dlg/dlg VfrParser.dlg + Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg + +Pccts/antlr/antlr: + BIN_DIR='.' make -C Pccts/antlr + +Pccts/dlg/dlg: + BIN_DIR='.' make -C Pccts/dlg + +ATokenBuffer.o: Pccts/h/ATokenBuffer.cpp + $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ + +DLexerBase.o: Pccts/h/DLexerBase.cpp + $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@ + +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) + diff --git a/BaseTools/Source/C/VfrCompile/Makefile b/BaseTools/Source/C/VfrCompile/Makefile index e847b762f9..bdafbf69de 100644 --- a/BaseTools/Source/C/VfrCompile/Makefile +++ b/BaseTools/Source/C/VfrCompile/Makefile @@ -1,44 +1,56 @@ -!INCLUDE ..\Makefiles\ms.common - -CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG -APPNAME = VfrCompile - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \ - EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \ - VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj - -INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h - -!INCLUDE ..\Makefiles\ms.app - -VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g - pushd . & cd Pccts & $(MAKE) & popd - antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g -# pushd . & cd Pccts & $(MAKE) clean - -VfrLexer.cpp VfrLexer.h: VfrParser.dlg - dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg - -ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp - $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ - -DLexerBase.obj: Pccts\h\DLexerBase.cpp - $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ - -AParser.obj: Pccts\h\AParser.cpp - $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ - -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 +## @file +# Windows makefile for 'VfrCompile' module build. +# +# Copyright (c) 2008 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG +APPNAME = VfrCompile + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \ + EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \ + VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj + +INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h + +!INCLUDE ..\Makefiles\ms.app + +VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g + pushd . & cd Pccts & $(MAKE) & popd + antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g +# pushd . & cd Pccts & $(MAKE) clean + +VfrLexer.cpp VfrLexer.h: VfrParser.dlg + dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg + +ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp + $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ + +DLexerBase.obj: Pccts\h\DLexerBase.cpp + $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ + +AParser.obj: Pccts\h\AParser.cpp + $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@ + +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 diff --git a/BaseTools/Source/C/VolInfo/GNUmakefile b/BaseTools/Source/C/VolInfo/GNUmakefile index 309f9ccf8c..c80c55513b 100644 --- a/BaseTools/Source/C/VolInfo/GNUmakefile +++ b/BaseTools/Source/C/VolInfo/GNUmakefile @@ -1,12 +1,24 @@ -ARCH ?= IA32 -MAKEROOT ?= .. - -APPNAME = VolInfo - -OBJECTS = VolInfo.o - -include $(MAKEROOT)/Makefiles/app.makefile - -LIBS = -lCommon - - +## @file +# Windows makefile for 'VolInfo' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +ARCH ?= IA32 +MAKEROOT ?= .. + +APPNAME = VolInfo + +OBJECTS = VolInfo.o + +include $(MAKEROOT)/Makefiles/app.makefile + +LIBS = -lCommon + + diff --git a/BaseTools/Source/C/VolInfo/Makefile b/BaseTools/Source/C/VolInfo/Makefile index 6bf58de80c..e110e8914b 100644 --- a/BaseTools/Source/C/VolInfo/Makefile +++ b/BaseTools/Source/C/VolInfo/Makefile @@ -1,10 +1,22 @@ -!INCLUDE ..\Makefiles\ms.common - -APPNAME = VolInfo - -LIBS = $(LIB_PATH)\Common.lib - -OBJECTS = VolInfo.obj - -!INCLUDE ..\Makefiles\ms.app - +## @file +# Windows makefile for 'VolInfo' module build. +# +# Copyright (c) 2007 - 2010, 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. +# +!INCLUDE ..\Makefiles\ms.common + +APPNAME = VolInfo + +LIBS = $(LIB_PATH)\Common.lib + +OBJECTS = VolInfo.obj + +!INCLUDE ..\Makefiles\ms.app + diff --git a/BaseTools/Source/Python/GNUmakefile b/BaseTools/Source/Python/GNUmakefile index aa569b3624..2f357a63d2 100644 --- a/BaseTools/Source/Python/GNUmakefile +++ b/BaseTools/Source/Python/GNUmakefile @@ -1,6 +1,18 @@ - -all: - -clean: - find . -name '*.pyc' -exec rm '{}' ';' - +## @file +# Windows makefile for Python tools build. +# +# Copyright (c) 2007 - 2010, 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. +# + +all: + +clean: + find . -name '*.pyc' -exec rm '{}' ';' + diff --git a/BaseTools/Source/Python/Makefile b/BaseTools/Source/Python/Makefile index dd2780f840..0b103f2b1a 100644 --- a/BaseTools/Source/Python/Makefile +++ b/BaseTools/Source/Python/Makefile @@ -1,16 +1,28 @@ - -!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 +## @file +# Windows makefile for Python tools build. +# +# Copyright (c) 2010, 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. +# + +!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 \ $(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 -all: SetPythonPath $(APPLICATIONS) - -SetPythonPath: - set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\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 - -$(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 - -$(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 - -$(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 - -$(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 +all: SetPythonPath $(APPLICATIONS) + +SetPythonPath: + set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\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 + +$(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 + +$(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 + +$(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 + +$(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 $(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 @@ -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) @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) - @pushd . & @cd GenPatchPcdTable & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenPatchPcdTable.py & @popd +$(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 -$(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 +$(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 clean: -cleanall: - @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll - @for %%i in ($(APPLICATIONS)) do @del /f /q %%i - +cleanall: + @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll + @for %%i in ($(APPLICATIONS)) do @del /f /q %%i + diff --git a/BaseTools/Tests/GNUmakefile b/BaseTools/Tests/GNUmakefile index 3fb5f4fad0..4bd51c678d 100644 --- a/BaseTools/Tests/GNUmakefile +++ b/BaseTools/Tests/GNUmakefile @@ -1,9 +1,21 @@ - -all: test - -test: - @python RunTests.py - -clean: - find . -name '*.pyc' -exec rm '{}' ';' - +## @file +# Windows makefile for 'Tests' module build. +# +# Copyright (c) 2009 - 2010, 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. +# + +all: test + +test: + @python RunTests.py + +clean: + find . -name '*.pyc' -exec rm '{}' ';' + -- 2.39.2