]>
Commit | Line | Data |
---|---|---|
52302d4d | 1 | @REM ## @file\r |
97fa0ee9 | 2 | @REM # Makefile\r |
52302d4d | 3 | @REM #\r |
97fa0ee9 | 4 | @REM # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r |
40d841f6 | 5 | @REM # This program and the accompanying materials\r |
52302d4d LG |
6 | @REM # are licensed and made available under the terms and conditions of the BSD License\r |
7 | @REM # which accompanies this distribution. The full text of the license may be found at\r | |
8 | @REM # http://opensource.org/licenses/bsd-license.php\r | |
9 | @REM #\r | |
10 | @REM # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
f51461c8 | 11 | @REM # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
97fa0ee9 | 12 | @REM # \r |
52302d4d | 13 | \r |
30fdf114 | 14 | @echo off\r |
97fa0ee9 | 15 | @set TOOL_ERROR=0\r |
30fdf114 LG |
16 | setlocal\r |
17 | SET NMAKE_COMMAND=%1\r | |
18 | SHIFT\r | |
19 | \r | |
20 | :loop\r | |
21 | if "%1"=="" goto success\r | |
22 | \r | |
23 | ECHO Building %1\r | |
24 | pushd %1\r | |
25 | nmake %NMAKE_COMMAND%\r | |
97fa0ee9 YL |
26 | if ERRORLEVEL 1 (\r |
27 | set /A TOOL_ERROR= %TOOL_ERROR% + %ERRORLEVEL%\r | |
28 | goto error\r | |
29 | )\r | |
30fdf114 LG |
30 | ECHO %1 built successfully (%NMAKE_COMMAND%)\r |
31 | ECHO.\r | |
32 | shift\r | |
33 | popd\r | |
34 | goto loop\r | |
35 | \r | |
36 | :success\r | |
37 | goto exit\r | |
38 | \r | |
39 | :error\r | |
40 | popd\r | |
97fa0ee9 | 41 | set /A TOOL_ERROR=%TOOL_ERROR%+%ERRORLEVEL%\r |
30fdf114 LG |
42 | ENDLOCAL\r |
43 | ECHO Error while making %1!\r | |
44 | VERIFY OTHER 2>NUL\r | |
45 | \r | |
46 | :exit\r | |
97fa0ee9 | 47 | exit /B %TOOL_ERROR%\r |