CFLAGS=-g -fullwarn LDFLAGS=-lm all: arith arith: arith.o $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) arith.o: arith.c arith-update.c print: #tgrind -h "Michael J. Gourlay" arith.c #dvips -o arith.c.ps arith.c.dvi tgrind -h "Michael J. Gourlay" arith-update.c dvips -o arith-update.c.ps arith-update.c.dvi tgrind -h "Michael J. Gourlay" main-update.c dvips -o main-update.c.ps main-update.c.dvi output: arith #tests > out #pr -l48 -f -h " --- arith output --- Michael J. Gourlay --- " out > out.pr #lp -olandscape out.pr tests-update > out-up pr -l48 -f -h " --- arith update output --- Michael J. Gourlay --- " out-up > out-up.pr #lp -olandscape out-up.pr back: if [ -d backup ]; then echo "'backup' already exists" ; exit 1 ; fi if [ ! -d backup ]; then mkdir backup ; fi cp -p *.[ch] n* Makefile tests* backup @echo @echo "NOW MOVE THE BACKUP DIRECTORY: mv backup `date +%d%b%y | tr '[A-Z]' '[a-z]'`" @echo clean: -rm *.o -rm core -rm *.aux -rm *.log veryclean: clean -rm arith -rm mon.out -rm out -rm out-up -rm *.pr -rm *.tex -rm *.ps -rm *.dvi