Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-07-16 18:06:06


Chris Weed wrote:
> On 7/16/06, Reece Dunn <msclrhd_at_[hidden]> wrote:
> > Chris Weed wrote:
> > > Is there a way I can make a Jamfile for a library that just calls
> > > configure and make on that library? For example I want to add a
> > > Jamfile to my copy of fftw that will build it with configure and make.
> > There is support for a make rule in BBv2, so you could use that :). I am
> > not sure how it is used, not having used it myself, but the documentation
> > (http://www.boost.org/boost-build2) should help.
> > If that doesn't work, you can create a custom Jam rule/action (again, see
> > the documentation for details) that would do this.
>
> The make rule doesn't seem to correspond to Unix make. The closest I
> could find was the example where the program pkg-config is launched to
> create cxx-flags and link-flags. I am not familiar with this program,
> so I am not sure I could replace this with configure/make.

Taking a look at http://tinyurl.co.uk/e8px, it looks like the make rule is a
shorthand for creating a Jam rule that executes an action. Anything that
is contained in an action is executed by the command shell of the OS you
are building with, so cygwin and Windows use cmd.exe and Linux uses sh
or a derivative.

Thus, you would want something that looks like this:

actions automake
{
   cd $(<)
   ./configure
   make
}

make fftw : /usr/path/to/fftw : @automake ;
make zlib : /usr/path/to/zlib : @automake ;

NOTE: I haven't used BBv2 on Linux/Mac, so the above example may
not work. Also, as it stands, it will not work on cygwin/Windows.

HTH,
- Reece
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d


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