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

  1. echo off
  2. cls
  3.  
  4. echo Compiling %1.c using Microsoft 6.0
  5.  
  6. rem  ******************************************
  7. rem  Microsoft V6.0 Compile and Link batch file
  8. rem  ******************************************
  9. rem  Source file currently being compiled     = %1 
  10. rem  Name of EXE file placed in EXE 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 source file in large model 
  17. cl >%4 /AL /c /w /Oegs /Gt32 /DANSI /DMSDOS /DMOUSE /I%3 /I%5 %1.c
  18.  
  19. rem  If an error occurs, abort...
  20. if errorlevel 1 goto done
  21.  
  22. rem  Compiled without error so delete the empty error file
  23. del %4
  24.  
  25. rem  Link the resulting object file to produce the executable 
  26. link /Se:256 /St:8192 /E /F /PACKCODE %2,%2,nul,%3\supmsc60;
  27.  
  28. rem If you are using Oracle, use this link line
  29. rem link /Se:512 /St:16384 /B %2,%2,nul,%3\supmsc51 \oracle5\pro\sqlmsc; >%4
  30.  
  31. type %4
  32.  
  33. rem  If an error occurs, abort...
  34. if errorlevel 1 goto done
  35.  
  36. rem  Delete the object file left behind
  37. del %2.obj
  38.  
  39. :done
  40.