aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2000-09-13 13:56:03 +0000
committertradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2000-09-13 13:56:03 +0000
commit5a3dcc3142fd8c7fb8199f0bc5acdb2692361b66 (patch)
treeda63f96038aea4669833a2f83d032fe882afe474
parent8fe367ecf2cbda79960a68a052fdb84916427c0e (diff)
Thorn FlexIO replacing thorn IEEEIO
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@4 21a6bef8-4479-4f54-8f8d-0db94a2919ef
-rw-r--r--README7
-rw-r--r--interface.ccl4
-rw-r--r--param.ccl2
-rw-r--r--schedule.ccl2
-rw-r--r--src/make.code.defn117
5 files changed, 132 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..fb03251
--- /dev/null
+++ b/README
@@ -0,0 +1,7 @@
+Cactus Code Thorn FlexIO
+Authors : John Shalf (jshalf@lbl.gov)
+CVS info : $Header$
+--------------------------------------------------------------------------
+
+Purpose of the thorn:
+
diff --git a/interface.ccl b/interface.ccl
new file mode 100644
index 0000000..25e8487
--- /dev/null
+++ b/interface.ccl
@@ -0,0 +1,4 @@
+# Interface definition for thorn FlexIO
+# $Header$
+
+implements: FlexIO
diff --git a/param.ccl b/param.ccl
new file mode 100644
index 0000000..d71c4eb
--- /dev/null
+++ b/param.ccl
@@ -0,0 +1,2 @@
+# Parameter definitions for thorn FlexIO
+# $Header$
diff --git a/schedule.ccl b/schedule.ccl
new file mode 100644
index 0000000..c7f4331
--- /dev/null
+++ b/schedule.ccl
@@ -0,0 +1,2 @@
+# Schedule definitions for thorn FlexIO
+# $Header$
diff --git a/src/make.code.defn b/src/make.code.defn
new file mode 100644
index 0000000..05341e0
--- /dev/null
+++ b/src/make.code.defn
@@ -0,0 +1,117 @@
+# Main make.code.defn file for thorn IEEEIO
+
+# Source files in this directory
+SRCS = IO.cc IEEEIO.cc
+
+# Subdirectories containing source files
+SUBDIRS =
+
+# Work out some thorn specific compilation flags
+# These are stripped down lines from the original IEEEIO makefile
+
+# The 9000 names of the cygwin tools and T3E...
+TMPUN := $(shell uname)
+ifeq ($(TMPUN), CYGWIN32_95)
+UNAME = CYGWIN
+else
+ifeq ($(TMPUN), CYGWIN32_NT)
+UNAME = CYGWIN
+else
+ifeq ($(TMPUN), CYGWIN_NT-4.0)
+UNAME = CYGWIN
+else
+ifeq ($(TMPUN), CYGWIN_NT-5.0)
+UNAME = CYGWIN
+else
+UNAME := $(shell uname | perl -pe 's/(sn\d\d\d\d|jsimpson)/UNICOS\/mk/')
+endif
+endif
+endif
+endif
+
+# 64 Bit Irix
+ifeq ($(UNAME), IRIX64)
+
+CXXFLAGS += -DANSI -ptused -DSGI
+
+endif
+
+# 32 Bit Irix
+ifeq ($(UNAME), IRIX)
+
+CXXFLAGS += -DANSI -ptused -DSGI
+
+endif
+
+# HP
+ifeq ($(UNAME), HP-UX)
+
+CXXFLAGS += -DANSI -DHP
+
+endif
+
+# Alpha
+ifeq ($(UNAME), OSF1)
+
+CXXFLAGS += -DANSI
+
+endif
+
+# Linux
+ifeq ($(UNAME), Linux)
+
+CXXFLAGS += -DANSI
+
+endif
+
+# Macintosh /PowerMach-MachTen
+ifeq ($(UNAME), machten)
+
+CXXFLAGS += -DANSI
+
+endif
+
+# Cygwin / Win32
+ifeq ($(UNAME), CYGWIN)
+
+CFLAGS += -DANSI -DWIN32
+CXXFLAGS += -DANSI -DWIN32
+
+endif
+
+# T3E
+ifeq ($(UNAME), UNICOS/mk)
+
+CXXFLAGS += -DANSI -DT3E -hinstantiate=used
+
+endif
+
+# SP
+ifeq ($(UNAME), AIX)
+
+CXXFLAGS += -DANSI
+
+endif
+
+# HITACHI
+ifeq ($(UNAME), HI-UX/MPP)
+
+CXXFLAGS += -DANSI -DHITACHI
+
+endif
+
+# SunOS
+ifeq ($(UNAME), SunOS)
+
+CXXFLAGS += -DANSI -DSOLARIS
+
+endif
+
+#
+# Template instantion flags for SUN OS
+#( silly compiler can't do implicit global template instantion!)
+#CXX_FLAGS_solaris2.8 = -instances=global
+CXX_FLAGS_solaris2.8 = -instances=static
+
+CXXFLAGS += $(CXX_FLAGS_${OS})
+