1 | ## @file
|
---|
2 | # Windows makefile for Base Tools project build.
|
---|
3 | #
|
---|
4 | # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
---|
5 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 | #
|
---|
7 |
|
---|
8 | !IFNDEF BASE_TOOLS_PATH
|
---|
9 | !ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!"
|
---|
10 | !ENDIF
|
---|
11 |
|
---|
12 | SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python
|
---|
13 |
|
---|
14 | all: c
|
---|
15 |
|
---|
16 | c :
|
---|
17 | @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C
|
---|
18 | @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C
|
---|
19 |
|
---|
20 |
|
---|
21 | subdirs: $(SUBDIRS)
|
---|
22 | @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**
|
---|
23 | @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**
|
---|
24 |
|
---|
25 | .PHONY: clean
|
---|
26 | clean:
|
---|
27 | @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)
|
---|
28 | @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)
|
---|
29 |
|
---|
30 | .PHONY: cleanall
|
---|
31 | cleanall:
|
---|
32 | @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)
|
---|
33 | @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)
|
---|
34 |
|
---|