Article View: gnu.utils.bug
Article #310Archive member references
From: Christopher D. Orr
Date: Fri, 21 Jul 1989 19:45
Date: Fri, 21 Jul 1989 19:45
53 lines
2279 bytes
2279 bytes
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
Technical Details
Message-ID:
<416@lxn.eds.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!netnews.upenn.edu!vax1.cc.lehigh.edu!vlsi3b15!lehi3b15!lxn!chrisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!netnews.upenn.edu!vax1.cc.lehigh.edu!vlsi3b15!lehi3b15!lxn!chris From: chris@lxn.eds.com (Christopher D. Orr) Newsgroups: gnu.utils.bug Subject: Archive member references Keywords: archive ranlib system v problem Message-ID: <416@lxn.eds.com> Date: 21 Jul 89 19:45:02 GMT Distribution: na Organization: Electronic Data Systems (EDS), Center Valley, PA Lines: 53