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