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 #
|
2017-03-01 14:07:34 +01:00
|
|
|
@REM # Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
|
2010-05-18 07:04:32 +02:00
|
|
|
@REM # This program and the accompanying materials
|
2010-03-01 00:39:39 +01:00
|
|
|
@REM # are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
@REM # which accompanies this distribution. The full text of the license may be found at
|
|
|
|
@REM # http://opensource.org/licenses/bsd-license.php
|
|
|
|
@REM #
|
|
|
|
@REM # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
2014-01-27 06:23:15 +01:00
|
|
|
@REM # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2014-08-28 15:53:34 +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%
|