First, I'll assume that $(TOP)/Jamfile includes $(TOP)/thelib/Jamfile and
$(TOP)/theapp/Jamfile. Then your all you need in $(TOP)/theapp/Jamfile
is:
LinkLibraries theapp : thelib ;
The key is that *EVERYTHING* should be visible from $(TOP)/Jamfile.
Thanks for your help. This works as long thelib is globally unique
because built files don't have a grist that makes them unique, right?
Uniqueness should not be a problem with the few files that are shared
across many directories. I did not see this simple solution because I
assumed that I need some kind of path to thelib and did not realize
that all built files conceptually share a flat namespace.
--- Christian
---
Christian Lindig Technische Universitaet Braunschweig, Germany
http://www.cs.tu-bs.de/softech/people/lindig
mailto:lin...@ips.cs.tu-bs.de