Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Makefile to support PowerPC64 LE #613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,17 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
HAVE_VM_COMPILED=true
else
ifeq ($(ARCH),ppc)
ALTIVEC_CFLAGS = -maltivec
ifneq ($(findstring $(ARCH),ppc ppc64 ppc64le),)
HAVE_VM_COMPILED=true
endif
ifeq ($(ARCH),ppc)
OPTIMIZE += -mcpu=powerpc
endif
ifeq ($(ARCH),ppc64)
ALTIVEC_CFLAGS = -maltivec
HAVE_VM_COMPILED=true
OPTIMIZE += -mcpu=power7
endif
ifeq ($(ARCH),ppc64le)
OPTIMIZE += -mcpu=power8
endif
ifeq ($(ARCH),sparc)
OPTIMIZE += -mtune=ultrasparc3 -mv8plus
Expand Down Expand Up @@ -424,10 +428,6 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")
ifeq ($(ARCH),x86)
# linux32 make ...
BASE_CFLAGS += -m32
else
ifeq ($(ARCH),ppc64)
BASE_CFLAGS += -m64
endif
endif
else # ifeq Linux

Expand Down Expand Up @@ -2257,7 +2257,7 @@ ifeq ($(HAVE_VM_COMPILED),true)
Q3OBJ += \
$(B)/client/vm_x86.o
endif
ifneq ($(findstring $(ARCH),ppc ppc64),)
ifneq ($(findstring $(ARCH),ppc ppc64 ppc64le),)
Q3OBJ += $(B)/client/vm_powerpc.o $(B)/client/vm_powerpc_asm.o
endif
ifeq ($(ARCH),sparc)
Expand Down Expand Up @@ -2433,7 +2433,7 @@ ifeq ($(HAVE_VM_COMPILED),true)
Q3DOBJ += \
$(B)/ded/vm_x86.o
endif
ifneq ($(findstring $(ARCH),ppc ppc64),)
ifneq ($(findstring $(ARCH),ppc ppc64 ppc64le),)
Q3DOBJ += $(B)/ded/vm_powerpc.o $(B)/ded/vm_powerpc_asm.o
endif
ifeq ($(ARCH),sparc)
Expand Down