]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/bin/bc45-tnt.bat
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / bin / bc45-tnt.bat
1 @echo off
2 REM Setup for compiling with Borland C++ 4.5 in 32 bit mode with Phar Lap TNT
3
4 if .%CHECKED%==.1 goto checked_build
5 SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BC4;%BC4_PATH%\LIB;%TNT_PATH%\LIB;.
6 echo Release build enabled.
7 goto setvars
8
9 :checked_build
10 SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BC4;%BC4_PATH%\LIB;%TNT_PATH%\LIB;.
11 echo Checked debug build enabled.
12 goto setvars
13
14 :setvars
15 SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;%TNT_PATH%\INCLUDE;
16 SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
17 SET USE_DPMI16=
18 SET USE_WIN16=
19 SET USE_WIN32=
20 SET USE_VXD=
21 SET USE_TNT=1
22 SET USE_BC5=
23 SET WIN32_GUI=
24 SET USE_SNAP=
25 SET BC_LIBBASE=BC4
26 PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%TNT_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
27
28 REM If you set the following to a 1, a TNT DosStyle app will be created.
29 REM Otherwise a TNT NtStyle app will be created. NtStyle apps will *only*
30 REM run under real DOS when using our libraries, since we require access
31 REM to functions that the Win32 API does not support (such as direct access
32 REM to video memory, calling Int 10h BIOS functions etc). DosStyle apps
33 REM will however run fine in both DOS and a Win95 DOS box (NT DOS boxes don't
34 REM work too well).
35 REM
36 REM If you are using the RealTime DOS extender, your apps *must* be NtStyle,
37 REM and hence will never be able to run under Win95 or WinNT, only DOS.
38
39 SET DOSSTYLE=
40
41 REM: Create Borland compile/link configuration scripts
42 echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
43 echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
44 echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
45
46 echo Borland C++ 4.5 32 bit DOS compilation configuration set up (TNT).