## @file\r
# Windows makefile for Base Tools project build.\r
#\r
-# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2007 - 2017, 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
# http://opensource.org/licenses/bsd-license.php\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
+SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python\r
\r
all: c python\r
\r
c :\r
- @Source\C\Makefiles\NmakeSubdirs.bat all Source\C\r
+ @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $(BASE_TOOLS_PATH)\Source\C\r
\r
python:\r
- @Source\C\Makefiles\NmakeSubdirs.bat all Source\Python\r
+ @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $(BASE_TOOLS_PATH)\Source\Python\r
\r
subdirs: $(SUBDIRS)\r
- @Source\C\Makefiles\NmakeSubdirs.bat all $**\r
+ @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $**\r
\r
.PHONY: clean\r
clean:\r
- @Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)\r
+ @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)\r
\r
.PHONY: cleanall\r
cleanall:\r
- @Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)\r
+ @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)\r
\r