mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-18 23:21:37 +00:00
parent
01dca75d9f
commit
b546e4712d
1 changed files with 19 additions and 3 deletions
22
Makefile
22
Makefile
|
@ -67,6 +67,9 @@ export PLATFORM
|
||||||
ifeq ($(COMPILE_ARCH),powerpc)
|
ifeq ($(COMPILE_ARCH),powerpc)
|
||||||
COMPILE_ARCH=ppc
|
COMPILE_ARCH=ppc
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(COMPILE_ARCH),powerpc64)
|
||||||
|
COMPILE_ARCH=ppc64
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
ARCH=$(COMPILE_ARCH)
|
ARCH=$(COMPILE_ARCH)
|
||||||
|
@ -272,7 +275,11 @@ ifeq ($(PLATFORM),linux)
|
||||||
else
|
else
|
||||||
ifeq ($(ARCH),ppc)
|
ifeq ($(ARCH),ppc)
|
||||||
BASE_CFLAGS += -maltivec
|
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
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -343,6 +350,9 @@ ifeq ($(PLATFORM),darwin)
|
||||||
BASE_CFLAGS += -faltivec
|
BASE_CFLAGS += -faltivec
|
||||||
OPTIMIZE += -O3
|
OPTIMIZE += -O3
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(ARCH),ppc64)
|
||||||
|
BASE_CFLAGS += -faltivec
|
||||||
|
endif
|
||||||
ifeq ($(ARCH),i386)
|
ifeq ($(ARCH),i386)
|
||||||
OPTIMIZE += -march=prescott -mfpmath=sse
|
OPTIMIZE += -march=prescott -mfpmath=sse
|
||||||
# x86 vm will crash without -mstackrealign since MMX instructions will be
|
# x86 vm will crash without -mstackrealign since MMX instructions will be
|
||||||
|
@ -1429,7 +1439,10 @@ ifeq ($(HAVE_VM_COMPILED),true)
|
||||||
Q3OBJ += $(B)/client/vm_x86_64.o $(B)/client/vm_x86_64_assembler.o
|
Q3OBJ += $(B)/client/vm_x86_64.o $(B)/client/vm_x86_64_assembler.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),ppc)
|
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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1572,7 +1585,10 @@ ifeq ($(HAVE_VM_COMPILED),true)
|
||||||
Q3DOBJ += $(B)/ded/vm_x86_64.o $(B)/ded/vm_x86_64_assembler.o
|
Q3DOBJ += $(B)/ded/vm_x86_64.o $(B)/ded/vm_x86_64_assembler.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),ppc)
|
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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue