home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / PROCLIB2.ZIP / LIB3.ZIP / CCTUR10.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-08-15  |  1.2 KB  |  44 lines

  1. echo off
  2. cls
  3.  
  4. echo Compiling %1.c using Turbo C++ 1.0
  5.  
  6. rem  ***************************************************
  7. rem  Borland Turbo C++ V1.0  Compile and Link batch file
  8. rem  ***************************************************
  9. rem  Source file currently being compiled = %1
  10. rem  Located in EXE sub-directory = %2
  11. rem  Directory where the compiler/linker will find the Workbench
  12. rem  library Include files and compiler batch files = %3
  13. rem  Compiler error file = %4
  14. rem  Alternate Include directory = %5
  15.  
  16. rem  Compile the file in large model
  17. tcc -O -Z -G -c -a -ml -w- -DMOUSE -I\tc\include -I%3 -I%5 %1 >%4
  18.  
  19. rem  If an error occurs, abort...
  20. if errorlevel 1 goto error
  21.  
  22. rem  Compiled without error so delete the empty error file
  23. del %4
  24.  
  25. rem  Link the object file to produce an executable
  26. tlink /n \tc\lib\c0l %2,%2,nul,\tc\lib\emu \tc\lib\mathl \tc\lib\cl \proc\suptur10
  27. rem line may be too long for error file as well
  28. rem >%4
  29.  
  30. rem type %4
  31.  
  32. rem  If an error occurs, abort...
  33. if errorlevel 1 goto error
  34.  
  35. rem  Delete the object file left behind
  36. del %2.obj
  37. goto done
  38.  
  39. rem  Delete the executable, since tlink does not do this
  40. :error
  41. del %2.exe
  42.  
  43. :done
  44.