Article View: comp.unix.programmer
Article #1245Re: make with multiple executables from same source files
From: G. Paul Ziemba
Date: Fri, 16 Nov 1990 00:39
Date: Fri, 16 Nov 1990 00:39
32 lines
1721 bytes
1721 bytes
mpreen@hemel.bull.co.uk (Malcolm Preen) writes:
>gpz@ESD.3Com.COM (G. Paul Ziemba) writes:
>>source1.def1.o: source1.c
>> ${CC} -o source1.def1.o -DDEF1 -c $?
>On our system, a Bull DPX/2-340, the man page says that -o is passed to ld(1)
>and this is the case when trying it. All the people I have spoken to agree
>that this is what is supposed to happen in Unix C.
Surprise, all Unixes are not alike.
It just so happens that I have a Bull DPX/2 with manuals at my
disposal, and they confirm what Mr. Preen says. I can not
determine a way to cause cc to rename the .o file.
On other Unixes I have used (BSD, Sun, Xinu), -o does in fact
specify the name of the output file regardless of the particular
compilation step being performed.
OS-dependent compiler flags are one of life's little joys
for me as a programmer attempting to build software on an
array of different platforms. I will abstain from comment
on what the "correct" cc argument syntax/semantics should
be.
~!paul
--
Paul Ziemba api!gpz gpz@ESD.3com.com 408.764.5390 OS/2: just say no.
"How much char could a char star star if char star could star char?"
(quote stolen from mspercy@clemson.clemson.edu)
Technical Details
Message-ID:
<gpz.658715948@api>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!rochester!uhura.cc.rochester.edu!ub!zaphod.mps.ohio-state.edu!mips!bridge2!api!gpzReferences:
<4196@awdprime.UUCP> <gpz.658433103@api> <1990Nov15.154838.28206@hemel.bull.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!rochester!uhura.cc.rochester.edu!ub!zaphod.mps.ohio-state.edu!mips!bridge2!api!gpz From: gpz@ESD.3Com.COM (G. Paul Ziemba) Newsgroups: comp.unix.programmer Subject: Re: make with multiple executables from same source files Message-ID: <gpz.658715948@api> Date: 16 Nov 90 00:39:08 GMT References: <4196@awdprime.UUCP> <gpz.658433103@api> <1990Nov15.154838.28206@hemel.bull.co.uk> Sender: news@bridge2.ESD.3Com.COM Distribution: usa Lines: 32