Subject: Re: building with obj/ directories
To: Chris G. Demetriou <>
From: Michael L. VanLoon -- Iowa State University <>
List: current-users
Date: 01/07/1994 16:47:02
>if you're in /usr/src, and say "make obj", it'll make directories in
>/usr/obj for the various programs in the source tree, and make links
>which point to those directories in the programs' source directories.

>If you're not in /usr/src, and say "make obj", it'll make an "obj"
>directory in each of the program source directories.


Actually, I had some problems with this.  It's not at all intuitive
how this works.  I spent several hours sifting through system mk files
trying to figure out why I couldn't get it to make the symlinks to
/usr/obj.  I finally found out it was because my /usr/src is actually
a symlink already (to /local/src, another drive).  This broke this
particular feature, because it thought I wasn't in /usr/src.

Doing a "setenv BSDSRCDIR /local/src" fixed the problem, since that
was the true location of my src tree.  I got to learn more about the
share/mk files than I really wanted to... ;-)  This is prime material
for a FAQ entry.


    Michael L. VanLoon  --  --  gg.mlv@isumvs.bitnet
 Iowa State University of Science and Technology -- The way cool place to be!
   Project Vincent Systems Staff, Iowa State University Computation Center