home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-03-27 | 2.9 KB | 90 lines |
- # The Cnews Extensions Package - Brendan Kehoe - brendan@cs.widener.edu
- #
- # This is available via anon FTP at 192.55.239.132 (ftp.cs.widener.edu)
- #
- # Last Updated: 03/26/91
- #
- # Step 1 - Edit anne.h, spacefor.h, and to customize them for your site.
- # Step 2 - Set up BINDIR, CC, CFLAGS, and CNEWSLIB for your configuration.
- # Step 3 - Do a make.
- # Step 4 - Do a 'make install' -- this will replace the current versions
- # of spacefor, tear, and anne.jones with the new ones.
- #[Step 5]- 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
- #
- # 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 an Altos system, use -DALTOS (note only spacefor 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
- #
- # Where your libcnews.a is .. yup, you have to have it. If you don't
- # have it, go back into conf and run doit.bin again, Ctrl-C'ing after
- # it's run ranlib (or ar rux) on it.
- #
- CNEWSLIB = /usr/local/work/cnews/libcnews.a # Make SURE you change THIS!
- #
- # And that's all she wrote. Change NOTHING else unless you know what
- # you're doing.
-
- all: anne.stub tear spacefor.stub $(CNEWSLIB)
-
- 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) $(CNEWSLIB)
- strip $@
-
- tear: getline.o tear.c
- $(CC) $(CFLAGS) $@.c -o $@ getline.o $(LDFLAGS)
- strip $@
-
- spacefor.stub: spacefor.c
- $(CC) $(CFLAGS) spacefor.c -o spacefor.stub $(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
-
- 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
-
- 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
-
- shar:
- shar -i list -o cnews.set.shar
-
- clean:
- rm -f anne.stub tear spacefor.stub getline.o anne.misc.o tear.o
- rm -f core a.out spacefor.o anne.jones.o *.ln gmon.out cnews.set.shar
-
-