home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
unix
/
unixports
/
tarsrc
/
tar1112
/
Makefile
Wrap
Makefile
|
1994-02-11
|
2KB
|
63 lines
# Makefile for GNU tar on the Acorn Archimedes.
# Copyright (C) 1991 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
CC = %gcc
RM = rm -f
# defines.h gets included before anything else, by cpp.
# The command line is too long if it's done with -D...
DEFS = -DARCH -include defines.h
CFLAGS = $(DEFS) -IUnix:
LDFLAGS =
LIBS = -LUnix: -lregex -lgetopt -lgetopt1
# Uncomment the following if you don't have the libraries above.
OBJ3 = #o.getopt o.getopt1 o.regex o.alloca
OBJ1 = o.tar o.create o.extract o.buffer o.getoldopt o.update o.gnu o.mangle
OBJ2 = o.version o.list o.names o.diffarch o.port o.fnmatch o.getdate
# Needed to fix a bug in UnixLib 3.6c. See also defines.h
FIX = o.dirent
OBJS = $(OBJ1) $(OBJ2) $(FIX) $(OBJ3)
all: tar
tar: h.testpad c.getdate $(OBJS)
$(RM) o.testpad
$(CC) $(LDFLAGS) -o tar o.* $(LIBS)
h.testpad: testpad
testpad
testpad: c.testpad
$(CC) $(LDFLAGS) -o testpad testpad.c $(LIBS)
o.dirent: c.dirent
$(CC) -IUnix: -c $^ -o $@
clean:
$(RM) o.* tar testpad h.testpad
mostlyclean: clean
distclean: clean
realclean: clean