diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2017-08-02 14:17:41 -0700 |
---|---|---|
committer | Michael D Kinney <michael.d.kinney@intel.com> | 2017-08-11 11:28:35 -0700 |
commit | ef190542b4dbc4577ef7d1f99209199f0c1b6e66 (patch) | |
tree | 562a306a6e1a675354588edbb383f989d4436f0f /BaseTools/Scripts | |
parent | c8d385265fa38e0933768fccc8dc0bf5b8725037 (diff) | |
download | edk2-ef190542b4dbc4577ef7d1f99209199f0c1b6e66.tar.gz edk2-ef190542b4dbc4577ef7d1f99209199f0c1b6e66.tar.bz2 edk2-ef190542b4dbc4577ef7d1f99209199f0c1b6e66.zip |
BaseTools/Scripts: Add sample makefile for use with RunMakefile.py
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>
Diffstat (limited to 'BaseTools/Scripts')
-rw-r--r-- | BaseTools/Scripts/RunMakefileSample.mak | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/BaseTools/Scripts/RunMakefileSample.mak b/BaseTools/Scripts/RunMakefileSample.mak new file mode 100644 index 0000000000..c992b44fc5 --- /dev/null +++ b/BaseTools/Scripts/RunMakefileSample.mak @@ -0,0 +1,43 @@ +## @file
+# Sample makefile for PREBUILD or POSTBUILD action.
+#
+# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
+# 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: show
+ @echo $@
+genc: show
+ @echo $@
+genmake: show
+ @echo $@
+modules: show
+ @echo $@
+libraries: show
+ @echo $@
+fds: show
+ @echo $@
+clean: show
+ @echo $@
+cleanall: show
+ @echo $@
+cleanlib: show
+ @echo $@
+run: show
+ @echo $@
+
+show:
+ @echo WORKSPACE........ $(WORKSPACE)
+ @echo PACKAGES_PATH.... $(PACKAGES_PATH)
+ @echo ACTIVE_PLATFORM.. $(ACTIVE_PLATFORM)
+ @echo TARGET_ARCH...... $(TARGET_ARCH)
+ @echo TOOL_CHAIN_TAG... $(TOOL_CHAIN_TAG)
+ @echo CONF_DIRECTORY... $(CONF_DIRECTORY)
+ @echo TARGET........... $(TARGET)
+ @echo EXTRA_FLAGS...... $(EXTRA_FLAGS)
|