Merge OSX compatibility patch (bug #1940)
[asterisk/asterisk.git] / codecs / ilbc / Makefile
1 ARCH=$(PROC)
2 ifeq (${OSARCH},Darwin)
3 CFLAGS+=-Wall -Werror -fPIC -O3 -funroll-loops -fomit-frame-pointer
4 else
5 CFLAGS+=-Wall -Werror -fPIC -O3 -march=$(ARCH) -funroll-loops -fomit-frame-pointer
6 endif
7 LIB=libilbc.a
8
9 OBJS= anaFilter.o iCBSearch.o packing.o \
10         constants.o gainquant.o iLBC_decode.o StateConstructW.o \
11         createCB.o getCBvec.o iLBC_encode.o StateSearchW.o doCPLC.o \
12         helpfun.o syntFilter.o enhancer.o hpInput.o LPCdecode.o \
13         filter.o hpOutput.o LPCencode.o FrameClassify.o  iCBConstruct.o lsf.o
14
15 all: $(LIB)
16
17
18 $(LIB): $(OBJS)
19         ar cr $(LIB) $(OBJS)
20         ranlib $(LIB)
21
22 clean:
23         rm -f $(LIB) *.o
24
25 install:
26