1 2# This Jamfile is the same as Jamfile2, except that 3# it tries to access prebuilt targets using absolute 4# paths. It used to be broken on Windows. 5 6import os ; 7 8local dll-suffix = so ; 9local prefix = "lib" ; 10if [ os.name ] in NT 11{ 12 if [ MATCH ^(gcc) : $toolset ] 13 { 14 dll-suffix = dll.a ; 15 prefix = lib ; 16 } 17 else 18 { 19 dll-suffix = lib ; 20 prefix = "" ; 21 } 22} 23else if [ os.name ] in CYGWIN 24{ 25 dll-suffix = dll ; 26} 27else if [ os.name ] in MACOSX 28{ 29 dll-suffix = dylib ; 30} 31 32project ext ; 33 34# Assumed bjam was invoked from the project root 35local pwd = [ PWD ] ; 36 37lib a : 38 : <file>$(pwd)/ext/debug/$(prefix)a.$(dll-suffix) <variant>debug 39 : 40 : <include>debug 41 ; 42 43lib a : 44 : <file>$(pwd)/ext/release/$(prefix)a.$(dll-suffix) <variant>release 45 : 46 : <include>release 47 ; 48 49