Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-12-26 21:53:18


Alexey Syomichev wrote:
> Hi,
> I am trying to get some understanding of how the build system works.
> A Jamfile has the the following statement:
> obj aobj : a.cpp ;
> This looks very much like an invocation of the rule "obj". Is this
> correct?

Exactly.

> Where is the declaration for the rule "obj"?

It's actually type.main-target-rule from build/type.jam. It is IMPORTed
into Jamfiles with the name "obj" and Boost.Build looks backwards up the
stack to find the name it was invoked with, and maps it into a target type.

HTH,

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk