summaryrefslogtreecommitdiff
path: root/codecs/gsm/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-10-27 20:00:41 +0000
committerMark Spencer <markster@digium.com>2003-10-27 20:00:41 +0000
commit0de223a1ee6200ce2237e03a4b093e35770ea608 (patch)
treec8ce701bc8a19fff64bf153bba8347c57ac0e658 /codecs/gsm/Makefile
parent251e70953e7663a46554451fff1ed95f1e4e5ed4 (diff)
More cleanups and OSX fixes for 10.3
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/gsm/Makefile')
-rwxr-xr-xcodecs/gsm/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/codecs/gsm/Makefile b/codecs/gsm/Makefile
index 5e2ccd180..490f3938c 100755
--- a/codecs/gsm/Makefile
+++ b/codecs/gsm/Makefile
@@ -37,6 +37,10 @@ WAV49 = -DWAV49
######### ppro's, etc, as well as the AMD K6 and K7. The compile will
######### probably require gcc.
+ifneq (${OSARCH},Darwin)
+OPTIMIZE+=-march=$(PROC)
+endif
+
PG =
#PG = -g -pg
######### Profiling flags. If you don't know what that means, leave it blank.
@@ -54,7 +58,7 @@ PG =
# CC = /usr/lang/acc
# CCFLAGS = -c -O
-CC = gcc $(OPTIMIZE) -march=$(PROC) -fomit-frame-pointer
+CC = gcc $(OPTIMIZE) -fomit-frame-pointer
CCFLAGS += -c -DNeedFunctionPrototypes=1 -funroll-loops -fPIC
LD = $(CC)
@@ -189,7 +193,7 @@ GSM_SOURCES = $(SRC)/add.c \
$(SRC)/gsm_option.c \
$(SRC)/short_term.c \
$(SRC)/table.c
-ifneq (${OSARCH},OpenBSD)
+ifeq (${OSARCH},Linux)
GSM_SOURCES+= $(SRC)/k6opt.s
endif
@@ -236,7 +240,7 @@ GSM_OBJECTS = $(SRC)/add.o \
$(SRC)/gsm_option.o \
$(SRC)/short_term.o \
$(SRC)/table.o
-ifneq (${OSARCH},OpenBSD)
+ifeq (${OSARCH},Linux)
GSM_OBJECTS+= $(SRC)/k6opt.o
endif