2 # This helper is for templates using scons.
7 ${make_cmd} ${makejobs} CC
=$CC CXX
=$CXX CCFLAGS
="$CFLAGS" \
8 cc
=$CC cxx
=$CXX ccflags
="$CFLAGS" \
9 CXXFLAGS
="$CXXFLAGS" LINKFLAGS
="$LDFLAGS" \
10 cxxflags
="$CXXFLAGS" linkflags
="$LDFLAGS" \
11 RANLIB
="$RANLIB" ranlib
="$RANLIB" \
13 ${scons_use_destdir:+DESTDIR="${DESTDIR}"} \
14 ${scons_use_destdir:+destdir="${DESTDIR}"} \
15 ${make_build_args} ${make_build_target}
19 : ${make_install_target:=install}
23 if [ -z "$scons_use_destdir" ]; then _sandbox
=yes ; fi
25 ${make_cmd} ${makejobs} CC
=$CC CXX
=$CXX CCFLAGS
="$CFLAGS" \
26 cc
=$CC cxx
=$CXX ccflags
="$CFLAGS" \
27 CXXFLAGS
="$CXXFLAGS" LINKFLAGS
="$LDFLAGS" \
28 cxxflags
="$CXXFLAGS" linkflags
="$LDFLAGS" \
29 RANLIB
="$RANLIB" ranlib
="$RANLIB" \
31 ${scons_use_destdir:+DESTDIR="${DESTDIR}"} \
32 ${scons_use_destdir:+destdir="${DESTDIR}"} \
33 ${_sandbox:+--install-sandbox="${DESTDIR}"} \
34 ${make_install_args} ${make_install_target}