home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
2
/
2032
/
Makefile
< prev
next >
Wrap
Makefile
|
1990-12-28
|
3KB
|
103 lines
# The Cnews Extensions Package - Brendan Kehoe - brendan@cs.widener.edu
# (can currently be reached at kehoe@scotty.dccs.upenn.edu)
# Last Updated: 11/04/90
#
# Step 1 - Edit anne.h, spacefor.h, and rnews.h to customize them for
# your site. Also see rnews.readme for important information for
# rnews to work properly.
# Step 2 - If your machine needs the TZ environmental variable, edit the
# line in rnews.c that reads 'environ[2] = "TZ=EST5EDT"' to use
# your local timezone
# Step 3 - Set up BINDIR, RNEWSDIR, CC, and CFLAGS for your configuration.
# Step 4 - Do a make.
# Step 5 - Do a 'make install' -- this will replace the current versions
# of spacefor, tear, and anne.jones with the new ones.
#[Step 6]- If you want to go back to what you had before, do 'make undo'..
# it'll put the old versions back. (They're in $BINDIR/old)
#
# This is your NEWSBIN directory (if it's a sym link, that's ok)
BINDIR = /usr/lib/newsbin
#
# This is the directory where the rnews program currently resides
RNEWSDIR= /usr/local/bin
#
# CC:
# If you don't have Gnu C, have 'cc' uncommented instead.
CC = cc
#CC = gcc
#
# CFLAGS:
# If you have Gnu C, work with the first line (with the -f's in it);
# otherwise, use the second.
# If you're a BSD system, use -DBSD
# If you're running AIX 2.2.1 on an IBM RT use -DAIX
# If you're on a USG system, use -DUSG (note only rnews uses this)
# Note for SunOS 4.1: I expressly didn't use -O2 or higher because of
# the many bugreports that are logged discounting their accuracy. (Most
# notable is -O2, generally accepted, even in the Gnu Project.)
#
#CFLAGS = -O -traditional -finline-functions -fstrength-reduce -DBSD
CFLAGS = -O -DBSD
#
# And that's all she wrote.
all: anne.stub tear spacefor.stub rnews
anne.stub: getline.o anne.misc.o anne.h anne.jones.c
$(CC) $(CFLAGS) anne.jones.c -o anne.stub getline.o anne.misc.o $(LDFLAGS)
strip $@
tear: getline.c tear.c
$(CC) $(CFLAGS) $@.c -o $@ getline.o $(LDFLAGS)
strip $@
spacefor.stub: spacefor.c
$(CC) $(CFLAGS) spacefor.c -o spacefor.stub $(LDFLAGS)
strip $@
rnews: rnews.c
$(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS)
strip $@
install:
-mkdir $(BINDIR)/old
mv $(BINDIR)/spacefor $(BINDIR)/old
cp spacefor.sh $(BINDIR)/spacefor
cp spacefor.stub $(BINDIR)
-mkdir $(BINDIR)/inject/old
mv $(BINDIR)/inject/anne.jones $(BINDIR)/inject/old
mv $(BINDIR)/inject/tear $(BINDIR)/inject/old
cp anne.jones.sh $(BINDIR)/inject/anne.jones
cp anne.stub $(BINDIR)/inject
cp tear $(BINDIR)/inject
-mkdir $(RNEWSDIR)/old
mv $(RNEWSDIR)/rnews $(RNEWSDIR)/old
cp rnews $(RNEWSDIR)
installaj:
-mkdir $(BINDIR)/old
mv $(BINDIR)/inject/anne.jones $(BINDIR)/inject/old
cp anne.jones.sh $(BINDIR)/inject/anne.jones
cp anne.stub $(BINDIR)/inject
installnews:
mkdir $(RNEWSDIR)/old
mv $(RNEWSDIR)/rnews $(RNEWSDIR)/old
cp rnews $(RNEWSDIR)
undo:
rm -f $(BINDIR)/spacefor.stub $(BINDIR)/inject/anne.stub
-mv $(BINDIR)/old/* $(BINDIR)/
-mv $(BINDIR)/inject/old/* $(BINDIR)/inject
-rmdir $(BINDIR)/old $(BINDIR)/inject/old
-mv $(RNEWSDIR)/old/rnews $(RNEWSDIR)/
-rmdir $(RNEWSDIR)/old
shar:
shar -i list -o cnews.set.shar
clean:
rm -f anne.stub tear spacefor.stub rnews getline.o anne.misc.o tear.o
rm -f core a.out spacefor.o anne.jones.o *.ln gmon.out cnews.set.shar