diff --git a/build-all.sh b/build-all.sh
index b881dc0d7432f71ac57659b2866814243d855b09..80210b5518f6658e8ff5c0483f9bcaf918d7ad6d 100755
--- a/build-all.sh
+++ b/build-all.sh
@@ -1,5 +1,17 @@
 #!/bin/bash
 
+
+
+if [[ "$*" =~ "--debug" ]]; then
+	SCONSDEBUG=" debug=1 "
+fi
+
+scons $SCONSDEBUG -j 3
+
+exit
+
+
+
 # check if DIR is the directory containing the build script.
 BUILD_LOC=`dirname $0`
 FULL_BUILD_LOC=`cd $BUILD_LOC; pwd`
diff --git a/clean-all.sh b/clean-all.sh
index 673095943cf6a997847f640cb6a4f66df0ce9d7f..e5172ff40da71ee2debbfd3f17b00f4ee7a44aa0 100755
--- a/clean-all.sh
+++ b/clean-all.sh
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+scons -c
+
+exit
+
+
 # check if DIR is the directory containing the build script.
 BUILD_LOC=`dirname $0`
 FULL_BUILD_LOC=`cd $BUILD_LOC; pwd`