home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- if %linker%x == x goto deflink
- goto compile
-
- :deflink
- set linker=link
-
- :compile
- if exist %1.c goto compileok
- if x%1 == x goto compileok
- echo Source file %1.c does not exist
- goto finish
-
- :compileok
- set lib=\cc
- set include=\cc\include
- cc %1 %2 %3 %4 %5 %6
- if errorlevel 1 goto finish
-
- %linker% %1,%1,%1,ccl;
- :finish
-