Article View: gnu.utils.bug
Article #1466Implicit rules in GNU Make
From: Joe Weening
Date: Tue, 24 Jan 1989 20:04
Date: Tue, 24 Jan 1989 20:04
19 lines
871 bytes
871 bytes
The documentation for GNU make (3.27) says that
x: y.o z.o
when `x.c', `y.c' and `z.c' all exist will execute:
cc -c x.c -o x.o
cc -c y.c -o y.o
cc -c z.c -o z.o
cc x.o y.o z.o -o x
rm -f x.o
rm -f y.o
rm -f z.o
On this machine (Alliant FX/8), the compiler complains:
cc: -o would overwrite x.o
Shouldn't the "-o x.o" be omitted if the -c flag is present?
Technical Details
Message-ID:
<8901242004.AA06732@Gang-of-Four.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!GANG-OF-FOUR.STANFORD.EDU!weeningShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!GANG-OF-FOUR.STANFORD.EDU!weening From: weening@GANG-OF-FOUR.STANFORD.EDU (Joe Weening) Newsgroups: gnu.utils.bug Subject: Implicit rules in GNU Make Message-ID: <8901242004.AA06732@Gang-of-Four.Stanford.EDU> Date: 24 Jan 89 20:04:36 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19