Xref: utzoo comp.sources.d:2446 comp.graphics:2771
Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!ncar!oddjob!uwvax!dogie!rhesus!bin
From: bin@rhesus.primate.wisc.edu (Brain in Neutral)
Newsgroups: comp.sources.d,comp.graphics
Subject: CRC graphics package compilation problem
Message-ID: <338@rhesus.primate.wisc.edu>
Date: 11 Jul 88 15:45:17 GMT
Organization: UW-Madison Primate Center
Lines: 42


This is a question about compiling plot3d from the CRC plotting package
published to comp.sources.unix some time ago.  The src directory looks
like this after unshar-ing:

Makefile	crc.h		genfont.c	qplot.c		subr.f
axis.c		crclabel.c	ifont.5x7	scale.c		test.f
axis_.c		draw.f		newtru.f	setaxs.f	xyaxes.c
axisv_.c	draxis.c	plot3d.c	strip7.c

"make -n plot3d" gives this:

f77    -c draw.f
f77    -c newtru.f
f77    -c setaxs.f
f77    -c subr.f
f77    -c test.f
cd ../lib;make all
cc -O -n    draw.o newtru.o setaxs.o subr.o test.o -o plot3d ../lib/libG.a -lI77 -lU77 -lF77 -lm

It seems odd that plot3d.c would not be compiled.  Looking into the Makefile,
I find:

OBJ =	qplot.o plot3d.o crclabel.o strip7.o \
	axis.o axis_.o axisv_.o draxis.o plot3dres.o scale.o xyaxes.o genfont.o
FOBJ =	draw.o newtru.o setaxs.o subr.o test.o

plot3d:	$(OBJS) $(FOBJ) $(GRAPHICSLIB)
	${CC} $(CFLAGS) $(OBJS) $(FOBJ) -o plot3d $(GRAPHICSLIB) -lI77 -lU77 -lF77 -lm

Note that OBJS is not defined anywhere is the rest of the Makefile.  It
does no good to change OBJS to OBJ for making plot3d - then you get all
the objects for the rest of the programs in the package.  Anyway, plot3dres.c
is nowhere to be found.  "make plot3dres.o" yields:

co plot3dres.c
co error: Can't find RCS/plot3dres.c,v nor plot3dres.c,v
*** Error code 1

Stop.

So what gives?  Anyone got the missing pieces?