1 | # Makefile for gzip (GNU zip) -*- Indented-Text -*-
|
---|
2 | # This is free software; you can redistribute it and/or modify it under the
|
---|
3 | # terms of the GNU General Public License, see the file COPYING.
|
---|
4 |
|
---|
5 | # Simple Atari-specific makefile for gcc.
|
---|
6 | # Written by Daniel Eriksson <den@hgs.se>
|
---|
7 | # Modified by Andreas Schwab <schwab@ls5.informatik.uni-dortmund.de>
|
---|
8 | # and Robert Fischer <fischer-robert@cs.yale.edu>.
|
---|
9 |
|
---|
10 | # This Makefile is configured by default for the Atari ST using the
|
---|
11 | # Minix filesytem. It can be modified (for efficiency) for an Atari TT
|
---|
12 | # according to the instructions given below. It must be modified
|
---|
13 | # for building a TOS-filesystem version.
|
---|
14 |
|
---|
15 | CC=gcc
|
---|
16 | BASIC_FLAGS = -O2 -DATARI
|
---|
17 |
|
---|
18 | # Use this for a TT-only version
|
---|
19 | #TT_FLAGS = -m68020
|
---|
20 |
|
---|
21 | # CFLAGS for building a Minix-filesystem version
|
---|
22 | CFLAGS = $(BASIC_FLAGS) $(TT_FLAGS)
|
---|
23 |
|
---|
24 | # CFLAGS for building a TOS-filesystem version
|
---|
25 | #CFLAGS = $(BASIC_FLAGS) $(TT_FLAGS) -DTOSFS
|
---|
26 |
|
---|
27 | AS=$(CC) -c
|
---|
28 | ASFLAGS = $(CFLAGS)
|
---|
29 | LDFLAGS =
|
---|
30 |
|
---|
31 | OBJA = match.o
|
---|
32 | OBJS = bits.o crypt.o deflate.o getopt.o gzip.o inflate.o lzw.o \
|
---|
33 | trees.o unlzw.o unpack.o unlzh.o unzip.o util.o zip.o $(OBJA)
|
---|
34 |
|
---|
35 | gzip.ttp: $(OBJS)
|
---|
36 | $(CC) $(LDFLAGS) -o gzip.ttp $(OBJS)
|
---|
37 |
|
---|
38 | gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o: gzip.h tailor.h
|
---|
39 | util.o lzw.o unlzw.o unpack.o unlzh.o crypt.o: gzip.h tailor.h
|
---|
40 |
|
---|
41 | gzip.o unlzw.o: revision.h lzw.h
|
---|
42 |
|
---|
43 | bits.o unzip.o util.o zip.o: crypt.h
|
---|
44 |
|
---|
45 | gzip.o getopt.o: getopt.h
|
---|
46 |
|
---|
47 | match.o: match.S
|
---|
48 | $(AS) $(ASLAGS) match.S
|
---|