]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/Scripts: Add sample makefile for use with RunMakefile.py
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 2 Aug 2017 21:17:41 +0000 (14:17 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Fri, 11 Aug 2017 18:28:35 +0000 (11:28 -0700)
https://bugzilla.tianocore.org/show_bug.cgi?id=670

Add sample makefile that can be used to test RunMakefile.py
script and can also be used as a template to start a new
PREBUILD/POSTBUILD makefile.

This makefile contains TAB characters instead of spaces on
purpose to maximize compatibility with make utilities.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Scripts/RunMakefileSample.mak [new file with mode: 0644]

diff --git a/BaseTools/Scripts/RunMakefileSample.mak b/BaseTools/Scripts/RunMakefileSample.mak
new file mode 100644 (file)
index 0000000..c992b44
--- /dev/null
@@ -0,0 +1,43 @@
+## @file\r
+# Sample makefile for PREBUILD or POSTBUILD action.\r
+#\r
+# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+# 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: show\r
+       @echo $@\r
+genc: show\r
+       @echo $@\r
+genmake: show\r
+       @echo $@\r
+modules: show\r
+       @echo $@\r
+libraries: show\r
+       @echo $@\r
+fds: show\r
+       @echo $@\r
+clean: show\r
+       @echo $@\r
+cleanall: show\r
+       @echo $@\r
+cleanlib: show\r
+       @echo $@\r
+run: show\r
+       @echo $@\r
+\r
+show:\r
+       @echo WORKSPACE........ $(WORKSPACE)\r
+       @echo PACKAGES_PATH.... $(PACKAGES_PATH)\r
+       @echo ACTIVE_PLATFORM.. $(ACTIVE_PLATFORM)\r
+       @echo TARGET_ARCH...... $(TARGET_ARCH)\r
+       @echo TOOL_CHAIN_TAG... $(TOOL_CHAIN_TAG)\r
+       @echo CONF_DIRECTORY... $(CONF_DIRECTORY)\r
+       @echo TARGET........... $(TARGET)\r
+       @echo EXTRA_FLAGS...... $(EXTRA_FLAGS)\r