6 REQUIRED="core datafile fs strings io"
7 CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`"
8 LIBS="`pkg-config --libs sigc++-2.0` -lpthread -ldl"
9 if [ -z "$LIBPATH" ]; then
13 LIBPATH=`readlink -f $LIBPATH`
19 for i in $REQUIRED; do
20 path=`ls -1d $LIBPATH/*$i* 2>/dev/null | head -1`
21 if [ ! -d $path ]; then
25 if [ $i = "core" ]; then
26 ln -sf $path/source/* -t 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