]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/Makefile
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Makefile
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Makefile b/EdkCompatibilityPkg/Sample/Tools/Source/Makefile
new file mode 100644 (file)
index 0000000..974c9b4
--- /dev/null
@@ -0,0 +1,79 @@
+#/*++\r
+#\r
+#  Copyright (c) 2004 - 2007, Intel Corporation                                                         \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
+#  Module Name:  makefile\r
+#\r
+#  Abstract:\r
+#\r
+#    This file is used to build the EFI build tools.\r
+#\r
+#--*/\r
+\r
+#\r
+# Everything depends on EDK_SOURCE. Make sure it's defined\r
+#\r
+!IFNDEF EDK_SOURCE\r
+!ERROR EDK_SOURCE environmental variable not set\r
+!ENDIF\r
+\r
+#\r
+# Define our toolchain before we include the master settings file\r
+#\r
+TOOLCHAIN = TOOLCHAIN_MSVC\r
+\r
+!INCLUDE $(BUILD_DIR)\PlatformTools.env\r
+\r
+#\r
+# Define all the makefiles we want to call\r
+#\r
+\r
+MAKEFILES = $(EDK_TOOLS_SOURCE)\Common\Makefile             \\r
+            $(CUSTOMIZEDCOMPRESS_MAKEFILE)                  \\r
+            $(EDK_TOOLS_SOURCE)\GenCRC32Section\Makefile    \\r
+            $(EDK_TOOLS_SOURCE)\GenSection\Makefile         \\r
+            $(EDK_TOOLS_SOURCE)\GenDepex\Makefile           \\r
+            $(EDK_TOOLS_SOURCE)\GenFfsFile\Makefile         \\r
+            $(EDK_TOOLS_SOURCE)\GenFvImage\Makefile         \\r
+            $(EDK_TOOLS_SOURCE)\FwImage\Makefile            \\r
+            $(EDK_TOOLS_SOURCE)\ProcessDsc\makefile         \\r
+            $(EDK_TOOLS_SOURCE)\GuidChk\makefile            \\r
+            $(EDK_TOOLS_SOURCE)\MakeDeps\makefile           \\r
+            $(EDK_TOOLS_SOURCE)\SetStamp\makefile           \\r
+            $(EDK_TOOLS_SOURCE)\VfrCompile\makefile         \\r
+            $(EDK_TOOLS_SOURCE)\StrGather\makefile          \\r
+            $(EDK_TOOLS_SOURCE)\BootsectImage\Makefile      \\r
+            $(EDK_TOOLS_SOURCE)\GenBootsector\Makefile      \\r
+            $(EDK_TOOLS_SOURCE)\GenPage\Makefile            \\r
+            $(EDK_TOOLS_SOURCE)\SplitFile\Makefile          \\r
+            $(EDK_TOOLS_SOURCE)\EfiCompress\Makefile        \\r
+            $(EDK_TOOLS_SOURCE)\EfildrImage\Makefile        \\r
+            $(EDK_TOOLS_SOURCE)\EfiRom\Makefile             \\r
+            $(EDK_TOOLS_SOURCE)\GenAprioriFile\Makefile     \\r
+            $(EDK_TOOLS_SOURCE)\ModifyInf\Makefile\r
+\r
+\r
+\r
+#\r
+# Define default all target which calls all our makefiles. The special\r
+# bang (!) tells nmake to do the command for each out-of-date dependent.\r
+#\r
+# Create the BIN directory, which will only exist if you pull the source tree\r
+# from version control.\r
+#\r
+all : $(MAKEFILES)\r
+  -if not exist $(EDK_TOOLS_OUTPUT) mkdir $(EDK_TOOLS_OUTPUT)\r
+  !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) BUILD_DIR=$(BUILD_DIR) all\r
+  \r
+#\r
+# Call all the tools makefiles with a clean target.\r
+#\r
+clean : $(MAKEFILES)\r
+  !$(MAKE) -f $? TOOLCHAIN=$(TOOLCHAIN) clean\r