else
echo "CXXFLAGS += -std=c++0x" >> make.pre
fi
- echo "CXXFLAGS += -I$src/util" >> make.pre
popd
}
function append_dependency {
+# adds another drectory, where a c++ compile is performed
# parameter:
# $1: main directory
# $2: dependency directory
}
function append_library {
+# same as append_dependency. In addition a include statement + a link to the library is added to "main directory"
# parameter:
# $1: main directory
# $2: dependency directory
src=$(pwd)
echo "DEPS += $3" >> $1/make.pre
echo "LDLIBS += $3" >> $1/make.pre
+ echo "CXXFLAGS += -I$src/$2" >> $1/make.pre
echo "$3:" >> $1/make.post
echo " cd $src/$2 && make TARGET=$3" >> $1/make.post
echo " ln -sf $src/$2/$3 ." >> $1/make.post