aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authormatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-18 06:00:18 +0000
committermatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-18 06:00:18 +0000
commit15d2f7aa97d8aeb5c079eb0f8f12e34566cc25e3 (patch)
treef8415b483851763c16dc9983cd34c8bb265982d9 /codecs
parent5ed6a971dafbe158e7406bc15694187df80047c4 (diff)
Tue Mar 18 07:00:01 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@652 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rwxr-xr-xcodecs/gsm/Makefile4
-rwxr-xr-xcodecs/lpc10/Makefile5
2 files changed, 5 insertions, 4 deletions
diff --git a/codecs/gsm/Makefile b/codecs/gsm/Makefile
index 9e211f575..721879da9 100755
--- a/codecs/gsm/Makefile
+++ b/codecs/gsm/Makefile
@@ -31,7 +31,7 @@ WAV49 = -DWAV49
######### manual page on gsm_option(3).
#K6OPT = -DK6OPT
-K6OPT =
+#K6OPT =
######### Define to enable MMXTM optimizations for x86 architecture CPU's
######### which support MMX instructions. This should be newer pentiums,
######### ppro's, etc, as well as the AMD K6 and K7. The compile will
@@ -54,7 +54,7 @@ PG =
# CC = /usr/lang/acc
# CCFLAGS = -c -O
-CC = gcc -ansi -pedantic -O6 -mpentium -fschedule-insns2 -fomit-frame-pointer
+CC = gcc -ansi -pedantic $(OPTIMIZE) -march=$(PROC) -fschedule-insns2 -fomit-frame-pointer
CCFLAGS += -c -DNeedFunctionPrototypes=1 -finline-functions -funroll-loops
LD = $(CC)
diff --git a/codecs/lpc10/Makefile b/codecs/lpc10/Makefile
index af5131d77..61d87740c 100755
--- a/codecs/lpc10/Makefile
+++ b/codecs/lpc10/Makefile
@@ -22,8 +22,9 @@ LIB_TARGET_DIR = .
#
WARNINGS = -Wall -Wno-comment -Wno-error
-CFLAGS = -O6 -I$(LIB_TARGET_DIR) $(WARNINGS)
-CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
+CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS)
+#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
+CFLAGS+= -march=$(PROC)
LIB = $(LIB_TARGET_DIR)/liblpc10.a