r1484 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Nov 10 04:46:50 EST 2008


Author: ludwig
Date: 2008-11-10 04:46:41 -0500 (Mon, 10 Nov 2008)
New Revision: 1484

Modified:
   trunk/Makefile
Log:
enable new powerpc vm

Patch by Przemys?\197?\130aw Iskra (#3796)

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2008-11-10 09:46:31 UTC (rev 1483)
+++ trunk/Makefile	2008-11-10 09:46:41 UTC (rev 1484)
@@ -67,6 +67,9 @@
 ifeq ($(COMPILE_ARCH),powerpc)
   COMPILE_ARCH=ppc
 endif
+ifeq ($(COMPILE_ARCH),powerpc64)
+  COMPILE_ARCH=ppc64
+endif
 
 ifndef ARCH
 ARCH=$(COMPILE_ARCH)
@@ -272,10 +275,14 @@
   else
   ifeq ($(ARCH),ppc)
     BASE_CFLAGS += -maltivec
-    HAVE_VM_COMPILED=false
+    HAVE_VM_COMPILED=true
   endif
+  ifeq ($(ARCH),ppc64)
+    BASE_CFLAGS += -maltivec
+    HAVE_VM_COMPILED=true
   endif
   endif
+  endif
 
   ifneq ($(HAVE_VM_COMPILED),true)
     BASE_CFLAGS += -DNO_VM_COMPILED
@@ -343,6 +350,9 @@
     BASE_CFLAGS += -faltivec
     OPTIMIZE += -O3
   endif
+  ifeq ($(ARCH),ppc64)
+    BASE_CFLAGS += -faltivec
+  endif
   ifeq ($(ARCH),i386)
     OPTIMIZE += -march=prescott -mfpmath=sse
     # x86 vm will crash without -mstackrealign since MMX instructions will be
@@ -1429,8 +1439,11 @@
     Q3OBJ += $(B)/client/vm_x86_64.o $(B)/client/vm_x86_64_assembler.o
   endif
   ifeq ($(ARCH),ppc)
-    Q3OBJ += $(B)/client/vm_ppc.o
+    Q3OBJ += $(B)/client/vm_powerpc.o $(B)/client/vm_powerpc_asm.o
   endif
+  ifeq ($(ARCH),ppc64)
+    Q3OBJ += $(B)/client/vm_powerpc.o $(B)/client/vm_powerpc_asm.o
+  endif
 endif
 
 ifeq ($(PLATFORM),mingw32)
@@ -1572,8 +1585,11 @@
     Q3DOBJ += $(B)/ded/vm_x86_64.o $(B)/ded/vm_x86_64_assembler.o
   endif
   ifeq ($(ARCH),ppc)
-    Q3DOBJ += $(B)/ded/vm_ppc.o
+    Q3DOBJ += $(B)/ded/vm_powerpc.o $(B)/ded/vm_powerpc_asm.o
   endif
+  ifeq ($(ARCH),ppc64)
+    Q3DOBJ += $(B)/ded/vm_powerpc.o $(B)/ded/vm_powerpc_asm.o
+  endif
 endif
 
 ifeq ($(PLATFORM),mingw32)




More information about the quake3-commits mailing list