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