Boost logo

Boost-Build :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2006-12-26 08:20:11

What's the best way to get jam to do the equivalent of the Makefile
COMPILE.gcc=$(COMPILER.gcc) -c -Wall -ftemplate-depth-100 -O0 -fno-inline
COMPILE.icc=$(COMPILER.icc) -c -xc++ -O0 -Ob0
LINK.gcc = $(COMPILER.gcc)
LINK.icc = $(COMPILER.icc)
INCS= -I"../../.." -I"../../../../.."

$(SRC).$(WHICH).E.cpp: $(SRC).cpp
        $(COMPILE.$(WHICH)) $(INCS) $(SRC).cpp -E\
    -C |csplit/$(BEGIN.cpp)/ {*}
        cat xx01|indent -bap - |sed -e 's/} template/}\n\n template/g'>

The purpose is to just see what BOOST_PP macros are producing. The
BEGIN.cpp value is placed in the .cpp file just above the invokation
of the BOOST_PP macro I'm interested in. For example:
<-------------- ctor.cpp -------------
// Test the preprocessor macros for CTOR forwarding.
#include "boost/forwarder/ctor.hpp"
#include <iostream>
#include <memory>
/*^only used to enable csplit to split off the relevant
  * of preprocessed output. See Makefile.
struct member_target


   target my_target;


>-------------- ctor.cpp -------------
I've read the extender manual; however, I don't know
whether to it's better to:
   1) create a whole new
   2) somehow "derive" from an existing gnerator.

If 1) then somehow I've got to get accesss to the
-I compiler flags. If 2) then I've got to figure
how to derive. I've looked at gcc.jam to see how
it maybe derives, and I see .override, but I can't
figure out what that does.

Help would be appreciated :)


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at