3 REQUIRED="core parser path strings"
4 CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`"
5 LIBS="`pkg-config --libs sigc++-2.0` -lpthread"
6 if [ -z "$LIBPATH" ]; then
10 LIBPATH=`readlink -f $LIBPATH`
16 for i in $REQUIRED; do
18 if [ ! -e $path ]; then
22 if [ $i = "core" ]; then
23 ln -sfT $path/source/core include/msp/core
24 ln -sfT $path/source/time include/msp/time
25 elif [ $i = "misc" ]; then
26 ln -sf $path/source/*.h include/msp
28 ln -sfT $path/source include/msp/$i
30 sources="$sources `find $path/source -name '*.cpp'`"
33 g++ $sources -o builder-stage1 $CFLAGS $LIBS