home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
-
- echo Compiling %1.c using Microsoft 6.0
-
- rem ******************************************
- rem Microsoft V6.0 Compile and Link batch file
- rem ******************************************
- rem Source file currently being compiled = %1
- rem Name of EXE file placed in EXE directory = %2
- rem Directory where the compiler/linker will find the Workbench
- rem library Include files and compiler batch files = %3
- rem Compiler error file = %4
- rem Alternate Include directory = %5
-
- rem Compile the source file in large model
- cl >%4 /AL /c /w /Oegs /Gt32 /DANSI /DMSDOS /DMOUSE /I%3 /I%5 %1.c
-
- rem If an error occurs, abort...
- if errorlevel 1 goto done
-
- rem Compiled without error so delete the empty error file
- del %4
-
- rem Link the resulting object file to produce the executable
- link /Se:256 /St:8192 /E /F /PACKCODE %2,%2,nul,%3\supmsc60;
-
- rem If you are using Oracle, use this link line
- rem link /Se:512 /St:16384 /B %2,%2,nul,%3\supmsc51 \oracle5\pro\sqlmsc; >%4
-
- type %4
-
- rem If an error occurs, abort...
- if errorlevel 1 goto done
-
- rem Delete the object file left behind
- del %2.obj
-
- :done
-