I haven't had much luck with descriptive questions so I'll keep this one short.

I have a custom rule that calls the lib rule.  From my custom rule I need to know path where all generated files will go for the current target (.o, .so, etc.).  How do I get this path?