home *** CD-ROM | disk | FTP | other *** search
- :cl.bat
- :
- : This batch file will compile and link the specified source using
- : MICROSOFT v4.0.
- :
- : The compiler files are assumed to be in c:\ms
- : The compiler libraries are assumed to be in c:\ms\s
- : The C source file is assumed to be in the default directory on c:
- : All of the .h files are assumed to be on d:
- : The Windows for C library is assumed to be in c:\ms\s
- : The object file will be placed on d:
- :
- : You may have to modify this batch file to fit your situation
- :
- echo off
- if "%1" == "" goto ERROR
- :
- : Compile the program
- :
- set INCLUDE=d:
- set LIB=c:\ms\s
- set TMP=d:
- echo Compiling %1
- msc %1, d:%1.obj /DLINT_ARGS /AS /Zl;
- :
- : Link the program
- :
- : The object module is assumed to be on d:
- : The executable file will be created on d:
- :
- : Use the next line for floating point support
- :
- :link d:%1, d:%1, d:%1/map, wfcs + em + slibfp + slibc + libh
- :
- : Otherwise use this line
- :
- link d:%1, d:%1, d:%1/map, wfcs + slibc + libh
- set INCLUDE=
- set LIB=
- set TMP=
- goto EXIT
- :
- :ERROR
- :
- echo Correct usage: cl [filename - no extension]
- :
- :EXIT