I can try to improve this. I know that it needs a Jamroot and there needs to be a use-project boost : path/to/boost ; somewhere. Is there anything else?
The Jamfile.v2 in profile_template/src: # # Copyright (c) 2008 # Steven Watanabe # # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import modules ; local boost = [ modules.peek : BOOST ] ; project src : : requirements <include>path-to-boost <library-path>path-to-boost <link>static ; exe postprocess : postprocess.cpp $(boost)/libs/regex/build//boost_regex : <variant>release ; exe filter : filter.cpp $(boost)/libs/regex/build//boost_regex : <variant>release ; The Jamfile of the cpp being profiled (much is workarea/project specific): # Jamfile.v2 # # Copyright (c) 2008 # Steven Watanabe # # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import modules ; modules.load template-profile : ../../../../../../profile_templates/template-profile.jam ; template-profile archive : Archive.cpp : <include>../../../../include <include>added-some-more-project-specific-include-paths <define>BOOST_ALL_DYN_LINK=1 ;