summaryrefslogtreecommitdiff
path: root/Build/source/utils/gzip/atari/Makefile.st
blob: c32fe9a4b514b4a64d567c96b242f407d176f040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile for gzip (GNU zip)    -*- Indented-Text -*-
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, see the file COPYING.

# Simple Atari-specific makefile for gcc.
# Written by Daniel Eriksson <den@hgs.se>
# Modified by Andreas Schwab <schwab@ls5.informatik.uni-dortmund.de>
# and Robert Fischer <fischer-robert@cs.yale.edu>.

# This Makefile is configured by default for the Atari ST using the
# Minix filesytem. It can be modified (for efficiency) for an Atari TT
# according to the instructions given below. It must be modified
# for building a TOS-filesystem version.

CC=gcc
BASIC_FLAGS = -O2 -DATARI

# Use this for a TT-only version
#TT_FLAGS = -m68020

# CFLAGS for building a Minix-filesystem version
CFLAGS = $(BASIC_FLAGS) $(TT_FLAGS)

# CFLAGS for building a TOS-filesystem version
#CFLAGS = $(BASIC_FLAGS) $(TT_FLAGS) -DTOSFS

AS=$(CC) -c
ASFLAGS = $(CFLAGS)
LDFLAGS =

OBJA = match.o
OBJS = bits.o crypt.o deflate.o getopt.o gzip.o inflate.o lzw.o \
  trees.o unlzw.o unpack.o unlzh.o unzip.o util.o zip.o $(OBJA)

gzip.ttp:	$(OBJS)
	$(CC) $(LDFLAGS) -o gzip.ttp $(OBJS)

gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o: gzip.h tailor.h
util.o lzw.o unlzw.o unpack.o unlzh.o crypt.o: gzip.h tailor.h

gzip.o unlzw.o: revision.h lzw.h

bits.o unzip.o util.o zip.o: crypt.h

gzip.o getopt.o: getopt.h

match.o: match.S
	$(AS) $(ASLAGS) match.S