From 06fffb97be58c738176260bac17e3dfa6789e26e Mon Sep 17 00:00:00 2001 From: clem Date: Sun, 17 Oct 2004 15:39:58 +0000 Subject: enable ccache and/or distcc or nothing, in a way working with both ccache plus distcc combinations: CCACHE_PREFIX or CCACHE DISTCC (see http://opie.handhelds.org/cgi-bin/moin.cgi/UseCcacheAndDistcc for more info) --- diff --git a/mkspecs/qws/linux-arm-g++/qmake.conf b/mkspecs/qws/linux-arm-g++/qmake.conf index 62a8b5b..fcdad0e 100644 --- a/mkspecs/qws/linux-arm-g++/qmake.conf +++ b/mkspecs/qws/linux-arm-g++/qmake.conf @@ -8,7 +8,7 @@ MAKEFILE_GENERATOR = UNIX TEMPLATE = app CONFIG += qt link_prl -QMAKE_CC = $(CCACHE) $(shell which arm-linux-gcc) +QMAKE_CC = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = yacc @@ -22,7 +22,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CXX = $(CCACHE) $(shell which arm-linux-g++) +QMAKE_CXX = $(CCACHE) $(DISTCC) $(shell which arm-linux-g++) QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF diff --git a/mkspecs/qws/linux-ipaq-g++/qmake.conf b/mkspecs/qws/linux-ipaq-g++/qmake.conf index 7c4c421..76a0ad5 100644 --- a/mkspecs/qws/linux-ipaq-g++/qmake.conf +++ b/mkspecs/qws/linux-ipaq-g++/qmake.conf @@ -8,7 +8,7 @@ MAKEFILE_GENERATOR = UNIX TEMPLATE = app CONFIG += qt link_prl -QMAKE_CC = $(CCACHE) $(shell which arm-linux-gcc) +QMAKE_CC = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = yacc @@ -22,7 +22,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CXX = $(CCACHE) $(shell which arm-linux-g++) -DQT_QWS_IPAQ +QMAKE_CXX = $(CCACHE) $(DISTCC) $(shell which arm-linux-g++) -DQT_QWS_IPAQ QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF diff --git a/mkspecs/qws/linux-ramses-g++/qmake.conf b/mkspecs/qws/linux-ramses-g++/qmake.conf index 5dc1bda..6a41b5b 100644 --- a/mkspecs/qws/linux-ramses-g++/qmake.conf +++ b/mkspecs/qws/linux-ramses-g++/qmake.conf @@ -15,7 +15,7 @@ STAGING_BIN = $$STAGING_DIR/build/bin STAGING_LIB = $$STAGING_DIR/target/lib STAGING_INC = $$STAGING_DIR/include -QMAKE_CC = ccache arm-linux-gcc +QMAKE_CC = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = yacc @@ -29,7 +29,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CXX = ccache arm-linux-g++ -DQT_QWS_RAMSES -DQT_QWS_DEVFS -DQT_QWS_CUSTOM +QMAKE_CXX = $(CCACHE) $(DISTCC) $(shell which arm-linux-g++) -DQT_QWS_RAMSES -DQT_QWS_DEVFS -DQT_QWS_CUSTOM QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF diff --git a/mkspecs/qws/linux-sharp-g++/qmake.conf b/mkspecs/qws/linux-sharp-g++/qmake.conf index 338a6dd..cb2725a 100644 --- a/mkspecs/qws/linux-sharp-g++/qmake.conf +++ b/mkspecs/qws/linux-sharp-g++/qmake.conf @@ -8,7 +8,7 @@ MAKEFILE_GENERATOR = UNIX TEMPLATE = app CONFIG += qt link_prl -QMAKE_CC = arm-linux-gcc +QMAKE_CC = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = yacc @@ -22,7 +22,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CXX = arm-linux-g++ -DQT_QWS_SL5XX -DQT_QWS_SHARP -DQT_QWS_EBX -DQT_QWS_CUSTOM +QMAKE_CXX = $(CCACHE) $(DISTCC) $(shell which arm-linux-g++) -DQT_QWS_SL5XX -DQT_QWS_SHARP -DQT_QWS_EBX -DQT_QWS_CUSTOM QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF diff --git a/mkspecs/qws/linux-simpad-g++/qmake.conf b/mkspecs/qws/linux-simpad-g++/qmake.conf index 9094ea9..d403236 100644 --- a/mkspecs/qws/linux-simpad-g++/qmake.conf +++ b/mkspecs/qws/linux-simpad-g++/qmake.conf @@ -8,7 +8,7 @@ MAKEFILE_GENERATOR = UNIX TEMPLATE = app CONFIG += qt warn_on release -QMAKE_CC = $(CCACHE) arm-linux-gcc +QMAKE_CC = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = yacc @@ -22,7 +22,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CXX = $(CCACHE) arm-linux-g++ +QMAKE_CXX = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_QWS_IPAQ -DQT_QWS_SIMPAD -DQT_QWS_DEVFS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF diff --git a/mkspecs/qws/linux-yopy-g++/qmake.conf b/mkspecs/qws/linux-yopy-g++/qmake.conf index 3c8c148..55e44d0 100755 --- a/mkspecs/qws/linux-yopy-g++/qmake.conf +++ b/mkspecs/qws/linux-yopy-g++/qmake.conf @@ -8,7 +8,7 @@ MAKEFILE_GENERATOR = UNIX TEMPLATE = app CONFIG += qt warn_on release -QMAKE_CC = arm-linux-gcc +QMAKE_CC = $(CCACHE) $(DISTCC) $(shell which arm-linux-gcc) QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = yacc @@ -22,7 +22,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses QMAKE_CFLAGS_THREAD = -D_REENTRANT -QMAKE_CXX = arm-linux-g++ -DQT_QWS_YOPY -I/opt/arm-linux/include/g++-3 +QMAKE_CXX = $(CCACHE) $(DISTCC) $(shell which arm-linux-g++) -DQT_QWS_YOPY -I/opt/arm-linux/include/g++-3 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF -- cgit v0.9.0.2