From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-01-31 16:36:01
On 2002-01-31 at 01:40 PM, david.abrahams_at_[hidden] (David Abrahams) wrote:
>----- Original Message -----
>From: "Rene Rivera" <grafik666_at_[hidden]>
>> lib foobar$(SUFLIB) : fubar.cpp ;
>> dll foobar$(SUFDLL) : fubar.cpp ;
>I assume you mean that the translation happens internally, and also that you
>would prepend $(PREFIXLIB), $(PREFIXDLL) as appropriate.
Yes, you assume correctly :-)
>> But then would it not also be expected to be able to the same to other
>I was reluctant to do as you suggest because then the user would have to
>know the platform-specific suffix when building particular targets from the
>command-line. Actually, now that I think of it, this is absolutely no
>problem. The user-specifiable targets are all NOTFILE targets anyway.
>rule lib ( target : sources + : requirements * : default-build * )
> local real-target = $(PREFIXLIB)$(target:S=$(SUFLIB)) ;
> type-DEPENDS $(target) : $(real-target) ;
> declare-local target $(real-target) : ... ;
>I think that would work out well. Sorry, I've been trying to say more about
>this but can't put my thoughts together right now. I hope the code suffices.
No problem, the code suffices. I will try to make changes to that effect and
see what happens.
At first glance it means that invoking "jam foobar" will build all foobar-s,
both dll and lib. Doesn't seem like a problem given that's the intent most of
-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]
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