[gnu.utils.bug] Archive member references

chris@lxn.eds.com (Christopher D. Orr) (07/22/89)

I have been trying to "bring up" GNU Make on my Unix System V.2 box,
but I am running into a problem with archive members.  It seems that
GNU make does not properly reference the object module within the
archive.

Does GNU Make require you to run 'ranlib' on all archives created???
If so, I don't have this on my System V release.  On what version of
Unix is it available and/or is there a PD version of it around??


				-- Chris


PS:   Is there a reason why (\t) tabs are not translated in the @echo
      statements within a Makefile ????

PSS:  Below is an extract from one of the Makefile's that I've been working
      with:


-------------------- EXAMPLE STARTS HERE --------------------

L=GEN.a
D=/usr/beta/RCS/GEN
I=/usr/beta/INCLUDE
CFLAGS = -O -I/usr/beta/INCLUDE

$L:	$L(ttyinit.o)	$L(ttyspeed.o)	$L(ttyraw.o)	$L(ttysane.o)	\
	$L(dctfload.o)	$L(dctfpars.o)	$L(dctgetf.o)			\
	$L(str2dol.o)	$L(stralnum.o)	$L(strapp.o)	$L(strdigit.o)	\
	$L(strpad.o)	$L(strrpt.o)	$L(strscn.o)	$L(strsuff.o)	\
	$L(strtrim.o)	$L(strunc.o)	$L(strupr.o)	$L(strzform.o)
	@echo "\tLibrary $L is up to date."
	@echo ""

# Template for generating a single library member.

$L(ttyinit.o):	$D/ttyinit.c,v
	cd /usr/tmp; co $D/ttyinit.c,v > /dev/null 2> /dev/null
	cd /usr/tmp; cc -c $(CFLAGS) ttyinit.c
	ar -r $L /usr/tmp/ttyinit.o
	rm -f /usr/tmp/ttyinit.*
	@echo "\tttyinit.o in $L is up to date."
	@echo ""

------------------------------------------------------------
END OF EXAMPLE

-- 
Christopher D. Orr                  | US MAIL: Electronic Data Systems (EDS)
UUCP: vu-vlsi!lxn!chris             |          Lanark Building
 or   chris%lxn.uucp@rutgers.edu    |          Center Valley, PA  18034
 or   lehi3b15!lxn!chris            | Voice:   (215) 282-1213