CC = sc
DEFS = DEF=AMIGA
LIBS = LIB LIB:scnb.lib
CFLAGS = DATA=FAR NOSTKCHK PARM=R IDIR=
OPTFLAGS = OPT OPTGO OPTPEEP OPTCOMP=3 OPTDEP=3 OPTRDEP=3
LDFLAGS = FROM LIB:c.o
OBJS = gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util.o \
crypt.o lzw.o unlzw.o unpack.o unlzh.o getopt.o tailor.o match.o
.c.o:
$(CC) $(DEFS) $(CFLAGS) $(OPTFLAGS) $<
.a.o:
$(CC) $(DEFS) $(CFLAGS) $<
all: gzip
gzip: $(OBJS)
slink $(LDFLAGS) $(OBJS) TO $@ $(LIBS)
gzip.o: gzip.c gzip.h tailor.h revision.h lzw.h getopt.h
zip.o: zip.c gzip.h tailor.h crypt.h
deflate.o: deflate.c gzip.h tailor.h lzw.h
trees.o: trees.c gzip.h tailor.h
bits.o: bits.c gzip.h tailor.h crypt.h
unzip.o: unzip.c gzip.h tailor.h crypt.h
inflate.o: inflate.c gzip.h tailor.h
util.o: util.c gzip.h tailor.h crypt.h
lzw.o: lzw.c lzw.h gzip.h tailor.h
unlzw.o: unlzw.c gzip.h tailor.h lzw.h
unpack.o: unpack.c gzip.h tailor.h crypt.h
unlzh.o: unlzh.c gzip.h tailor.h lzw.h
crypt.o: crypt.c
getopt.o: getopt.c getopt.h
tailor.o: tailor.c
match.o: match.a