set -e
+INCLUDEDIR=temp/bootstrap/include
REQUIRED="core datafile"
-CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`"
+CFLAGS="-I$INCLUDEDIR `pkg-config --cflags sigc++-2.0`"
LIBS="`pkg-config --libs sigc++-2.0` -lpthread"
MACHINE="`uname -m`"
if [ "$MACHINE" = "x86_64" ]; then
LIBPATH=`pwd`/${LIBPATH:-..}
fi
-rm -rf include
-mkdir -p include/msp
+rm -rf "$INCLUDEDIR"
+mkdir -p "$INCLUDEDIR/msp"
sources=source/*.cpp
missing="$missing msp$i"
else
if [ $i = "core" ]; then
- ln -sf $path/source/* include/msp/
+ ln -sf $path/source/* "$INCLUDEDIR/msp/"
else
- ln -sf $path/source include/msp/$i
+ ln -sf $path/source "$INCLUDEDIR/msp/$i"
fi
sources="$sources `find $path/source -name '*.cpp'`"
fi