Commit | Line | Data |
f355267c |
1 | @echo off |
2 | @rem AUTHOR: sgp & apc |
3 | @rem CREATED: 24th July 2000 |
4 | @rem LAST REVISED: 6th April 2001 |
5 | @rem LAST REVISED: 22nd May 2002 |
6 | @rem AUTHOR: apc |
7 | @rem Batch file to set the path to CodeWarrior directories |
8 | @rem This file is called from SetNWBld.bat. |
9 | |
10 | if "%1" == "/now" goto now |
11 | if "%1" == "" goto Usage |
12 | if "%1" == "/?" goto usage |
13 | if "%1" == "/h" goto usage |
14 | |
15 | set CODEWAR=%1 |
16 | ECHO CODEWAR=%1 |
17 | |
18 | call buildtype r |
19 | @echo Buildtype set to Release type |
20 | |
21 | set MWCIncludes=%1\include |
22 | @echo MWCIncludes=%1\include |
23 | set MWLibraries=%1\lib |
24 | @echo MWLibraries=%1\lib |
25 | set MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib |
26 | @echo MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib |
27 | |
28 | set PATH=%PATH%;%1\bin; |
29 | @echo PATH=%PATH%;%1\bin; |
30 | |
31 | goto exit |
32 | |
33 | :now |
34 | @echo CODEWAR=%CODEWAR% |
35 | goto exit |
36 | |
37 | :Usage |
38 | @echo on |
39 | @echo "Usage: setCodeWar <Path to CodeWarrior binaries>" |
40 | @echo "Usage: setCodeWar /now" - To display current setting |
41 | @echo Ex. setCodeWar d:\CodeWar |
42 | |
43 | :exit |