🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1513

disagreement of sun make and gnumake 3.38

#1513
From: gerry wiener
Date: Wed, 22 Mar 1989 13:55
60 lines
1711 bytes
When using the following makefile on a sun4-os4, sun make and gnumake
differ dramatically.  There probably is another way of archiving
libraries in gnumake (without the unnecessary compilation), but what's
going wrong here?

-------------------------------------------------------------------------------
#makefile
CC = cc

OBJS = foo.o foo1.o


LIB_OBJS = lib.a(foo.o) \
	lib.a(foo1.o) 

lib.a: $(LIB_OBJS)
	ranlib lib.a 
-------------------------------------------------------------------------------
/* foo.c */
foo()
{
}
-------------------------------------------------------------------------------
/* foo1.c */
foo1()
{
}
-------------------------------------------------------------------------------

hail:gerry:1>make
`lib.a' is up to date.
hail:gerry:2>gnumake
cc    -c foo.c -o foo.o
ar rv lib.a foo.o
r - foo.o
cc    -c foo1.c -o foo1.o
ar rv lib.a foo1.o
r - foo1.o
ranlib lib.a 
rm -f foo.o
rm -f foo1.o
hail:gerry:3>gnumake
cc    -c foo.c -o foo.o
ar rv lib.a foo.o
r - foo.o
cc    -c foo1.c -o foo1.o
ar rv lib.a foo1.o
r - foo1.o
ranlib lib.a 
rm -f foo.o
rm -f foo1.o
hail:gerry:4>make
`lib.a' is up to date.
hail:gerry:5>

	Gerry Wiener	(303)497-8790  Email:gerry@toadwar.ucar.edu
	NCAR
	P.O. Box 3000
	Boulder, Co
	80307-3000
Technical Details
Message-ID: <8903221355.AA04462@toadwar.UCAR.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!TOADWAR.UCAR.EDU!gerry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!TOADWAR.UCAR.EDU!gerry
From: gerry@TOADWAR.UCAR.EDU (gerry wiener)
Newsgroups: gnu.utils.bug
Subject: disagreement of sun make and gnumake 3.38
Message-ID: <8903221355.AA04462@toadwar.UCAR.EDU>
Date: 22 Mar 89 13:55:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 60