echo "CXXFLAGS += -D_ARMEL" >> make.pre
echo 'export PATH := /opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/bin/armv5te-linux-gnueabi/:/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/bin/armv5te-linux-gnueabi/:$(PATH)' >> make.pre
fi
- echo "CXXFLAGS += -std=c++0x -I$src/util" >> make.pre
+ echo "CXXFLAGS += -I$src/util" >> make.pre
popd
}
ARCH=""
cpp_build=0
+shift 2
+while getopts "b:a:" opt
+do
+ case $opt in
+ a) ARCH=$OPTARG
+ ;;
+ b) echo "branching not implemented"
+ ;;
+ *) exit 1
+ ;;
+ esac
+done
+
# checkout build utilities
if [ ! -d projects ]; then
git clone https://github.com/wagner-tech/projects/