diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
commit | f8247040e6231c4b3b5099ea3a526348b7941566 (patch) | |
tree | 0cc92ad6ebf6ae49a62f6e7ef8ec819121d63630 /trunk/codecs/lpc10/Makefile | |
parent | d88e56c61ce2042544c1a8a71c93b69ab2e6ffba (diff) |
Creating tag for the release of asterisk-1.6.0-beta1v1.6.0-beta1
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta1@99163 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'trunk/codecs/lpc10/Makefile')
-rw-r--r-- | trunk/codecs/lpc10/Makefile | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/trunk/codecs/lpc10/Makefile b/trunk/codecs/lpc10/Makefile new file mode 100644 index 000000000..c98131c26 --- /dev/null +++ b/trunk/codecs/lpc10/Makefile @@ -0,0 +1,78 @@ +# +# Makefile for LPC-10 speech coder library (unix) +# + +# default C compiler +CC?= gcc + +# +# These definitions for CFLAGS and LIB_TARGET_DIR are used when one +# runs make in the lpc10 directory, without environment variables that +# override them. When make is run in this directory from a makefile +# for an application that uses the LPC10 coder, there are environment +# variables set for CFLAGS and LIB_TARGET_DIR that override these +# definitions. +# + +LIB_TARGET_DIR = . + +# +# -I$(LIB_TARGET_DIR) option needed so that #include "machine.h" +# directives can find the machine.h file. +# + +CFLAGS+= -fPIC -Wno-comment + +# The code here generates lots of warnings, so compiling with -Werror +# fails miserably. Remove it for the time being. +ASTCFLAGS:= $(ASTCFLAGS:-Werror=) + +#fix for PPC processors and ALPHA, And UltraSparc too +ifneq ($(OSARCH),Darwin) + ifneq ($(findstring BSD,${OSARCH}),BSD) + ifneq ($(PROC),ppc) + ifneq ($(PROC),x86_64) + ifneq ($(PROC),alpha) +#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. +#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it. +#So we go lowest common available by gcc and go a step down, still a step up from +#the default as we now have a better instruction set to work with. - Belgarath + ifeq ($(PROC),ultrasparc) + CFLAGS+= -mtune=$(PROC) -mcpu=v8 -O3 -fomit-frame-pointer + else + ifneq ($(OSARCH),SunOS) + ifneq ($(OSARCH),arm) +# CFLAGS+= -march=$(PROC) + endif + endif + endif + endif + endif + endif + endif +endif + +LIB = $(LIB_TARGET_DIR)/liblpc10.a + +.PHONY: all clean + +include $(ASTTOPDIR)/Makefile.rules + +all: $(LIB) + +OBJ=f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o \ + deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o \ + hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o \ + lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o \ + placea.o placev.o preemp.o prepro.o random.o rcchk.o \ + synths.o tbdm.o voicin.o vparms.o + +$(LIB): $(OBJ) + $(ECHO_PREFIX) echo " [AR] $^ -> $@" + $(CMD_PREFIX) $(AR) cr $@ $^ + $(CMD_PREFIX) $(RANLIB) $@ + +clean: + rm -f *.o $(LIB) .*.d + rm -f *.s *.i |