aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 09:03:28 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 09:03:28 +0000
commitdf97c9815e12c550276d8cff939ce993c5d2b783 (patch)
tree0d5b7b3c2728a8f8ed6a69c99eb03307a24d1318
parenteeae23bb9a0fb0dc61044fe8214807bf0fe9f763 (diff)
downloadioquake3-aero-df97c9815e12c550276d8cff939ce993c5d2b783.tar.gz
ioquake3-aero-df97c9815e12c550276d8cff939ce993c5d2b783.zip
add s390, s390x and ia64. It builds, don't know if it runs tough.
git-svn-id: svn://svn.icculus.org/quake3/trunk@44 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/game/q_shared.h6
-rw-r--r--code/splines/q_shared.h6
-rw-r--r--code/unix/Makefile8
-rw-r--r--code/unix/unix_main.c12
4 files changed, 32 insertions, 0 deletions
diff --git a/code/game/q_shared.h b/code/game/q_shared.h
index c35c911..d16bb1d 100644
--- a/code/game/q_shared.h
+++ b/code/game/q_shared.h
@@ -260,6 +260,12 @@ static inline float LittleFloat (const float l) { return FloatSwap(&l); }
#define CPUSTRING "linux-ppc64"
#elif defined __powerpc__
#define CPUSTRING "linux-ppc"
+#elif defined __s390__
+#define CPUSTRING "linux-s390"
+#elif defined __s390x__
+#define CPUSTRING "linux-s390x"
+#elif defined __ia64__
+#define CPUSTRING "linux-ia64"
#else
#define CPUSTRING "linux-other"
#endif
diff --git a/code/splines/q_shared.h b/code/splines/q_shared.h
index 8f28622..c554823 100644
--- a/code/splines/q_shared.h
+++ b/code/splines/q_shared.h
@@ -206,6 +206,12 @@ void Sys_PumpEvents( void );
#define CPUSTRING "linux-ppc64"
#elif defined __powerpc__
#define CPUSTRING "linux-ppc"
+#elif defined __s390__
+#define CPUSTRING "linux-s390"
+#elif defined __s390x__
+#define CPUSTRING "linux-s390x"
+#elif defined __ia64__
+#define CPUSTRING "linux-ia64"
#else
#define CPUSTRING "linux-other"
#endif
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 49b0ff6..399c65e 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -106,11 +106,19 @@ ifeq ($(PLATFORM),linux)
ifeq ($(ARCH),x86_64)
LIB=lib64
else
+ ifeq ($(ARCH),ppc64)
+ LIB=lib64
+ else
+ ifeq ($(ARCH),s390x)
+ LIB=lib64
+ else
ifeq ($(ARCH),ppc)
VM_PPC=vm_none
endif
endif
endif
+ endif
+ endif
# bk001205: no mo' -I/usr/include/glide, no FX
# bk001205: no mo' -Dstricmp=strcasecmp, see q_shared.h
diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c
index 107023d..9e15e0e 100644
--- a/code/unix/unix_main.c
+++ b/code/unix/unix_main.c
@@ -356,6 +356,12 @@ void Sys_Init(void)
Cvar_Set( "arch", "linux ppc64" );
# elif defined __powerpc__
Cvar_Set( "arch", "linux ppc" );
+# elif defined __s390__
+ Cvar_Set( "arch", "linux s390" );
+# elif defined __s390x__
+ Cvar_Set( "arch", "linux s390x" );
+# elif defined __ia64__
+ Cvar_Set( "arch", "linux ia64" );
# elif defined __alpha__
Cvar_Set( "arch", "linux alpha" );
# elif defined __sparc__
@@ -760,6 +766,12 @@ void *Sys_LoadDll( const char *name, char *fqpath ,
snprintf (fname, sizeof(fname), "%sppc64.so", name);
#elif defined __powerpc__ //rcg010207 - PPC support.
snprintf (fname, sizeof(fname), "%sppc.so", name);
+#elif defined __s390__
+ snprintf (fname, sizeof(fname), "%ss390.so", name);
+#elif defined __s390x__
+ snprintf (fname, sizeof(fname), "%ss390x.so", name);
+#elif defined __ia64__
+ snprintf (fname, sizeof(fname), "%sia64.so", name);
#elif defined __axp__
snprintf (fname, sizeof(fname), "%saxp.so", name);
#elif defined __mips__