import os ; if ! [ os.environ BOOST_ROOT ] { exit "Error: Set BOOST_ROOT environment variable to Boost root directory" ; } local BOOST_ROOT = [ os.environ BOOST_ROOT ] ; echo "Using Boost libraries from:" $(BOOST_ROOT) ; use-project boost : $(BOOST_ROOT) ; project : requirements gcc:-std=c++11 clang:-std=c++11 "./include" $(BOOST_ROOT) $(BOOST_ROOT)/stage/lib ; echo """ EXAMPLES Pre-process specified file to bin/.../-pp.ii using compiler: $ bjam [-aq] -pp [cxxflags=-UDEBUG] [toolset=msvc|gcc|clang] Pre-process specified file to bin/.../-wave.ii using WAVE: $ bjam [-aq] -wave (Edit wave.cfg for -UDEBUG, lib paths, etc.) Compile and run program .cpp: $ bjam [-aq] [toolset=msvc,gcc,clang] Compile and run all programs in current directory: $ bjam [-aq] [toolset=msvc,gcc,clang] """ ;