diff -2rcN zip-1.9/fileio.c zip/fileio.c *** zip-1.9/fileio.c Wed Sep 9 12:19:50 1992 --- zip/fileio.c Wed Sep 9 11:36:47 1992 *************** *** 141,149 **** # include # endif /* !MINIX */ ! # include ! int gtty OF((int, struct sgttyb *)); ! int stty OF((int, struct sgttyb *)); ! # define GTTY gtty ! # define STTY stty # endif /* ?TERMIO */ int isatty OF((int)); --- 141,157 ---- # include # endif /* !MINIX */ ! # ifdef AMIGA ! # include ! # define GTTY(f,s) ioctl(f,TIOCGETA,s) ! # define STTY(f,s) ioctl(f,TIOCSETAW,s) ! # define sgttyb termios ! # define sg_flags c_lflag ! # else ! # include ! int gtty OF((int, struct sgttyb *)); ! int stty OF((int, struct sgttyb *)); ! # define GTTY gtty ! # define STTY stty ! # endif /*!AMIGA*/ # endif /* ?TERMIO */ int isatty OF((int)); *************** *** 1974,1981 **** --- 1982,1993 ---- if (!isatty(2)) return NULL; /* error if not tty */ + #ifndef AMIGA if ((f = open(ttyname(2), 0, 0)) == -1) return NULL; + #endif #endif /* !VMS */ + #ifndef AMIGA echoff(f); /* turn echo off */ + #endif #endif /* !MSDOS */ *************** *** 1995,1999 **** --- 2007,2015 ---- c = '\n'; #else /* !MSVMS */ + #ifdef AMIGA + read(0, &c, 1); + #else read(f, &c, 1); + #endif #endif /* ?MSVMS */ if (i < n) *************** *** 2006,2012 **** --- 2022,2032 ---- #ifndef MSDOS + #ifndef AMIGA echon(); /* turn echo back on */ + #endif #ifndef VMS + #ifndef AMIGA close(f); + #endif #endif /* !VMS */ #endif /* !MSDOS */ diff -2rcN zip-1.9/makefile zip/makefile *** zip-1.9/makefile Wed Sep 9 12:43:32 1992 --- zip/makefile Wed Sep 9 12:40:45 1992 *************** *** 8,12 **** @echo 'convex, cray, cray3, dec_osf1, dnix, hpux, isc, linux,' @echo 'minix, next, next10, scodos, sun, sun_gcc, sysv, sysv_386,' ! @echo 'sysv_old, ultrix, xenix, xos, zilog.' @echo 'See the files install.doc and zip.doc for more information.' @echo '' --- 8,12 ---- @echo 'convex, cray, cray3, dec_osf1, dnix, hpux, isc, linux,' @echo 'minix, next, next10, scodos, sun, sun_gcc, sysv, sysv_386,' ! @echo 'sysv_old, ultrix, xenix, xos, zilog, amiga_gcc.' @echo 'See the files install.doc and zip.doc for more information.' @echo '' *************** *** 237,240 **** --- 237,244 ---- xos: $(MAKE) zips CFLAGS="-O -DTERMIO" + + # amiga_gcc: Amiga with Markus Wild gcc and dmake + amiga_gcc: + dmake -f makefile.amiga zips # clean up after making stuff and installing it diff -2rcN zip-1.9/makefile.amiga zip/makefile.amiga *** zip-1.9/makefile.amiga --- zip/makefile.amiga Wed Sep 9 10:02:09 1992 *************** *** 0 **** --- 1,49 ---- + # Makefile for Zip, ZipNote and ZipSplit + + BIND = gcc + CFLAGS = -O2 + + CRYPTO = crypt.o + CLOAK = zipcloak + CRFLAG = -DCRYPT + + # object file lists + OBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o $(CRYPTO) + + OBJI = deflate.o trees.o bits.o + OBJU = zipfile._o zipup._o fileio._o util._o globals._o + OBJN = zipnote._o $(OBJU) + OBJC = zipcloak._o $(OBJU) crypt._o + OBJS = zipsplit._o $(OBJU) + + # rules for zip, zipnote, zipcloak, zipsplit + $(OBJZ): zip.h ziperr.h tailor.h + $(OBJI): zip.h ziperr.h tailor.h + $(OBJN): zip.h ziperr.h tailor.h + $(OBJS): zip.h ziperr.h tailor.h + $(OBJC): zip.h ziperr.h tailor.h + + # suffix rules + .SUFFIXES: + .SUFFIXES: ._o .o .c + .c._o: + $(CC) $(CFLAGS) -DUTIL -resident $(CRFLAG) -c $< -o $*._o + + .c.o: + $(CC) $(CFLAGS) $(CRFLAG) -c $< + + ZIPS = zip$E zipnote$E zipsplit$E $(CLOAK)$E + zips: $(ZIPS) + + zip.o zipup.o: revision.h + + zip$E: $(OBJZ) $(OBJI) # it's not resident + $(BIND) -o zip$E $(LFLAGS1) $(OBJZ) $(OBJI) $(OBJA) $(LFLAGS2) + zipnote$E: $(OBJN) + $(BIND) -o zipnote$E -resident $(LFLAGS1) $(OBJN) $(LFLAGS2) + zipcloak$E: $(OBJC) + $(BIND) -o zipcloak$E -resident $(LFLAGS1) $(OBJC) $(LFLAGS2) + zipsplit$E: $(OBJS) + $(BIND) -o zipsplit$E -resident $(LFLAGS1) $(OBJS) $(LFLAGS2) + + # end of Makefile