1
0
Fork 0

Introduce arm-32 ARCH in Makefile

No functional change.
sf_3_base
Jean-Francois Romang 2012-10-10 19:34:06 +08:00 committed by Marco Costalba
parent 46c01b5083
commit 4e7da9be3d
1 changed files with 20 additions and 6 deletions

View File

@ -125,6 +125,16 @@ ifeq ($(ARCH),x86-32-old)
popcnt = no
endif
#arm section
ifeq ($(ARCH),arm-32)
arch = arm-32
os = any
bits = 32
prefetch = yes
bsfq = no
popcnt = no
endif
# osx-section
ifeq ($(ARCH),osx-ppc-64)
arch = ppc64
@ -175,7 +185,6 @@ endif
ifeq ($(COMP),mingw)
comp=mingw
CXX=g++
prefetch = yes
profile_prepare = gcc-profile-prepare
profile_make = gcc-profile-make
profile_use = gcc-profile-use
@ -185,7 +194,6 @@ endif
ifeq ($(COMP),gcc)
comp=gcc
CXX=g++
prefetch = yes
profile_prepare = gcc-profile-prepare
profile_make = gcc-profile-make
profile_use = gcc-profile-use
@ -204,7 +212,6 @@ endif
ifeq ($(COMP),clang)
comp=clang
CXX=clang++
prefetch = yes
profile_prepare = gcc-profile-prepare
profile_make = gcc-profile-make
profile_use = gcc-profile-use
@ -268,6 +275,10 @@ ifeq ($(optimize),yes)
CXXFLAGS += -mdynamic-no-pic
endif
endif
ifeq ($(arch),arm-32)
CXXFLAGS += -fno-gcse
endif
endif
ifeq ($(comp),mingw)
@ -304,8 +315,10 @@ endif
### 3.7 prefetch
ifeq ($(prefetch),yes)
CXXFLAGS += -msse
DEPENDFLAGS += -msse
ifneq ($(arch),arm-32)
CXXFLAGS += -msse
DEPENDFLAGS += -msse
endif
else
CXXFLAGS += -DNO_PREFETCH
endif
@ -363,6 +376,7 @@ help:
@echo "osx-ppc-32 > PPC-Mac OS X 32 bit"
@echo "osx-x86-64 > x86-Mac OS X 64 bit"
@echo "osx-x86-32 > x86-Mac OS X 32 bit"
@echo "arm-32 > ARM 32 bit"
@echo "general-64 > unspecified 64-bit"
@echo "general-32 > unspecified 32-bit"
@echo ""
@ -452,7 +466,7 @@ config-sanity:
@test "$(debug)" = "yes" || test "$(debug)" = "no"
@test "$(optimize)" = "yes" || test "$(optimize)" = "no"
@test "$(arch)" = "any" || test "$(arch)" = "x86_64" || test "$(arch)" = "i386" || \
test "$(arch)" = "ppc64" || test "$(arch)" = "ppc"
test "$(arch)" = "ppc64" || test "$(arch)" = "ppc" || test "$(arch)" = "arm-32"
@test "$(os)" = "any" || test "$(os)" = "osx"
@test "$(bits)" = "32" || test "$(bits)" = "64"
@test "$(prefetch)" = "yes" || test "$(prefetch)" = "no"