mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
More BSD enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -21,7 +21,7 @@ MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
|
||||
MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
|
||||
MODSPEEX=$(shell [ -f /usr/include/speex.h ] || [ -f /usr/local/include/speex.h ] && echo "codec_speex.so")
|
||||
MODILBC=$(shell [ -f ilbc/iLBC_decode.h ] && echo "codec_ilbc.so")
|
||||
CFLAGS+=
|
||||
CFLAGS+=-fPIC
|
||||
|
||||
LIBG723=g723.1/libg723.a
|
||||
LIBG723B=g723.1b/libg723b.a
|
||||
|
||||
@@ -55,7 +55,7 @@ PG =
|
||||
# CCFLAGS = -c -O
|
||||
|
||||
CC = gcc -ansi -pedantic $(OPTIMIZE) -march=$(PROC) -fschedule-insns2 -fomit-frame-pointer
|
||||
CCFLAGS += -c -DNeedFunctionPrototypes=1 -finline-functions -funroll-loops
|
||||
CCFLAGS += -c -DNeedFunctionPrototypes=1 -finline-functions -funroll-loops -fPIC
|
||||
|
||||
LD = $(CC)
|
||||
|
||||
@@ -175,7 +175,6 @@ GSM_SOURCES = $(SRC)/add.c \
|
||||
$(SRC)/code.c \
|
||||
$(SRC)/debug.c \
|
||||
$(SRC)/decode.c \
|
||||
$(SRC)/k6opt.s \
|
||||
$(SRC)/long_term.c \
|
||||
$(SRC)/lpc.c \
|
||||
$(SRC)/preprocess.c \
|
||||
@@ -190,6 +189,9 @@ GSM_SOURCES = $(SRC)/add.c \
|
||||
$(SRC)/gsm_option.c \
|
||||
$(SRC)/short_term.c \
|
||||
$(SRC)/table.c
|
||||
ifneq (${OSARCH},OpenBSD)
|
||||
GSM_SOURCES+= $(SRC)/k6opt.s
|
||||
endif
|
||||
|
||||
TOAST_SOURCES = $(SRC)/toast.c \
|
||||
$(SRC)/toast_lin.c \
|
||||
@@ -220,7 +222,6 @@ GSM_OBJECTS = $(SRC)/add.o \
|
||||
$(SRC)/code.o \
|
||||
$(SRC)/debug.o \
|
||||
$(SRC)/decode.o \
|
||||
$(SRC)/k6opt.o \
|
||||
$(SRC)/long_term.o \
|
||||
$(SRC)/lpc.o \
|
||||
$(SRC)/preprocess.o \
|
||||
@@ -235,6 +236,9 @@ GSM_OBJECTS = $(SRC)/add.o \
|
||||
$(SRC)/gsm_option.o \
|
||||
$(SRC)/short_term.o \
|
||||
$(SRC)/table.o
|
||||
ifneq (${OSARCH},OpenBSD)
|
||||
GSM_OBJECTS+= $(SRC)/k6opt.o
|
||||
endif
|
||||
|
||||
TOAST_OBJECTS = $(SRC)/toast.o \
|
||||
$(SRC)/toast_lin.o \
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
CFLAGS+= -fPIC -O3
|
||||
LIB=libilbc.a
|
||||
|
||||
OBJS= anaFilter.o iCBSearch.o packing.o \
|
||||
|
||||
@@ -22,7 +22,7 @@ LIB_TARGET_DIR = .
|
||||
#
|
||||
|
||||
WARNINGS = -Wall -Wno-comment -Wno-error
|
||||
CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS)
|
||||
CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
|
||||
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
|
||||
|
||||
#fix for PPC processors
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# LMC section
|
||||
|
||||
CFLAGS+= -I../include -Iinclude -O6 -funroll-loops -finline-functions -Wall -Wno-missing-prototypes -Wno-missing-declarations -g
|
||||
CFLAGS+= -I../include -Iinclude -O6 -funroll-loops -finline-functions -Wall -Wno-missing-prototypes -Wno-missing-declarations -g -fPIC
|
||||
RANLIB=ranlib
|
||||
|
||||
# the XING decoder objs and dependencies:
|
||||
|
||||
Reference in New Issue
Block a user