3 @rem CREATED: 24th July 2000
4 @rem LAST REVISED: 6th April 2001
5 @rem Batch file to set debug/release build and toggle D2 flag for
6 @rem debugging in case of debug build.
7 @rem This file calls ToggleD2.bat which switches b/n d2 & d1 flags
9 if "%1" == "" goto Usage
10 if "%1" == "/now" goto now
11 if "%1" == "/?" goto usage
12 if "%1" == "/h" goto usage
14 if "%1" == "r" goto set_type_rel
15 if "%1" == "R" goto set_type_rel
17 if "%1" == "d" goto set_type_dbg
18 if "%1" == "D" goto set_type_dbg
20 Rem Invalid input and so display the help message
25 echo ....Build set to %MAKE_TYPE%
30 echo ....Build set to %MAKE_TYPE%
31 if "%2" == "" goto set_d2_off
41 if "%MAKE_TYPE%" == "" echo MAKE_TYPE is not set, hence it defaults to Release build
42 if not "%MAKE_TYPE%" == "" echo Current build type is - %MAKE_TYPE%
48 @echo "Usage: buildtype r/R|d/D [on/off]"
49 @echo on/off - Toggling only for D2 flag during debug build
50 @echo "Usage: buildtype /now" - To display current setting
51 @echo Ex. buildtype d on