🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1223

Re: make with multiple executables from same source files

#1223
From: Malcolm Preen
Date: Thu, 15 Nov 1990 15:48
24 lines
1479 bytes
gpz@ESD.3Com.COM (G. Paul Ziemba) writes:

>source1.def1.o:	source1.c
>	${CC} -o source1.def1.o -DDEF1 -c $?

Giving the above as an example to create a .o with a different name from the
.c it comes from.

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.
-- 
|Malcolm Preen          |Malcolm.Preen@hemel.bull.co.uk|
|Bull HN Info. Sys. Ltd.|HM14 UK03                     |
|Maxted Road            |Tel: +44 442 232222 x4367     |
|Hemel Hempstead, UK    |Fax: +44 442 234084           |
+-----------------------+------------------------------+
-- 
|Malcolm Preen          |Malcolm.Preen@hemel.bull.co.uk|
|Bull HN Info. Sys. Ltd.|HM14 UK03                     |
|Maxted Road            |Tel: +44 442 232222 x4367     |
|Hemel Hempstead, UK    |Fax: +44 442 234084           |
+-----------------------+------------------------------+
Technical Details
Message-ID: <1990Nov15.154838.28206@hemel.bull.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!wuarchive!sdd.hp.com!know!pluto.hemel.bull.co.uk!mpreen
References: <4196@awdprime.UUCP> <gpz.658433103@api>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!wuarchive!sdd.hp.com!know!pluto.hemel.bull.co.uk!mpreen
From: mpreen@hemel.bull.co.uk (Malcolm Preen)
Newsgroups: comp.unix.programmer
Subject: Re: make with multiple executables from same source files
Message-ID: <1990Nov15.154838.28206@hemel.bull.co.uk>
Date: 15 Nov 90 15:48:38 GMT
References: <4196@awdprime.UUCP> <gpz.658433103@api>
Distribution: usa
Organization: Bull HN UK
Lines: 24