home *** CD-ROM | disk | FTP | other *** search
- ; This batch file will update your system libraies to include the
- ; ontrap() and the trapcode() functions.
- ;
- ; This batch file makes several assuptions:
- ; 1. You are executing this file with the source supplied in this
- ; archive in the current directory.
- ; 2. The standard Lattice 5.04 environment is present. This should include:
- ; INCLUDE:, LIB:, and LC: are assigned and
- ; LIB: contains C.O, CRES.O, LC.LIB, LCS.LIB, LCNB.LIB and LCSNB.LIB.
- ; Echo, delete, and copy are available somewhere in your PATH.
- ; 3. Your disks have enough room for the added file sizes.
- ; PLEASE PLEASE PLEASE backup your disks first!!!
- ;
- ; Once these conditions have been verified and you have read ontrap.doc, type
- ; EXECUTE read.me
- echo "Installing ontrap & trapcode to your Lattice C 5.04 developement system"
- echo "Assembling c.a"
- lattice_c_5.0.5:asm -u -iLattice_C_5.0.5:Assembler_Headers/ -olib:c.o c.a
- echo "Assembling cres.a"
- lattice_c_5.0.5:asm -u -dRESIDENT -iLattice_C_5.0.5:Assembler_Headers/ -olib:cres.o c.a
- ;
- echo "Assembling trapcode.a"
- lattice_c_5.0.5:asm -u trapcode.a
- ;
- echo "Assembling ontrap.a"
- lattice_c_5.0.5:asm -u ontrap.a
- ;
- if exists lib:lc.lib
- LC:lc -v umain cxtrap
- echo "Modifying LC.LIB"
- lattice_c_5.0.3:c/oml lib:LC.LIB r ontrap.o trapcode.o umain.o cxtrap.o
- else
- echo "lc.lib not found"
- endif
- ;
- if exists lib:lcs.lib
- LC:lc -v -w umain cxtrap
- echo "Modifying LCS.LIB"
- lattice_c_5.0.3:c/oml lib:LCS.LIB r ontrap.o trapcode.o umain.o cxtrap.o
- else
- echo "LCS.LIB not found"
- endif
- ;
- if exists lib:lcnb.lib
- LC:lc -v -b0 umain cxtrap
- echo "Modifying LCNB.LIB"
- lattice_c_5.0.3:c/oml lib:LCNB.LIB r ontrap.o trapcode.o umain.o cxtrap.o
- else
- echo "LCNB.LIB not found"
- endif
- ;
- if exists lib:lcsnb.lib
- LC:lc -v -b0 -w umain cxtrap
- echo "Modifying LCSNB.LIB"
- lattice_c_5.0.3:c/oml lib:LCSNB.LIB r ontrap.o trapcode.o umain.o cxtrap.o
- else
- echo "LCSNB.LIB not found"
- endif
- ;
- echo "Cleanup. Removing .o files"
- delete ontrap.o trapcode.o umain.o cxtrap.o
- ;
- echo "Installation complete!"
- echo "You should now backup C.O, CRES.O, LC.LIB, LCS.LIB, LCNB.LIB and LCSNB.LIB."
-