source: trunk/essentials/app-arch/gzip/amiga/Makefile.gcc

Last change on this file was 3325, checked in by bird, 18 years ago

gzip 1.3.11

File size: 1.8 KB
Line 
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
20CC = gcc
21CPP = cpp
22
23CFLAGS = -m68020 -m68881 -O2
24#CFLAGS = -m68000 -O2
25#for the 68000, set below: OBJA=
26CPPFLAGS = -Dmc68020
27LDFLAGS =
28O = .o
29
30SRCS = 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
33OBJA = match$O
34
35OBJS = 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
38HDRS = 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
44all: gzip
45
46gzip: $(OBJS)
47 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
48
49gzip$O zip$O deflate$O trees$O bits$O unzip$O inflate$O: gzip.h tailor.h
50util$O lzw$O unlzw$O unpack$O unlzh$O crypt$O: gzip.h tailor.h
51
52gzip$O unlzw$O: revision.h lzw.h
53
54bits$O unzip$O util$O zip$O: crypt.h
55
56gzip$O getopt$O: getopt.h
57
58match$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
Note: See TracBrowser for help on using the repository browser.