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