🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #1988

Re: split source and object directories

#1988
From: Anthony Shipman
Date: Thu, 07 Jan 1993 01:47
33 lines
2155 bytes
bas@phys.uva.nl (Bas de Bakker) writes:

>>>>>> In article <als.726304707@marloo.kowari.cpsg.com.au>, als@bohra.cpg.oz.au (Anthony Shipman) writes:

>as> When a site has heterogeneous workstations and one central NFS
>as> server holding source it would be very useful if the makefiles
>as> supported separate source and object directories.

>Sounds like you need GNU make. Get it from prep.ai.mit.edu:/pub/gnu or
>many other sites around the world.


Possibly, but then I have to port it to all these different machines too.

Others have mailed me saying that I could just create a whole heap of symbolic
links in the object directory to the source directory.  This of course requires
that symbolic links be available on all machines.  I have done this from time
to time eg with X windows software such as the Xaw library.  To me it seems
like a rather messy and ugly kludge.

Another advantage of using the $(SRC)/prog.c form is that the source 
directory can be quickly switched (to a new version for example) by changing 
an environment variable rather than rebuilding symbolic links etc.

We use the $(SRC) structure extensively in-house for our software products.  It
works quite well over our entire menagerie of machines including UNIX, VMS, MPE
and DOS/Windows.

--
Anthony Shipman                 "You've got to be taught before it's too late,
CP Software Export Pty Ltd,      Before you are six or seven or eight,
19 Cato St., East Hawthorn,      To hate all the people your relatives hate,
Melbourne, Australia, 3121       You've got to be carefully taught."  R&H
Technical Details
Message-ID: <als.726371259@marloo.kowari.cpsg.com.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!kowari.cpsg.com.au!als
References: <als.726304707@marloo.kowari.cpsg.com.au> <BAS.93Jan6135242@carlo.phys.uva.nl>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sources.d
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!kowari.cpsg.com.au!als
From: als@bohra.cpg.oz.au (Anthony Shipman)
Subject: Re: split source and object directories
Message-ID: <als.726371259@marloo.kowari.cpsg.com.au>
Sender: news@kowari.cpsg.com.au (USENET News System)
Nntp-Posting-Host: marloo.cpsg.com.au
Organization: Computer Power Software Group Pty Ltd
References: <als.726304707@marloo.kowari.cpsg.com.au> <BAS.93Jan6135242@carlo.phys.uva.nl>
Date: Thu, 7 Jan 1993 01:47:39 GMT
Lines: 33