summaryrefslogtreecommitdiff
path: root/trunk/ACE/include/makeinclude/platform_cray.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/include/makeinclude/platform_cray.GNU')
-rw-r--r--trunk/ACE/include/makeinclude/platform_cray.GNU50
1 files changed, 50 insertions, 0 deletions
diff --git a/trunk/ACE/include/makeinclude/platform_cray.GNU b/trunk/ACE/include/makeinclude/platform_cray.GNU
new file mode 100644
index 00000000000..af4c700010a
--- /dev/null
+++ b/trunk/ACE/include/makeinclude/platform_cray.GNU
@@ -0,0 +1,50 @@
+# $Id$
+
+# Platform macros for SGI/Cray UNICOS (vector) & UNICOS/mk (mpp) -
+# UNICOS 9.0.2.8
+# UNICOS 10.0.0.5
+# UNICOS/mk 2.0.4.57
+# Cray C++ Version 3.2.0.1
+# Cray Standard C Version 6.2.0.1
+#
+# Contributed by Doug Anderson <dla@home.com>
+
+debug = 1
+exceptions = 1
+static_libs_only = 1
+quantify =
+purify =
+
+# Cray's autoinstantiation seems to be broken, resulting in
+# C++ prelinker: error: instantiation loop
+# So, we're using ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
+CC = cc
+LDLIB += -L$(ACE_ROOT)/lib
+CXX = CC
+#CFLAGS +=
+CCFLAGS += -h noautoinstantiate
+DCFLAGS += -g
+DCCFLAGS += $(DCFLAGS)
+OCFLAGS += -O2
+OCCFLAGS += $(OCFLAGS)
+
+ifeq (1,$(exceptions))
+ CCFLAGS += -h exceptions
+else
+ CCFLAGS += -h noexceptions
+endif # exceptions
+
+DLD = $(CXX)
+LD = $(CXX)
+LIBS = -lpthread
+PIC =
+AR = ar
+ARFLAGS = ruv
+RANLIB = /bin/true
+
+# This is necessary to get libraries to contain template info, but only
+# necessary when using autoinstantiation
+# PRELIB = @echo ""; \
+# echo "int main() { return 0; }" >dummy.cpp; \
+# echo "$(CXX) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LIBS) -o dummy dummy.cpp $?";\
+# $(CXX) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LIBS) -o dummy dummy.cpp $?;