Thread View: gnu.utils.bug
1 messages
1 total messages
Started by gerry wiener
Wed, 22 Mar 1989 13:55
disagreement of sun make and gnumake 3.38
Author: gerry wiener
Date: Wed, 22 Mar 1989 13:55
Date: Wed, 22 Mar 1989 13:55
60 lines
1711 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads