home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / mgl5src1.zip / mgl / bin / wc11-tnt.bat < prev    next >
DOS Batch File  |  2002-08-21  |  2KB  |  47 lines

  1. @echo off
  2. REM Setup for compiling with Watcom C/C++ 11.0 in 32 bit mode with Phar Lap TNT
  3.  
  4. if .%CHECKED%==.1 goto checked_build
  5. SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\WC11;%WC11_PATH%\LIB386;%WC11_PATH%\LIB386\DOS;%TNT_PATH%\LIB;.
  6. echo Release build enabled.
  7. goto setvars
  8.  
  9. :checked_build
  10. SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\WC11;%WC11_PATH%\LIB386;%WC11_PATH%\LIB386\DOS;%TNT_PATH%\LIB;.
  11. echo Checked debug build enabled.
  12. goto setvars
  13.  
  14. :setvars
  15. SET EDPATH=%WC11_PATH%\EDDAT
  16. SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%WC11_PATH%\H;%WC11_PATH%\H\NT;%TNT_PATH%\INCLUDE
  17. SET WATCOM=%WC11_PATH%
  18. SET MAKESTARTUP=%SCITECH%\MAKEDEFS\WC32.MK
  19. SET USE_TNT=1
  20. SET USE_X32=
  21. SET USE_X32VM=
  22. SET USE_WIN16=
  23. SET USE_WIN32=
  24. SET USE_WIN386=
  25. SET USE_OS216=
  26. SET USE_OS232=
  27. SET USE_OS2GUI=
  28. SET USE_SNAP=
  29. SET USE_QNX4=
  30. SET WC_LIBBASE=WC11
  31. PATH %SCITECH_BIN%;%WC11_PATH%\BINNT;%WC11_PATH%\BINW;%DEFPATH%%WC_CD_PATH%
  32.  
  33. REM If you set the following to a 1, a TNT DosStyle app will be created.
  34. REM Otherwise a TNT NtStyle app will be created. NtStyle apps will *only*
  35. REM run under real DOS when using our libraries, since we require access
  36. REM to functions that the Win32 API does not support (such as direct access
  37. REM to video memory, calling Int 10h BIOS functions etc). DosStyle apps
  38. REM will however run fine in both DOS and a Win95 DOS box (NT DOS boxes don't
  39. REM work too well).
  40. REM
  41. REM If you are using the RealTime DOS extender, your apps *must* be NtStyle,
  42. REM and hence will never be able to run under Win95 or WinNT, only DOS.
  43.  
  44. SET DOSSTYLE=1
  45.  
  46. echo Watcom C/C++ 11.0 32-bit DOS compilation environment set up (TNT).
  47.