home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ccdos / ccvibm.bat < prev    next >
DOS Batch File  |  2020-01-01  |  1KB  |  41 lines

  1. echo off
  2. echo Constructing Kermit-CC for IBM-PCs.
  3. echo Please use option "/DCGA" if you want to make a Kermit version running
  4. echo on CGA or MDA machines.
  5. Break on
  6. Rem  Assumes all files are on the current disk.
  7. Rem  If there is insufficient disk space then the command
  8. Rem  "masm filespec.asm;"
  9. Rem  may be typed individually for each .asm file.
  10. Rem  Note: files CCSDEF.H and CCVIBM.LNK must be in the current directory for
  11. Rem  use by masm and link, respectively.
  12.  
  13. Rem  First, the system independent .asm files: ccscmd, ccscom, ccsfil, ccsker,
  14. Rem  ccsrcv, ccsscp, ccssen, ccsser, ccsset, ccster, ccsfin
  15. if not exist ccsdef.h goto noheader
  16. echo Make an .OBJ file from each .ASM file.
  17. for %%f in (ccscmd, ccscom, ccsfil, ccsker, ccsrcv, ccsscp) do masm %%f;
  18. for %%f in (ccssen, ccsser, ccsset, ccster, ccsfin) do masm %%f;
  19.  
  20. Rem Second, the system dependent files: ccgibm, ccuibm, ccxibm, ccyibm, cczibm
  21. Rem  cchkos
  22. for %%f in (ccgibm, ccuibm, ccxibm, cczibm, cchkos) do masm %%f;
  23. masm %1 ccyibm;
  24. echo End of Assembly step.
  25.  
  26. Rem  Third, link the Object files, using the appropriate command file.
  27. echo Starting Link step.
  28. link @ccvibm.lnk
  29. if errorlevel 1 goto badlink
  30. echo File CCVIBM.EXE is built.
  31. Rem  Display version number.
  32. ccvibm -f nul, exit
  33. goto done
  34. :noheader
  35. echo ERROR - File CCSDEF.H is needed but could not be found.
  36. goto done
  37. :badlink
  38. echo LINKING ERROR.
  39. :done
  40. echo on
  41.