home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / FC20C.ZIP / LC.BAT < prev    next >
DOS Batch File  |  1990-08-20  |  689b  |  31 lines

  1. @echo off
  2. rem *
  3. rem * Link object modules with libraries into ".COM" file
  4. rem *
  5. rem * Copyright 1988,1990 Dave Dunfield
  6. rem *
  7. echo MICRO-C 2.0 by Dave Dunfield.
  8. if .%1 == . goto help
  9. if .%1 == .-s goto small
  10. :tiny
  11. echo Linking TINY model...
  12. link/noi \mc\8086RL_T %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,\mc\MCLIB;
  13. if errorlevel 1 goto fail
  14. echo Converting...
  15. exe2bin %1 %1.COM
  16. del %1.EXE
  17. goto stop
  18. :small
  19. if .%2 == . goto help
  20. echo Linking SMALL model...
  21. shift
  22. link/noi \mc\8086RL_S %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,\mc\MCLIB;
  23. if errorlevel 1 goto fail
  24. goto stop
  25. :help
  26. echo Use: "%0 [-s] <filename(s)> ..."
  27. goto stop
  28. :fail
  29. echo Link aborted due to errors!!!
  30. :stop
  31.