-
-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\r
+# Windows makefile for Base Tools project build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+all: subdirs\r
+\r
+LANGUAGES = C Python\r
+\r
+SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))\r
+SUBDIRS := $(SOURCE_SUBDIRS) Tests\r
+CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))\r
+\r
+.PHONY: subdirs $(SUBDIRS)\r
+subdirs: $(SUBDIRS)\r
+$(SUBDIRS):\r
+ $(MAKE) -C $@\r
+\r
+.PHONY: $(CLEAN_SUBDIRS)\r
+$(CLEAN_SUBDIRS):\r
+ -$(MAKE) -C $(@:-clean=) clean\r
+\r
+clean: $(CLEAN_SUBDIRS)\r
+\r
+test:\r
+ @$(MAKE) -C Tests\r
+\r
-
-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\r
+# Windows makefile for Base Tools project build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+SUBDIRS = Source\C Source\Python\r
+\r
+all: c python\r
+\r
+c :\r
+ @Source\C\Makefiles\NmakeSubdirs.bat all Source\C\r
+\r
+python:\r
+ @Source\C\Makefiles\NmakeSubdirs.bat all Source\Python\r
+\r
+subdirs: $(SUBDIRS)\r
+ @Source\C\Makefiles\NmakeSubdirs.bat all $**\r
+\r
+.PHONY: clean\r
+clean:\r
+ @Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)\r
+\r
+.PHONY: cleanall\r
+cleanall:\r
+ @Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = BootSectImage
-
-LIBS = -lCommon
-
-OBJECTS = bootsectimage.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'BootSectImage' module build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = BootSectImage\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = bootsectimage.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = BootSectImage
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = BootSectImage.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'BootSectImage' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = BootSectImage\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = BootSectImage.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-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\r
+# Windows makefile for 'Common' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+# VPATH = ..\r
+\r
+LIBNAME = Common\r
+\r
+OBJECTS = \\r
+ BasePeCoff.o \\r
+ BinderFuncs.o \\r
+ CommonLib.o \\r
+ Crc32.o \\r
+ Decompress.o \\r
+ EfiCompress.o \\r
+ EfiUtilityMsgs.o \\r
+ FirmwareVolumeBuffer.o \\r
+ FvLib.o \\r
+ MemoryFile.o \\r
+ MyAlloc.o \\r
+ OsPath.o \\r
+ ParseGuidedSectionTools.o \\r
+ ParseInf.o \\r
+ PeCoffLoaderEx.o \\r
+ SimpleFileParsing.o \\r
+ StringFuncs.o \\r
+ TianoCompress.o\r
+\r
+include $(MAKEROOT)/Makefiles/lib.makefile\r
+## @file\r
+# Windows makefile for 'Common' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
!INCLUDE ..\Makefiles\ms.common\r
\r
# VPATH = ..\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = EfiLdrImage
-
-LIBS = -lCommon
-
-OBJECTS = EfiLdrImage.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'EfiLdrImage' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = EfiLdrImage\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = EfiLdrImage.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = EfiLdrImage
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = EfiLdrImage.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'EfiLdrImage' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = EfiLdrImage\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = EfiLdrImage.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = EfiRom
-
-LIBS = -lCommon
-
-OBJECTS = EfiRom.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'EfiRom' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = EfiRom\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = EfiRom.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = EfiRom
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = EfiRom.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'EfiRom' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = EfiRom\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = EfiRom.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
## @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
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenBootSector
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenBootSector.obj GetDrvNumOffset.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenBootSector' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenBootSector\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenBootSector.obj GetDrvNumOffset.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = GenCrc32
-
-LIBS = -lCommon
-
-OBJECTS = GenCrc32.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'GenCrc32' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenCrc32\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = GenCrc32.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenCrc32
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenCrc32.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenCrc32' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenCrc32\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenCrc32.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = GenFfs
-
-OBJECTS = GenFfs.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
-
-LIBS = -lCommon
-
+## @file\r
+# Windows makefile for 'GenFfs' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenFfs\r
+\r
+OBJECTS = GenFfs.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+LIBS = -lCommon\r
+\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenFfs
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenFfs.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenFfs' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenFfs\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenFfs.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-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\r
+# Windows makefile for 'GenFv' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenFv\r
+\r
+OBJECTS = GenFv.o GenFvInternalLib.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+LIBS = -lCommon\r
+ifeq ($(CYGWIN), CYGWIN)\r
+ LIBS += -L/lib/e2fsprogs -luuid\r
+endif\r
+\r
+ifeq ($(LINUX), Linux)\r
+ LIBS += -luuid\r
+endif\r
+\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenFv
-
-LIBS = $(LIB_PATH)\Common.lib RpcRT4.lib
-
-OBJECTS = GenFv.obj GenFvInternalLib.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenFv' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenFv\r
+\r
+LIBS = $(LIB_PATH)\Common.lib RpcRT4.lib\r
+\r
+OBJECTS = GenFv.obj GenFvInternalLib.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-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\r
+# Windows makefile for 'GenFw' module build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenFw\r
+\r
+OBJECTS = GenFw.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+LIBS = -lCommon\r
+ifeq ($(CYGWIN), CYGWIN)\r
+ LIBS += -L/lib/e2fsprogs -luuid\r
+endif\r
+\r
+ifeq ($(LINUX), Linux)\r
+ LIBS += -luuid\r
+endif\r
+\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenFw
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenFw.obj
-
-#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenFw' module build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenFw\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenFw.obj\r
+\r
+#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = GenPage
-
-LIBS = -lCommon
-
-OBJECTS = GenPage.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'GenPage' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenPage\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = GenPage.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenPage
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenPage.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenPage' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenPage\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenPage.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-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\r
+# Windows makefile for 'GenSec' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenSec\r
+\r
+OBJECTS = GenSec.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+LIBS = -lCommon\r
+ifeq ($(CYGWIN), CYGWIN)\r
+ LIBS += -L/lib/e2fsprogs -luuid\r
+endif\r
+\r
+ifeq ($(LINUX), Linux)\r
+ LIBS += -luuid\r
+endif\r
+\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenSec
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenSec.obj
-
-#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenSec' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenSec\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenSec.obj\r
+\r
+#CFLAGS = $(CFLAGS) /nodefaultlib:libc.lib\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = GenVtf
-
-LIBS = -lCommon
-
-OBJECTS = GenVtf.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'GenVtf' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GenVtf\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = GenVtf.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = GenVtf
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = GenVtf.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'GenVtf' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = GenVtf\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = GenVtf.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = GnuGenBootSector
-
-LIBS = -lCommon
-
-OBJECTS = GnuGenBootSector.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'GnuGenBootSector' module build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = GnuGenBootSector\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = GnuGenBootSector.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-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\r
+# Windows makefile for C tools build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH = IA32\r
+\r
+!INCLUDE Makefiles\ms.common\r
+\r
+LIBRARIES = Common\r
+APPLICATIONS = \\r
+ BootSectImage \\r
+ EfiLdrImage \\r
+ EfiRom \\r
+ GenBootSector \\r
+ GenCrc32 \\r
+ GenFfs \\r
+ GenFv \\r
+ GenFw \\r
+ GenPage \\r
+ GenSec \\r
+ GenVtf \\r
+ LzmaCompress \\r
+ Split \\r
+ TianoCompress \\r
+ VolInfo \\r
+ VfrCompile\r
+\r
+all: libs apps install\r
+\r
+libs: $(LIBRARIES)\r
+ @echo.\r
+ @echo ######################\r
+ @echo # Build libraries\r
+ @echo ######################\r
+ @if not exist $(LIB_PATH) mkdir $(LIB_PATH)\r
+ @Makefiles\NmakeSubdirs.bat all $**\r
+\r
+apps: $(APPLICATIONS)\r
+ @echo.\r
+ @echo ######################\r
+ @echo # Build executables\r
+ @echo ######################\r
+ @if not exist $(BIN_PATH) mkdir $(BIN_PATH)\r
+ @Makefiles\NmakeSubdirs.bat all $**\r
+\r
+install: $(LIB_PATH) $(BIN_PATH)\r
+ @echo.\r
+ @echo ######################\r
+ @echo # Install to $(SYS_LIB_PATH)\r
+ @echo # Install to $(SYS_BIN_PATH)\r
+ @echo ######################\r
+ @-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1\r
+ @-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1\r
+\r
+.PHONY: clean\r
+clean:\r
+ @Makefiles\NmakeSubdirs.bat clean $(LIBRARIES) $(APPLICATIONS)\r
+\r
+.PHONY: cleanall\r
+cleanall:\r
+ @Makefiles\NmakeSubdirs.bat cleanall $(LIBRARIES) $(APPLICATIONS)\r
+ @del /f /q $(BIN_PATH)\*.pdb $(BIN_PATH)\*.ilk\r
+\r
+!INCLUDE Makefiles\ms.rule\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = Split
-
-OBJECTS = Split.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
-
-LIBS = -lCommon
-
-
+## @file\r
+# Windows makefile for 'Split' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = Split\r
+\r
+OBJECTS = Split.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+LIBS = -lCommon\r
+\r
+\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = Split
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = Split.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'Split' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = Split\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = Split.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = TianoCompress
-
-LIBS = -lCommon
-
-OBJECTS = TianoCompress.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
+## @file\r
+# Windows makefile for 'TianoCompress' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = TianoCompress\r
+\r
+LIBS = -lCommon\r
+\r
+OBJECTS = TianoCompress.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = TianoCompress
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = TianoCompress.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'TianoCompress' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = TianoCompress\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = TianoCompress.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-
-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\r
+# Windows makefile for 'VfrCompile' module build.\r
+#\r
+# Copyright (c) 2008 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = VfrCompile\r
+\r
+LIBS = -lCommon\r
+\r
+TOOL_INCLUDE = -I Pccts/h\r
+\r
+#OBJECTS = VfrSyntax.o VfrServices.o DLGLexer.o EfiVfrParser.o ATokenBuffer.o DLexerBase.o AParser.o\r
+OBJECTS = AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o \\r
+ VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o\r
+\r
+VFR_CPPFLAGS = -DPCCTS_USE_NAMESPACE_STD $(CPPFLAGS)\r
+\r
+LINKER = $(CXX)\r
+\r
+EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g\r
+ Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g\r
+\r
+VfrLexer.cpp VfrLexer.h: Pccts/dlg/dlg VfrParser.dlg\r
+ Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg\r
+\r
+Pccts/antlr/antlr:\r
+ BIN_DIR='.' make -C Pccts/antlr\r
+\r
+Pccts/dlg/dlg:\r
+ BIN_DIR='.' make -C Pccts/dlg\r
+\r
+ATokenBuffer.o: Pccts/h/ATokenBuffer.cpp\r
+ $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@\r
+\r
+DLexerBase.o: Pccts/h/DLexerBase.cpp\r
+ $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@\r
+\r
+AParser.o: Pccts/h/AParser.cpp\r
+ $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@\r
+\r
+VfrSyntax.o: VfrSyntax.cpp\r
+ $(CXX) -c $(VFR_CPPFLAGS) $(INC) $? -o $@\r
+ \r
+clean: localClean\r
+\r
+localClean:\r
+ BIN_DIR='.' make -C Pccts/antlr clean\r
+ BIN_DIR='.' make -C Pccts/dlg clean\r
+ rm -f $(EXTRA_CLEAN_OBJECTS)\r
+\r
-!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\r
+# Windows makefile for 'VfrCompile' module build.\r
+#\r
+# Copyright (c) 2008 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG\r
+APPNAME = VfrCompile\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = AParser.obj DLexerBase.obj ATokenBuffer.obj \\r
+ EfiVfrParser.obj VfrLexer.obj VfrSyntax.obj \\r
+ VfrFormPkg.obj VfrError.obj VfrUtilityLib.obj VfrCompiler.obj\r
+\r
+INC = $(INC) -I $(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts\h\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
+VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: VfrSyntax.g\r
+ pushd . & cd Pccts & $(MAKE) & popd\r
+ antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g\r
+# pushd . & cd Pccts & $(MAKE) clean\r
+\r
+VfrLexer.cpp VfrLexer.h: VfrParser.dlg\r
+ dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg\r
+\r
+ATokenBuffer.obj: Pccts\h\ATokenBuffer.cpp\r
+ $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r
+\r
+DLexerBase.obj: Pccts\h\DLexerBase.cpp\r
+ $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r
+\r
+AParser.obj: Pccts\h\AParser.cpp\r
+ $(CXX) -c $(CPPFLAGS) $(INC) $? -Fo$@\r
+\r
+EXTRA_CLEAN_OBJECTS = VfrParser.dlg EfiVfrParser.cpp EfiVfrParser.h \\r
+ VfrLexer.cpp VfrLexer.h \\r
+ VfrSyntax.cpp VfrTokens.h\r
+\r
+clean: localClean\r
+cleanall: localClean localCleanall\r
+\r
+localClean:\r
+ -DEL $(EXTRA_CLEAN_OBJECTS)\r
+\r
+localCleanall:\r
+ pushd . & cd Pccts & $(MAKE) cleanall & popd\r
-ARCH ?= IA32
-MAKEROOT ?= ..
-
-APPNAME = VolInfo
-
-OBJECTS = VolInfo.o
-
-include $(MAKEROOT)/Makefiles/app.makefile
-
-LIBS = -lCommon
-
-
+## @file\r
+# Windows makefile for 'VolInfo' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+ARCH ?= IA32\r
+MAKEROOT ?= ..\r
+\r
+APPNAME = VolInfo\r
+\r
+OBJECTS = VolInfo.o\r
+\r
+include $(MAKEROOT)/Makefiles/app.makefile\r
+\r
+LIBS = -lCommon\r
+\r
+\r
-!INCLUDE ..\Makefiles\ms.common
-
-APPNAME = VolInfo
-
-LIBS = $(LIB_PATH)\Common.lib
-
-OBJECTS = VolInfo.obj
-
-!INCLUDE ..\Makefiles\ms.app
-
+## @file\r
+# Windows makefile for 'VolInfo' module build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+!INCLUDE ..\Makefiles\ms.common\r
+\r
+APPNAME = VolInfo\r
+\r
+LIBS = $(LIB_PATH)\Common.lib\r
+\r
+OBJECTS = VolInfo.obj\r
+\r
+!INCLUDE ..\Makefiles\ms.app\r
+\r
-
-all:
-
-clean:
- find . -name '*.pyc' -exec rm '{}' ';'
-
+## @file\r
+# Windows makefile for Python tools build.\r
+#\r
+# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+all:\r
+\r
+clean:\r
+ find . -name '*.pyc' -exec rm '{}' ';'\r
+\r
-
-!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\r
+# Windows makefile for Python tools build.\r
+#\r
+# Copyright (c) 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+!IFNDEF PYTHON_FREEZER_PATH\r
+!ERROR PYTHON_FREEZER_PATH must be defined!\r
+!ENDIF\r
+\r
+FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe\r
+\r
+MODULES=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8,encodings.utf_16_le,encodings.latin_1\r
+\r
+BIN_DIR=$(EDK_TOOLS_PATH)\Bin\Win32\r
+\r
+\r
+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\r
\r
COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \\r
$(BASE_TOOLS_PATH)\Source\Python\Common\Database.py \\r
$(BASE_TOOLS_PATH)\Source\Python\Autogen\__init__.py \r
\r
\r
-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)\r
+\r
+SetPythonPath:\r
+ set PYTHONPATH=$(BASE_TOOLS_PATH)\Source\Python\r
+\r
+$(BIN_DIR)\build.exe: $(BASE_TOOLS_PATH)\Source\Python\build\build.py $(COMMON_PYTHON)\r
+ @pushd . & @cd build & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) build.py & @popd\r
+\r
+$(BIN_DIR)\GenFds.exe: $(BASE_TOOLS_PATH)\Source\Python\GenFds\GenFds.py $(COMMON_PYTHON)\r
+ @pushd . & @cd GenFds & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenFds.py & @popd\r
+\r
+$(BIN_DIR)\Trim.exe: $(BASE_TOOLS_PATH)\Source\Python\Trim\Trim.py $(COMMON_PYTHON)\r
+ @pushd . & @cd Trim & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Trim.py & @popd\r
+\r
+$(BIN_DIR)\MigrationMsa2Inf.exe: $(BASE_TOOLS_PATH)\Source\Python\MigrationMsa2Inf\MigrationMsa2Inf.py\r
+ @pushd . & @cd MigrationMsa2Inf & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) MigrationMsa2Inf.py & @popd \r
+\r
+$(BIN_DIR)\Fpd2Dsc.exe: $(BASE_TOOLS_PATH)\Source\Python\Fpd2Dsc\Fpd2Dsc.py $(COMMON_PYTHON)\r
+ @pushd . & @cd Fpd2Dsc & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Fpd2Dsc.py & @popd\r
\r
$(BIN_DIR)\spd2dec.exe: $(BASE_TOOLS_PATH)\Source\Python\spd2dec\Spd2Dec.py $(COMMON_PYTHON)\r
@pushd . & @cd Spd2Dec & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) Spd2Dec.py & @popd\r
$(BIN_DIR)\TargetTool.exe: $(BASE_TOOLS_PATH)\Source\Python\TargetTool\TargetTool.py $(COMMON_PYTHON)\r
@pushd . & @cd TargetTool & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) TargetTool.py & @popd\r
\r
-$(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)\r
+ @pushd . & @cd GenPatchPcdTable & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) GenPatchPcdTable.py & @popd\r
\r
-$(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)\r
+ @pushd . & @cd PatchPcdValue & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) PatchPcdValue.py & @popd\r
\r
clean:\r
-cleanall:
- @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll
- @for %%i in ($(APPLICATIONS)) do @del /f /q %%i
-
+cleanall: \r
+ @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll\r
+ @for %%i in ($(APPLICATIONS)) do @del /f /q %%i\r
+\r
-
-all: test
-
-test:
- @python RunTests.py
-
-clean:
- find . -name '*.pyc' -exec rm '{}' ';'
-
+## @file\r
+# Windows makefile for 'Tests' module build.\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation<BR>\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+\r
+all: test\r
+\r
+test:\r
+ @python RunTests.py\r
+\r
+clean:\r
+ find . -name '*.pyc' -exec rm '{}' ';'\r
+\r