aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-30 11:37:41 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-30 11:37:41 +0000
commitc31521148e810cadaddba5f1c564d20162b3de82 (patch)
treefb5451eb47342366305bd6577077123c8c8666b7 /code/unix
parent42682fd68d372ce18fdba3959a3caa7f5e6c92e5 (diff)
downloadioquake3-aero-c31521148e810cadaddba5f1c564d20162b3de82.tar.gz
ioquake3-aero-c31521148e810cadaddba5f1c564d20162b3de82.zip
fix build on ppc. no guarantee it runs though
git-svn-id: svn://svn.icculus.org/quake3/trunk@27 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 6d2d2fa..10e8dc5 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -103,6 +103,10 @@ ifeq ($(PLATFORM),linux)
else
ifeq ($(ARCH),x86_64)
LIB=lib64
+ else
+ ifeq ($(ARCH),ppc)
+ VM_PPC=vm_none
+ endif
endif
endif
@@ -125,10 +129,15 @@ ifeq ($(PLATFORM),linux)
DEBUG_CFLAGS += -O0
OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
ifeq ($(ARCH),x86_64)
- OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fstrength-reduce -fno-strict-aliasing
+ OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fstrength-reduce -fno-strict-aliasing
else
ifeq ($(ARCH),i386)
- OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce
+ OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce
+ BASE_CFLAGS += -DHAVE_VM_NATIVE -DHAVE_VM_COMPILED
+ else
+ ifeq ($(ARCH),ppc)
+ BASE_CFLAGS += -DHAVE_VM_NATIVE
+ endif
endif
endif
@@ -511,7 +520,7 @@ Q3OBJ = \
ifeq ($(ARCH),ppc)
ifeq ($(DLL_ONLY),false)
- Q3OBJ += $(B)/client/vm_ppc.o
+ Q3OBJ += $(B)/client/$(VM_PPC).o
endif
endif
@@ -742,7 +751,7 @@ endif
ifeq ($(ARCH),ppc)
ifeq ($(DLL_ONLY),false)
-$(B)/client/vm_ppc.o : $(CMDIR)/vm_ppc.c; $(DO_CC)
+$(B)/client/$(VM_PPC).o : $(CMDIR)/$(VM_PPC).c; $(DO_CC)
endif
endif
@@ -835,7 +844,7 @@ endif
ifeq ($(ARCH),ppc)
ifeq ($(DLL_ONLY),false)
- Q3DOBJ += $(B)/ded/vm_ppc.o
+ Q3DOBJ += $(B)/ded/$(VM_PPC).o
endif
endif
@@ -920,7 +929,7 @@ endif
ifeq ($(ARCH),ppc)
ifeq ($(DLL_ONLY),false)
-$(B)/ded/vm_ppc.o : $(CMDIR)/vm_ppc.c; $(DO_DED_CC)
+$(B)/ded/$(VM_PPC).o : $(CMDIR)/$(VM_PPC).c; $(DO_DED_CC)
endif
endif
@@ -1547,7 +1556,7 @@ endif
ifeq ($(ARCH),ppc)
ifeq ($(DLL_ONLY),false)
- Q3SOBJ += $(B)/q3static/vm_ppc.o
+ Q3SOBJ += $(B)/q3static/$(VM_PPC).o
endif
endif
@@ -1706,7 +1715,7 @@ endif
ifeq ($(ARCH),ppc)
ifeq ($(DLL_ONLY),false)
-$(B)/q3static/vm_ppc.o : $(CMDIR)/vm_ppc.c; $(DO_CC) -DQ3_STATIC
+$(B)/q3static/$(VM_PPC).o : $(CMDIR)/$(VM_PPC).c; $(DO_CC) -DQ3_STATIC
endif
endif