4 REQUIRED="core datafile path strings"
5 CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`"
6 LIBS="`pkg-config --libs sigc++-2.0` -lpthread -ldl"
7 if [ -z "$LIBPATH" ]; then
11 LIBPATH=`readlink -f $LIBPATH`
17 for i in $REQUIRED; do
19 if [ ! -e $path ]; then
23 if [ $i = "core" ]; then
24 ln -sfT $path/source/core include/msp/core
25 ln -sfT $path/source/time include/msp/time
26 elif [ $i = "misc" ]; then
27 ln -sf $path/source/*.h include/msp
29 ln -sfT $path/source include/msp/$i
31 sources="$sources `find $path/source -name '*.cpp'`"
34 g++ $sources -o builder-stage1 $CFLAGS $LIBS