|
Boost-Build : |
From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-11-29 04:17:54
Vladimir Prus wrote:
> alias mpiheaders
> : # sources
> : # requirements
> : # default-build
> : <define>$(MPI_DEFINES)
> <include>/usr/local/mpich-1.2.5.2/include
> ;
>
> # Define the real-mpi library target
> lib libmpi
> : # sources
> mpiheaders
> : # requirements
> <file>/usr/local/mpich-1.2.5.2/lib/libmpich.a
> : # default-build
> : # usage-requirements
> <use>/user-config//mpiheaders/<parallelism>none
> ;
>
> Why "mpiheaders" are in sources? Does removing them help? If not, try running
This is some kind of trick. My fake-mpi library uses the exact same
headers as the real mpi library (to have binary compatibility. This way
I can link the same object files with either the fake or the real mpi
library and thus only compile the object files one for later generating
a parallel and sequential application).
To make sure the fake and real use the same header files, I define the
header-files once (using the mpiheaders target) and add this as a source
(and thus also dependency) to the real mpi (libmpi) and my fake mpi library.
Actually what I'm trying to do with this parallel feature is that I can
compile my application first with the fake feature and than generate
another exe linked to the real mpi that is linked to all the libraries
that were already compiled for generating the sequential exe.
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