Path: 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> Distribution: usa Organization: Bull HN UK Lines: 24 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 | +-----------------------+------------------------------+