summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xbuild/bmake5
-rwxr-xr-xbuild/bmakedebug6
-rwxr-xr-xbuild/bmakedebugsdl26
-rwxr-xr-xbuild/bmakespeed6
5 files changed, 13 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 1ab9422b2..a45654eca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -115,6 +115,7 @@ build/clmake
build/bmakesnapshot
build/checkplugin.so
build/tmp
+build/ccache
# debian
debian/*
diff --git a/build/bmake b/build/bmake
index 292c8c7bf..83ab1c35a 100755
--- a/build/bmake
+++ b/build/bmake
@@ -5,8 +5,9 @@ cd ..
dir=`pwd`
-export CC=gcc
-export CXX=g++
+export CCACHE_DIR="${dir}/build/ccache/bmake"
+export CC="ccache gcc"
+export CXX="ccache g++"
export LANG=C
diff --git a/build/bmakedebug b/build/bmakedebug
index 003a6293f..0ee9af5b2 100755
--- a/build/bmakedebug
+++ b/build/bmakedebug
@@ -5,9 +5,9 @@ mkdir tmp
cd ..
dir=`pwd`
-export CC=gcc
-export CXX=g++
-
+export CCACHE_DIR="${dir}/build/ccache/bmakedebug"
+export CC="ccache gcc"
+export CXX="ccache g++"
export LANG=C
export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \
diff --git a/build/bmakedebugsdl2 b/build/bmakedebugsdl2
index d3bd476be..5c278c6ab 100755
--- a/build/bmakedebugsdl2
+++ b/build/bmakedebugsdl2
@@ -5,9 +5,9 @@ mkdir tmp
cd ..
dir=`pwd`
-export CC=gcc
-export CXX=g++
-
+export CCACHE_DIR="${dir}/build/ccache/bmakedebugsdl2"
+export CC="ccache gcc"
+export CXX="ccache g++"
export LANG=C
export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \
diff --git a/build/bmakespeed b/build/bmakespeed
index f6b15027a..ba9924a86 100755
--- a/build/bmakespeed
+++ b/build/bmakespeed
@@ -5,9 +5,9 @@ cd ..
dir=`pwd`
-export CC=gcc
-export CXX=g++
-
+export CCACHE_DIR="${dir}/build/ccache/bmakespeed"
+export CC="ccache gcc"
+export CXX="ccache g++"
export LANG=C
export CXXFLAGS="-pedantic -ggdb3 -O5 -pipe -ffast-math \