diff --git a/Makefile b/Makefile index 07bfd70..1baaa58 100644 --- a/Makefile +++ b/Makefile @@ -8,16 +8,10 @@ FS_MODULES=/usr/lib/freeswitch/mod SHELL := /bin/bash PROC?=$(shell uname -m) -CC=gcc CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -ifeq (${PROC},x86_64) - CFLAGS+=-m64 -mtune=generic -else - CFLAGS+=-m32 -march=i686 -endif INCLUDES=-I/usr/include -Ibcg729/include -I$(FS_INCLUDES) -LDFLAGS=-lm -Wl,-static -Lbcg729/src/.libs -lbcg729 -Wl,-Bdynamic +LDFLAGS=-lm -Wl,-static -Lbcg729/src/.libs -lbcg729 -Wl,-Bdynamic all : mod_bcg729.o $(CC) $(CFLAGS) $(INCLUDES) -shared -Xlinker -x -o mod_bcg729.so mod_bcg729.o $(LDFLAGS) @@ -33,7 +27,7 @@ clone_bcg729: bcg729: clone_bcg729 cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd .. - + clean: rm -f *.o *.so *.a *.la; cd bcg729 && make clean; cd ..