2 messages in com.perforce.jamming[Fwd: LinkLibraries rule - a question]
FromSent OnAttachments
Andr...@vignette.com03 Jan 1998 15:35 
Andr...@vignette.com05 Jan 1998 17:07 
Subject:[Fwd: LinkLibraries rule - a question]
From:Andr...@vignette.com (Andr@vignette.com)
Date:01/05/1998 05:07:55 PM
List:com.perforce.jamming

Laura's response to my question:

Subject:Re: LinkLibraries rule - a question
From:Laura Wingerd (lau@perforce.com)
Date:Mon, 5 Jan 1998 13:58:41 -0800 (PST)

The way it should work, in theory, is that if you are in src/core/foo, jam will link foo with libbar if it's already built, as long as it can find it its SEARCH path. If you are in src/core/bar, or in src/core, jam will build libbar if it can't find it in its LOCATE path.

This way you can build all of core from src/core, or just the foo part from src/core/foo. If you've also built libbar, it gets used, otherwise whatever's in the search path (e.g., a libbar from the nightly build) gets used.

Your Jamfiles should look something like:

- - src/core/foo/Jamfile contains:

SubDir src core foo ; Main foo : foomain.c ; Library libfoo : foo.c ; LinkLibraries foo : libfoo libbar ;

- - src/core/bar/Jamfile contains:

SubDir src core bar ; Library libbar : bar.c ;

- - src/core/Jamfile contains:

SubInclude src core foo ; SubInclude src core bar ;

---Laura

------------------------------------------------------------------------- Laura Wingerd Perforce Software, Inc. 510-864-7400

-------------------------------------------------------------------------

Andrea Adams writes: