mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Alpha portability from Ricudis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2002, Christos Ricudis
|
* Copyright (C) 2002, Christos Ricudis
|
||||||
*
|
*
|
||||||
* Christos Ricudis <ricudis@paiko.gr>
|
* Christos Ricudis <ricudis@itc.auth.gr>
|
||||||
*
|
*
|
||||||
* This program is free software, distributed under the terms of
|
* This program is free software, distributed under the terms of
|
||||||
* the GNU General Public License
|
* the GNU General Public License
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2002, Christos Ricudis
|
* Copyright (C) 2002, Christos Ricudis
|
||||||
*
|
*
|
||||||
* Christos Ricudis <ricudis@paiko.gr>
|
* Christos Ricudis <ricudis@itc.auth.gr>
|
||||||
*
|
*
|
||||||
* This program is free software, distributed under the terms of
|
* This program is free software, distributed under the terms of
|
||||||
* the GNU General Public License
|
* the GNU General Public License
|
||||||
|
@@ -40,10 +40,12 @@ WAV49 = -DWAV49
|
|||||||
ifneq (${OSARCH},Darwin)
|
ifneq (${OSARCH},Darwin)
|
||||||
ifneq (${PROC},x86_64)
|
ifneq (${PROC},x86_64)
|
||||||
ifneq ($(shell uname -m),ppc)
|
ifneq ($(shell uname -m),ppc)
|
||||||
|
ifneq ($(shell uname -m),alpha)
|
||||||
OPTIMIZE+=-march=$(PROC)
|
OPTIMIZE+=-march=$(PROC)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
PG =
|
PG =
|
||||||
#PG = -g -pg
|
#PG = -g -pg
|
||||||
@@ -200,10 +202,12 @@ GSM_SOURCES = $(SRC)/add.c \
|
|||||||
ifeq (${OSARCH},Linux)
|
ifeq (${OSARCH},Linux)
|
||||||
ifneq (${PROC},x86_64)
|
ifneq (${PROC},x86_64)
|
||||||
ifneq ($(shell uname -m),ppc)
|
ifneq ($(shell uname -m),ppc)
|
||||||
|
ifneq ($(shell uname -m),alpha)
|
||||||
GSM_SOURCES+= $(SRC)/k6opt.s
|
GSM_SOURCES+= $(SRC)/k6opt.s
|
||||||
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 \
|
||||||
@@ -251,10 +255,12 @@ GSM_OBJECTS = $(SRC)/add.o \
|
|||||||
ifeq (${OSARCH},Linux)
|
ifeq (${OSARCH},Linux)
|
||||||
ifneq (${PROC},x86_64)
|
ifneq (${PROC},x86_64)
|
||||||
ifneq ($(shell uname -m), ppc)
|
ifneq ($(shell uname -m), ppc)
|
||||||
|
ifneq ($(shell uname -m), alpha)
|
||||||
GSM_OBJECTS+= $(SRC)/k6opt.o
|
GSM_OBJECTS+= $(SRC)/k6opt.o
|
||||||
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 \
|
||||||
|
@@ -25,14 +25,16 @@ WARNINGS = -Wall -Wno-comment -Wno-error
|
|||||||
CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
|
CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
|
||||||
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
|
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
|
||||||
|
|
||||||
#fix for PPC processors
|
#fix for PPC processors and ALPHA too
|
||||||
ifneq ($(OSARCH),Darwin)
|
ifneq ($(OSARCH),Darwin)
|
||||||
ifneq ($(PROC),ppc)
|
ifneq ($(PROC),ppc)
|
||||||
ifneq ($(PROC),x86_64)
|
ifneq ($(PROC),x86_64)
|
||||||
|
ifneq ($(PROC),alpha)
|
||||||
CFLAGS+= -march=$(PROC)
|
CFLAGS+= -march=$(PROC)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
LIB = $(LIB_TARGET_DIR)/liblpc10.a
|
LIB = $(LIB_TARGET_DIR)/liblpc10.a
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user