Boost logo

Boost-Build :

From: Schnyder Franz (fschnyder_at_[hidden])
Date: 2005-11-10 17:09:25


> Now you have a set of object files that need munching. You can use a
> standard link generator/rule, but instead of...
>
> action link
> {
> linker <object-files> output
> }
>
> ...you will have...
>
> action link
> {
> @($(STDOUT):E=$(nl)"$(>)") > "$(<[1]).lst"
> munch "$(<[1]).lst" "$(<[1])_munched.c"
> compile "$(<[1])_munched.c"
> link "$(>)" "$(<[1])_munched.obj"
> }
>
> where line:
> 1 -- generate the list file from the object file inputs;
> 2 -- munch that list into a C file;
> 3 -- compile the munch file;
> 4 -- link in the object files with the munchable file.
>
> This way, you break the ambiguity, but still do the munching.
>
> HTH,
> - Reece

Yes this hepls.
This is actualy how I started. Then I hoped I could use the "standart"
compile.c rule and action with all the flags and so on, to compile the
_munched.c file. So I give up and do it all in one link action which
works fine.

Thanks for your help.

- Franz


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