[mod.computers.masscomp] Mod.Sources TAR

masscomp-request@soma.bcm.tmc.edu (Stan Barber) (12/18/86)

I have checked the Public Domain tar (posted to mod.sources) out on the
masscomp. The only changes are to the makefile. The modified makefile is
attached. The only major change is in the loading rule, I had to change "cc"
to $(CC) to be sure the masscomp uses the ucb universe c-library to link
against. This may screw up the other BSD/V7 rules. It should work fine on
SYSV.
Stan
[if you did not get the public-domain tar posting, let me know or send a
request to sources-request@mirror.TMC.COM -- sob]
----
# Makefile for public domain tar program.
# @(#)Makefile 1.13	86/10/29

# Berserkeley version
# DEFS = -DBSD42
# LIBS = 
# LINTFLAGS = -abchx
# DEF_AR_FILE = \"/dev/rmt8\"
# DEFBLOCKING = 20

# USG version
#DEFS = -DUSG
#LIBS = -lndir
#LINTFLAGS = -bx
#DEF_AR_FILE = \"/dev/rmt8\"
#DEFBLOCKING = 20

# MASSCOMP version
CC = ucb cc
DEFS = -DBSD42
LIBS = 
LINTFLAGS = -bx
DEF_AR_FILE = \"/dev/rmt0\"
DEFBLOCKING = 20

# UniSoft's Uniplus SVR2 with NFS
#DEFS = -DUSG -DUNIPLUS -DNFS -DSVR2
#LIBS = -lndir
#LINTFLAGS = -bx
#DEF_AR_FILE = \"/dev/rmt8\"
#DEFBLOCKING = 20

# V7 version
#DEFS = -DV7 -Dvoid=int
#LIBS = -lndir
#LINTFLAGS = -abchx
#DEF_AR_FILE = \"/dev/rmt8\"
#DEFBLOCKING = 20

CFLAGS = $(COPTS) $(DEFS) \
	-DDEF_AR_FILE=$(DEF_AR_FILE) \
	-DDEFBLOCKING=$(DEFBLOCKING)
# next line for Debugging
COPTS = -g
# next line for Production
#COPTS = -O

# Add things here like getopt, readdir, etc that aren't in your
# standard libraries.
SUBSRC=	
SUBOBJ=	

SRCS =	tar.c create.c extract.c buffer.c getoldopt.c list.c names.c \
	port.c $(SUBSRC)
OBJS = 	tar.o create.o extract.o buffer.o getoldopt.o list.o names.o \
	port.o $(SUBOBJ)
AUX =	README PORTING Makefile TODO tar.1 tar.5 tar.h port.h

tar:	$(OBJS)
	$(CC) -o tar $(COPTS) $(OBJS) $(LIBS)

lint:	$(SRCS)
	lint $(LINTFLAGS) $(CFLAGS) $(SRCS)

clean:
	rm -f errs *.o tar

tar.shar: $(SRCS) $(AUX)
	shar >tar.shar $(AUX) $(SRCS)

tar.tar.Z: $(SRCS) $(AUX)
	/bin/tar cf - $(AUX) $(SRCS) | compress -v >tar.tar.Z

$(OBJS): tar.h port.h