bc45-tnt.bat 1.6 KB

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