2010-03-01 00:39:39 +01:00
|
|
|
@REM ## @file
|
2014-08-28 15:53:34 +02:00
|
|
|
@REM # Makefile
|
2010-03-01 00:39:39 +01:00
|
|
|
@REM #
|
2018-07-05 11:40:04 +02:00
|
|
|
@REM # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:03:11 +02:00
|
|
|
@REM # SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-07-05 11:40:04 +02:00
|
|
|
@REM #
|
2010-03-01 00:39:39 +01:00
|
|
|
|
2009-07-17 11:10:31 +02:00
|
|
|
@echo off
|
|
|
|
setlocal
|
2017-03-01 14:07:34 +01:00
|
|
|
set TOOL_ERROR=0
|
2009-07-17 11:10:31 +02:00
|
|
|
SET NMAKE_COMMAND=%1
|
|
|
|
SHIFT
|
|
|
|
|
|
|
|
:loop
|
|
|
|
if "%1"=="" goto success
|
|
|
|
|
|
|
|
ECHO Building %1
|
|
|
|
pushd %1
|
|
|
|
nmake %NMAKE_COMMAND%
|
2014-08-28 15:53:34 +02:00
|
|
|
if ERRORLEVEL 1 (
|
|
|
|
set /A TOOL_ERROR= %TOOL_ERROR% + %ERRORLEVEL%
|
|
|
|
goto error
|
|
|
|
)
|
2009-07-17 11:10:31 +02:00
|
|
|
ECHO %1 built successfully (%NMAKE_COMMAND%)
|
|
|
|
ECHO.
|
|
|
|
shift
|
|
|
|
popd
|
|
|
|
goto loop
|
|
|
|
|
|
|
|
:success
|
|
|
|
goto exit
|
|
|
|
|
|
|
|
:error
|
|
|
|
popd
|
2014-08-28 15:53:34 +02:00
|
|
|
set /A TOOL_ERROR=%TOOL_ERROR%+%ERRORLEVEL%
|
2009-07-17 11:10:31 +02:00
|
|
|
ECHO Error while making %1!
|
|
|
|
VERIFY OTHER 2>NUL
|
|
|
|
|
|
|
|
:exit
|
2014-08-28 15:53:34 +02:00
|
|
|
exit /B %TOOL_ERROR%
|