]> git.cworth.org Git - gzip/blob - amiga/Makefile.sasc
Avoid creating an undersized buffer for the hufts table.
[gzip] / amiga / Makefile.sasc
1 # Makefile for gzip (GNU zip)    -*- Indented-Text -*-
2 # This Makefile is for SAS/C 6.3 on the Amiga
3 # Don't use it with SAS/C 6.2 or earlier versions. These versions will
4 # produce incorrect code for trees.c because of a bug in the optimizer.
5 # Made by Carsten Steger (carsten.steger@informatik.tu-muenchen.de)
6
7 # Some notes on gzip for the Amiga:
8 # Due to a strange implementation of the RAM-Disk on Commodore's part
9 # you should not use gzip -r on a directory in the RAM-Disk. To zip all
10 # files in a directory 'dir' in the RAM-Disk use something like
11 # gzip ram:dir/#? ram:dir/#?/#? ...
12 # where the number of '#?'s reflects the depth of the directory 'dir'.
13 #
14 # Alas, the program has it's full functionality only if you have
15 # Kickstart 2.0 or higher installed. This affects the expansion of
16 # wildcards and the preservation of file access times. You should use
17 # a shell that does wildcard expansion under Kickstart 1.3.
18
19
20 CC = sc
21
22 # If you have a 68020 or more you can define UNALIGNED_OK below
23 DEFS = DEF=AMIGA
24 LIBS = LIB LIB:scnb.lib
25
26 CFLAGS = DATA=FAR NOSTKCHK PARM=R IDIR=
27 OPTFLAGS = OPT OPTGO OPTPEEP OPTCOMP=3 OPTDEP=3 OPTRDEP=3
28 LDFLAGS = FROM LIB:c.o
29
30 OBJS = gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util.o \
31       crypt.o lzw.o unlzw.o unpack.o unlzh.o getopt.o tailor.o match.o
32
33 .c.o:
34         $(CC) $(DEFS) $(CFLAGS) $(OPTFLAGS) $<
35 .a.o:
36         $(CC) $(DEFS) $(CFLAGS) $<
37
38 all: gzip
39
40 gzip: $(OBJS)
41         slink $(LDFLAGS) $(OBJS) TO $@ $(LIBS)
42
43 gzip.o: gzip.c gzip.h tailor.h revision.h lzw.h getopt.h
44 zip.o: zip.c gzip.h tailor.h crypt.h
45 deflate.o: deflate.c gzip.h tailor.h lzw.h
46 trees.o: trees.c gzip.h tailor.h
47 bits.o: bits.c gzip.h tailor.h crypt.h
48 unzip.o: unzip.c gzip.h tailor.h crypt.h
49 inflate.o: inflate.c gzip.h tailor.h
50 util.o: util.c gzip.h tailor.h crypt.h
51 lzw.o: lzw.c lzw.h gzip.h tailor.h
52 unlzw.o: unlzw.c gzip.h tailor.h lzw.h
53 unpack.o: unpack.c gzip.h tailor.h crypt.h
54 unlzh.o: unlzh.c gzip.h tailor.h lzw.h
55 crypt.o: crypt.c
56 getopt.o: getopt.c getopt.h
57 tailor.o: tailor.c
58
59 match.o: match.a