summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/wrapper_macros.GNU
diff options
context:
space:
mode:
authormcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-06 15:06:02 +0000
committermcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-06 15:06:02 +0000
commit03f3425f5238cfb6ebbc7d96511465e80e17e293 (patch)
treec33e2cb7e8dc90307395c84dfba0be3ea4b41ea1 /ACE/include/makeinclude/wrapper_macros.GNU
parent239f2751c612836d6a4b1900a955f92ecc61e6dd (diff)
downloadATCD-03f3425f5238cfb6ebbc7d96511465e80e17e293.tar.gz
Sat Feb 6 15:03:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
* include/makeinclude/wrapper_macros.GNU: Added support for Icecream distributed compile system.
Diffstat (limited to 'ACE/include/makeinclude/wrapper_macros.GNU')
-rw-r--r--ACE/include/makeinclude/wrapper_macros.GNU27
1 files changed, 27 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/wrapper_macros.GNU b/ACE/include/makeinclude/wrapper_macros.GNU
index c6d62b4f860..7fbc055b9e9 100644
--- a/ACE/include/makeinclude/wrapper_macros.GNU
+++ b/ACE/include/makeinclude/wrapper_macros.GNU
@@ -888,6 +888,33 @@ ace_uuid ?= 1
ace_filecache ?= 1
acexml ?= 1
+# Icecream distributed compilation support
+ifeq ($(icecream),1)
+ # check availability of icecc
+ ifneq ($(ICECC_ROOT),)
+ ICECC_PROG := $(ICECC_ROOT)/icecc
+ else
+ ICECC_PROG := $(shell which icecc 2>/dev/null)
+ endif
+ ICECC_VERTEST := $(shell test -x "$(ICECC_PROG)" && $(ICECC_PROG) --version)
+ ifneq (ICECC,$(findstring ICECC,$(ICECC_VERTEST)))
+ # not good, try alternative install location
+ ICECC_PROG := /opt/icecream/bin/icecc
+ ICECC_VERTEST := $(shell test -x "$(ICECC_PROG)" && $(ICECC_PROG) --version)
+ ifneq (ICECC,$(findstring ICECC,$(ICECC_VERTEST)))
+ override icecream := 0
+ $(error Cannot locate valid Icecream compiler.)
+ endif
+ endif
+ ifeq ($(icecream),1)
+ # force LD and DLD to be 'normal' tools
+ override LD := $(LD)
+ override DLD := $(DLD)
+ CC := $(ICECC_PROG)
+ CXX := $(ICECC_PROG)
+ endif
+endif
+
#----------------------------------------------------------------------------
# Conditional macro definitions
#----------------------------------------------------------------------------