vc40-tnt.bat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @echo off
  2. REM Setup environment variables for Visual C++ 4.2 32 bit edition
  3. if .%CHECKED%==.1 goto checked_build
  4. set LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\VC4;%VC4_PATH%\LIB;%TNT_PATH%\COFFLIB;.
  5. echo Release build enabled.
  6. goto setvars
  7. :checked_build
  8. set LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\VC4;%VC4_PATH%\LIB;%TNT_PATH%\COFFLIB;.
  9. echo Checked debug build enabled.
  10. goto setvars
  11. :setvars
  12. set TOOLROOTDIR=%VC4_PATH%
  13. set INCLUDE=.;INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%VC4_PATH%\INCLUDE;%TNT_PATH%\INCLUDE;
  14. set INIT=%VC4_PATH%
  15. SET MAKESTARTUP=%SCITECH%\MAKEDEFS\VC32.MK
  16. SET USE_WIN16=
  17. SET USE_WIN32=
  18. SET USE_TNT=
  19. SET USE_VXD=
  20. SET USE_NTDRV=
  21. SET USE_RTTARGET=
  22. SET USE_SNAP=
  23. SET VC_LIBBASE=VC4
  24. PATH %SCITECH_BIN%;%VC4_PATH%\BIN;%TNT_PATH%\BIN;%DEFPATH%%VC32_CD_PATH%
  25. REM If you set the following to a 1, a TNT DosStyle app will be created.
  26. REM Otherwise a TNT NtStyle app will be created. NtStyle apps will *only*
  27. REM run under real DOS when using our libraries, since we require access
  28. REM to functions that the Win32 API does not support (such as direct access
  29. REM to video memory, calling Int 10h BIOS functions etc). DosStyle apps
  30. REM will however run fine in both DOS and a Win95 DOS box (NT DOS boxes don't
  31. REM work too well).
  32. REM
  33. REM If you are using the RealTime DOS extender, your apps *must* be NtStyle,
  34. REM and hence will never be able to run under Win95 or WinNT, only DOS.
  35. SET DOSSTYLE=
  36. echo Visual C++ 4.2 32-bit DOS compilation environment set up (TNT).