home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem *
- rem * Link object modules with libraries into ".COM" file
- rem *
- rem * Copyright 1988,1990 Dave Dunfield
- rem *
- echo MICRO-C 2.0 by Dave Dunfield.
- if .%1 == . goto help
- if .%1 == .-s goto small
- :tiny
- echo Linking TINY model...
- link/noi \mc\8086RL_T %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,\mc\MCLIB;
- if errorlevel 1 goto fail
- echo Converting...
- exe2bin %1 %1.COM
- del %1.EXE
- goto stop
- :small
- if .%2 == . goto help
- echo Linking SMALL model...
- shift
- link/noi \mc\8086RL_S %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,\mc\MCLIB;
- if errorlevel 1 goto fail
- goto stop
- :help
- echo Use: "%0 [-s] <filename(s)> ..."
- goto stop
- :fail
- echo Link aborted due to errors!!!
- :stop
-