1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Introduce arm-32 ARCH in Makefile

No functional change.
This commit is contained in:
Jean-Francois Romang 2012-10-10 19:34:06 +08:00 committed by Marco Costalba
parent 46c01b5083
commit 4e7da9be3d

View file

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