]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Makefile
BaseTools: create and use a standard shared variable for '*'
[mirror_edk2.git] / BaseTools / Makefile
... / ...
CommitLineData
1## @file\r
2# Windows makefile for Base Tools project build.\r
3#\r
4# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13\r
14!IFNDEF BASE_TOOLS_PATH\r
15!ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!"\r
16!ENDIF\r
17\r
18SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python\r
19\r
20all: c\r
21\r
22c :\r
23 @$(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C\r
24\r
25\r
26subdirs: $(SUBDIRS)\r
27 @$(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**\r
28\r
29.PHONY: clean\r
30clean:\r
31 $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)\r
32\r
33.PHONY: cleanall\r
34cleanall:\r
35 $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)\r
36\r