home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / gzip124.zip / gzip-1.2.4 / amiga / Makefile.gcc next >
Makefile  |  1993-06-22  |  2KB  |  63 lines

  1. # Makefile for gzip (GNU zip)    -*- Indented-Text -*-
  2. # Copyright (C) 1992-1993 Jean-loup Gailly and the Free Software Foundation
  3.  
  4. # Amiga GCC version, written by Preston Hunt <gt5708a@prism.gatech.edu>
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. CC = gcc
  21. CPP = cpp
  22.  
  23. CFLAGS = -m68020 -m68881 -O2
  24. #CFLAGS = -m68000 -O2
  25. #for the 68000, set below: OBJA=
  26. CPPFLAGS = -Dmc68020
  27. LDFLAGS = 
  28. O = .o
  29.  
  30. SRCS = gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c crypt.c\
  31.        lzw.c unlzw.c unpack.c unlzh.c makecrc.c getopt.c match.S
  32.  
  33. OBJA = match$O
  34.  
  35. OBJS = gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O util$O \
  36.        crypt$O lzw$O unlzw$O unpack$O unlzh$O getopt$O match$O
  37.  
  38. HDRS = gzip.h lzw.h tailor.h revision.h crypt.h getopt.h
  39.  
  40. .c.o:
  41.     $(CC) -c $(DEFS) $(CFLAGS) $<
  42.  
  43. .PHONY: default all
  44. all:    gzip
  45.  
  46. gzip: $(OBJS)
  47.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  48.  
  49. gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
  50. util$O lzw$O unlzw$O unpack$O unlzh$O crypt$O: gzip.h tailor.h
  51.  
  52. gzip$O unlzw$O: revision.h lzw.h
  53.  
  54. bits$O unzip$O util$O zip$O: crypt.h
  55.  
  56. gzip$O getopt$O: getopt.h
  57.  
  58. match$O: match.S
  59.     $(CPP) $(CPPFLAGS) match.S > _match.s
  60.     $(CC) -c _match.s
  61.     mv _match$O match$O
  62.     rm -f _match.s
  63.