Browse Source

Makefile interoperability updates

Removed unnecessary arch detection which broke builds on other platforms e.g AARCH64
Removed hardcoded gcc compiler setting as its not required, clang works just as fine
pull/19/head
MartB 9 years ago
parent
commit
aa69d256f7
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      Makefile

+ 2
- 8
Makefile View File

@ -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)
@ -32,7 +26,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 ..


Loading…
Cancel
Save