home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gzip-1.2.3 / amiga / Makefile.sasc < prev    next >
Encoding:
Makefile  |  1993-06-23  |  2.0 KB  |  61 lines

  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 IDIR=
  27. OPTFLAGS = OPT OPTGO OPTPEEP OPTCOMP=3 OPTDEP=3 OPTRDEP=3
  28. # PARM=R not yet supported in CFLAGS
  29. LDFLAGS = FROM LIB:c.o
  30.  
  31. OBJS = gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util.o \
  32.       crypt.o lzw.o unlzw.o unpack.o unlzh.o getopt.o tailor.o match.o
  33.  
  34. .c.o:
  35.     $(CC) $(DEFS) $(CFLAGS) $(OPTFLAGS) $<
  36. .a.o:
  37.     $(CC) $(DEFS) $(CFLAGS) $<
  38.  
  39. all: gzip
  40.  
  41. gzip: $(OBJS)
  42.     slink $(LDFLAGS) $(OBJS) TO $@ $(LIBS)
  43.  
  44. gzip.o: gzip.c gzip.h tailor.h revision.h lzw.h getopt.h
  45. zip.o: zip.c gzip.h tailor.h crypt.h
  46. deflate.o: deflate.c gzip.h tailor.h lzw.h
  47. trees.o: trees.c gzip.h tailor.h
  48. bits.o: bits.c gzip.h tailor.h crypt.h
  49. unzip.o: unzip.c gzip.h tailor.h crypt.h
  50. inflate.o: inflate.c gzip.h tailor.h
  51. util.o: util.c gzip.h tailor.h crypt.h
  52. lzw.o: lzw.c lzw.h gzip.h tailor.h
  53. unlzw.o: unlzw.c gzip.h tailor.h lzw.h
  54. unpack.o: unpack.c gzip.h tailor.h crypt.h
  55. unlzh.o: unlzh.c gzip.h tailor.h lzw.h
  56. crypt.o: crypt.c
  57. getopt.o: getopt.c getopt.h
  58. tailor.o: tailor.c
  59.  
  60. match.o: match.a
  61.