Bug 6709 - Simplify extensive embedded ifneq logic (and fix missing endif's)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Tilghman Lesher 19 years ago
parent a6f2a3899b
commit adef31698f

@ -37,33 +37,13 @@ WAV49 = -DWAV49
######### ppro's, etc, as well as the AMD K6 and K7. The compile will ######### ppro's, etc, as well as the AMD K6 and K7. The compile will
######### probably require gcc. ######### probably require gcc.
ifneq (${OSARCH},Darwin) ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
ifneq (${OSARCH},SunOS) ifeq (, $(findstring $(PROC) , x86_64 ultrasparc sparc64 arm ppc ppc64 ia64 ))
ifneq (${PROC},x86_64) ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l ))
ifneq (${PROC},ultrasparc)
ifneq ($(shell uname -m),ppc)
ifneq ($(shell uname -m),ppc64)
ifneq ($(shell uname -m),alpha)
ifneq ($(shell uname -m),armv4l)
ifneq (${PROC},sparc64)
ifneq (${PROC},arm)
ifneq (${PROC},ppc)
ifneq (${PROC},ppc64)
ifneq (${PROC},ia64)
OPTIMIZE+=-march=$(PROC) OPTIMIZE+=-march=$(PROC)
endif endif
endif endif
endif endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
#This works for even old (2.96) versions of gcc and provides a small boost either way. #This works for even old (2.96) versions of gcc and provides a small boost either way.
@ -230,26 +210,17 @@ GSM_SOURCES = $(SRC)/add.c \
$(SRC)/gsm_option.c \ $(SRC)/gsm_option.c \
$(SRC)/short_term.c \ $(SRC)/short_term.c \
$(SRC)/table.c $(SRC)/table.c
# add k6-specific code only if not on a non-k6 hardware or proc.
# XXX Keep a space after each findstring argument
# XXX should merge with GSM_OBJECTS
ifeq (${OSARCH},Linux) ifeq (${OSARCH},Linux)
ifneq ($(shell uname -m),x86_64) ifeq (,$(findstring $(shell uname -m) , x86_64 ppc ppc64 alpha armv4l sparc64 parisc ))
ifneq ($(shell uname -m),ppc) ifeq (,$(findstring ${PROC} , arm ia64 ))
ifneq ($(shell uname -m),ppc64)
ifneq ($(shell uname -m),alpha)
ifneq ($(shell uname -m),armv4l)
ifneq ($(shell uname -m),sparc64)
ifneq (${PROC},arm)
ifneq (${PROC},ia64)
ifneq ($(shell uname -m), parisc)
GSM_SOURCES+= $(SRC)/k6opt.s GSM_SOURCES+= $(SRC)/k6opt.s
endif endif
endif endif
endif endif
endif
endif
endif
endif
endif
endif
TOAST_SOURCES = $(SRC)/toast.c \ TOAST_SOURCES = $(SRC)/toast.c \
$(SRC)/toast_lin.c \ $(SRC)/toast_lin.c \
@ -296,23 +267,12 @@ GSM_OBJECTS = $(SRC)/add.o \
$(SRC)/table.o $(SRC)/table.o
ifeq (${OSARCH},Linux) ifeq (${OSARCH},Linux)
ifneq ($(shell uname -m), x86_64) ifeq (,$(findstring $(shell uname -m) , x86_64 ppc ppc64 alpha armv4l sparc64 parisc ))
ifneq ($(shell uname -m), ppc) ifeq (,$(findstring ${PROC} , arm ia64 ))
ifneq ($(shell uname -m), ppc64)
ifneq ($(shell uname -m), alpha)
ifneq ($(shell uname -m), sparc64)
ifneq ($(shell uname -m), armv4l)
ifneq (${PROC},ia64)
ifneq ($(shell uname -m), parisc)
GSM_OBJECTS+= $(SRC)/k6opt.o GSM_OBJECTS+= $(SRC)/k6opt.o
endif endif
endif endif
endif endif
endif
endif
endif
endif
endif
TOAST_OBJECTS = $(SRC)/toast.o \ TOAST_OBJECTS = $(SRC)/toast.o \
$(SRC)/toast_lin.o \ $(SRC)/toast_lin.o \

Loading…
Cancel
Save