diff options
author | tradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2000-09-13 13:56:03 +0000 |
---|---|---|
committer | tradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2000-09-13 13:56:03 +0000 |
commit | 5a3dcc3142fd8c7fb8199f0bc5acdb2692361b66 (patch) | |
tree | da63f96038aea4669833a2f83d032fe882afe474 /src | |
parent | 8fe367ecf2cbda79960a68a052fdb84916427c0e (diff) |
Thorn FlexIO replacing thorn IEEEIO
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@4 21a6bef8-4479-4f54-8f8d-0db94a2919ef
Diffstat (limited to 'src')
-rw-r--r-- | src/make.code.defn | 117 |
1 files changed, 117 insertions, 0 deletions
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}) + |