home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sources / d / 1520 < prev    next >
Encoding:
Text File  |  1993-01-06  |  2.1 KB  |  46 lines

  1. Newsgroups: comp.sources.d
  2. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!kowari.cpsg.com.au!als
  3. From: als@bohra.cpg.oz.au (Anthony Shipman)
  4. Subject: Re: split source and object directories
  5. Message-ID: <als.726371259@marloo.kowari.cpsg.com.au>
  6. Sender: news@kowari.cpsg.com.au (USENET News System)
  7. Nntp-Posting-Host: marloo.cpsg.com.au
  8. Organization: Computer Power Software Group Pty Ltd
  9. References: <als.726304707@marloo.kowari.cpsg.com.au> <BAS.93Jan6135242@carlo.phys.uva.nl>
  10. Date: Thu, 7 Jan 1993 01:47:39 GMT
  11. Lines: 33
  12.  
  13. bas@phys.uva.nl (Bas de Bakker) writes:
  14.  
  15. >>>>>> In article <als.726304707@marloo.kowari.cpsg.com.au>, als@bohra.cpg.oz.au (Anthony Shipman) writes:
  16.  
  17. >as> When a site has heterogeneous workstations and one central NFS
  18. >as> server holding source it would be very useful if the makefiles
  19. >as> supported separate source and object directories.
  20.  
  21. >Sounds like you need GNU make. Get it from prep.ai.mit.edu:/pub/gnu or
  22. >many other sites around the world.
  23.  
  24.  
  25. Possibly, but then I have to port it to all these different machines too.
  26.  
  27. Others have mailed me saying that I could just create a whole heap of symbolic
  28. links in the object directory to the source directory.  This of course requires
  29. that symbolic links be available on all machines.  I have done this from time
  30. to time eg with X windows software such as the Xaw library.  To me it seems
  31. like a rather messy and ugly kludge.
  32.  
  33. Another advantage of using the $(SRC)/prog.c form is that the source 
  34. directory can be quickly switched (to a new version for example) by changing 
  35. an environment variable rather than rebuilding symbolic links etc.
  36.  
  37. We use the $(SRC) structure extensively in-house for our software products.  It
  38. works quite well over our entire menagerie of machines including UNIX, VMS, MPE
  39. and DOS/Windows.
  40.  
  41. --
  42. Anthony Shipman                 "You've got to be taught before it's too late,
  43. CP Software Export Pty Ltd,      Before you are six or seven or eight,
  44. 19 Cato St., East Hawthorn,      To hate all the people your relatives hate,
  45. Melbourne, Australia, 3121       You've got to be carefully taught."  R&H
  46.