## @file\r
# Windows makefile for Base Tools project build.\r
#\r
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
#\r
\r
-SUBDIRS = Source\C Source\Python\r
+!IFNDEF BASE_TOOLS_PATH\r
+!ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!"\r
+!ENDIF\r
\r
-all: c python\r
+SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python\r
+\r
+all: c\r
\r
c :\r
- @Source\C\Makefiles\NmakeSubdirs.bat all Source\C\r
+ @$(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C\r
\r
-python:\r
- @Source\C\Makefiles\NmakeSubdirs.bat all Source\Python\r
\r
subdirs: $(SUBDIRS)\r
- @Source\C\Makefiles\NmakeSubdirs.bat all $**\r
+ @$(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**\r
\r
.PHONY: clean\r
clean:\r
- @Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)\r
+ $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)\r
\r
.PHONY: cleanall\r
cleanall:\r
- @Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)\r
+ $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)\r
\r