summaryrefslogtreecommitdiff
blob: ae1aa2e4068c0db73204a76358a799ed42ca92c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
--- quake2-r0.16.1.orig/Makefile
+++ quake2-r0.16.1/Makefile
@@ -54,24 +54,26 @@ endif
 
 
 # this nice line comes from the linux kernel makefile
 ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/)
 
 ifneq ($(ARCH),x86_64)
 ifneq ($(ARCH),i386)
 ifneq ($(ARCH),axp)
+ifneq ($(ARCH),ia64)
 ifneq ($(ARCH),ppc)
 ifneq ($(ARCH),sparc)
 $(error arch $(ARCH) is currently not supported)
 endif
 endif
 endif
 endif
 endif
+endif
 
 CC=gcc
 
 ifndef OPT_CFLAGS
 ifeq ($(ARCH),axp)
 OPT_CFLAGS=-ffast-math -funroll-loops \
 	-fomit-frame-pointer -fexpensive-optimizations
 endif
@@ -283,16 +285,46 @@ ifeq ($(ARCH),axp)
   $(warning Warning: SDL support not supported for $(ARCH))
  endif
 
  ifeq ($(strip $(BUILD_SDLGL)),YES)
   $(warning Warning: SDLGL support not supported for $(ARCH))
  endif
 endif # ARCH axp
 
+ifeq ($(ARCH),ia64)
+ ifeq ($(strip $(BUILD_SDLQUAKE2)),YES)
+  TARGETS += $(BUILDDIR)/sdlquake2
+ endif
+
+ ifeq ($(strip $(BUILD_SVGA)),YES)
+  TARGETS += $(BUILDDIR)/ref_soft.$(SHLIBEXT)
+ endif
+
+ ifeq ($(strip $(BUILD_X11)),YES)
+  TARGETS += $(BUILDDIR)/ref_softx.$(SHLIBEXT)
+ endif
+
+ ifeq ($(strip $(BUILD_GLX)),YES)
+  TARGETS += $(BUILDDIR)/ref_glx.$(SHLIBEXT)
+ endif
+
+ ifeq ($(strip $(BUILD_FXGL)),YES)
+  TARGETS += $(BUILDDIR)/ref_gl.$(SHLIBEXT)
+ endif
+
+ ifeq ($(strip $(BUILD_SDL)),YES)
+  TARGETS += $(BUILDDIR)/ref_softsdl.$(SHLIBEXT)
+ endif
+
+ ifeq ($(strip $(BUILD_SDLGL)),YES)
+  TARGETS += $(BUILDDIR)/ref_sdlgl.$(SHLIBEXT)
+ endif
+endif # ARCH ia64
+
 ifeq ($(ARCH),ppc)
  ifeq ($(strip $(BUILD_SDLQUAKE2)),YES)
   TARGETS += $(BUILDDIR)/sdlquake2
  endif
  
  ifeq ($(strip $(BUILD_SVGA)),YES)
   $(warning Warning: SVGAlib support not supported for $(ARCH))
  endif
--- quake2-r0.16.1.orig/src/linux/sys_linux.c
+++ quake2-r0.16.1/src/linux/sys_linux.c
@@ -216,16 +216,18 @@ void *Sys_GetGameAPI (void *parms)
 	char	*path;
 	char	*str_p;
 #if defined __i386__
 	const char *gamename = "gamei386.so";
 #elif defined __x86_64__
 	const char *gamename = "gamex86_64.so";
 #elif defined __alpha__
 	const char *gamename = "gameaxp.so";
+#elif defined __ia64__
+	const char *gamename = "gameia64.so";
 #elif defined __powerpc__
 	const char *gamename = "gameppc.so";
 #elif defined __sparc__
 	const char *gamename = "gamesparc.so";
 #else
 #error Unknown arch
 #endif