2010-03-04 19:57:31 +08:00
|
|
|
## @file
|
|
|
|
# Windows makefile for Base Tools project build.
|
|
|
|
#
|
2018-08-28 23:26:56 +08:00
|
|
|
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 07:03:11 +08:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2010-03-04 19:57:31 +08:00
|
|
|
#
|
|
|
|
|
2017-02-03 14:49:47 +08:00
|
|
|
!IFNDEF BASE_TOOLS_PATH
|
|
|
|
!ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!"
|
|
|
|
!ENDIF
|
|
|
|
|
2018-10-15 08:27:53 +08:00
|
|
|
SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python
|
2010-03-04 19:57:31 +08:00
|
|
|
|
2018-10-16 23:08:46 +08:00
|
|
|
all: c
|
2010-03-04 19:57:31 +08:00
|
|
|
|
|
|
|
c :
|
2018-12-28 16:25:04 +08:00
|
|
|
@if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C
|
|
|
|
@if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C
|
2010-03-04 19:57:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
subdirs: $(SUBDIRS)
|
2018-12-28 16:25:04 +08:00
|
|
|
@if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**
|
|
|
|
@if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**
|
2010-03-04 19:57:31 +08:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2018-12-28 16:25:04 +08:00
|
|
|
@if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)
|
|
|
|
@if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)
|
2010-03-04 19:57:31 +08:00
|
|
|
|
|
|
|
.PHONY: cleanall
|
|
|
|
cleanall:
|
2018-12-28 16:25:04 +08:00
|
|
|
@if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)
|
|
|
|
@if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)
|
2010-03-04 19:57:31 +08:00
|
|
|
|