[jamming] Building Objects - Need to reference with grist when using them in another jam file?

John Waugh john.waugh at gmail.com
Wed Dec 17 20:59:21 PST 2008

On Wed, Dec 17, 2008 at 3:24 AM, Morgenthaler Björn
<bjoern.morgenthaler at comlet.de> wrote:
> # lib archive
> LibraryFromObjects component_1$(SUFLIB) :
>                     <framework_1!src>object_1$(SUFOBJ)
>                     <framework_2!src>object_2$(SUFOBJ)
>                     <framework_3!src>object_2$(SUFOBJ)
>                     ;

As Craig noted, you can get the gristed version with FGristFiles,
which is an internal rule in Jambase. There are several utility rules
starting with uppercase 'F' that are quite handy for things like this.

But to understand better - why are you organizing it this way? Is the
idea to share a given .o file amongst several libraries?
If that's the case, why not just have a given source file used by
several libraries via the Library rule? Jam will know when the .o
files are up-to-date.

Perhaps you saw the comment header for LibraryFromObjects in Jambase -
"Most people shouldn't call this rule directly".
What was lacking that made you need to use this method?


More information about the jamming mailing list