home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / batch.lzh / CC.BAT next >
Encoding:
DOS Batch File  |  1985-10-17  |  640 b   |  29 lines

  1. echo off
  2. if not $$ == $$%1 goto repeat
  3. pfile %lastfile%
  4. if %_EXT% == .c goto defname
  5. echo You must supply a file name
  6. goto error
  7. :repeat
  8. pfile %1
  9. :defname
  10. echo Compiling %_NAME%
  11. cc1 -dc86 -b -c -i -ha:\c86\,\eva\ -m %_NAME%
  12. if errorlevel 1 goto error
  13. cc2 %_NAME%
  14. if errorlevel 1 goto error
  15. cc3 %_NAME%
  16. if errorlevel 1 goto error
  17. cc4 %_NAME%
  18. if errorlevel 1 goto error
  19. echo %_NAME% seems to have compiled
  20. goto done
  21. :error
  22. beep
  23. echo ********** ERROR COMPILING %1 **********
  24. :done
  25. shift
  26. if $$%1 == $$ goto exit
  27. goto repeat
  28. :exit
  29.