]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Makefile
BaseTools: create and use a standard shared variable for '*'
[mirror_edk2.git] / BaseTools / Makefile
CommitLineData
c69f724d 1## @file\r
2# Windows makefile for Base Tools project build.\r
3#\r
4c0d19e5 4# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
40d841f6 5# This program and the accompanying materials\r
c69f724d 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
8a399fab
LG
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
1ccc4d89 18SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python\r
c69f724d 19\r
7b500c60 20all: c\r
c69f724d 21\r
22c :\r
1ccc4d89 23 @$(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C\r
c69f724d 24\r
c69f724d 25\r
26subdirs: $(SUBDIRS)\r
1ccc4d89 27 @$(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**\r
c69f724d 28\r
29.PHONY: clean\r
30clean:\r
1ccc4d89 31 $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)\r
c69f724d 32\r
33.PHONY: cleanall\r
34cleanall:\r
1ccc4d89 35 $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)\r
c69f724d 36\r