Browse Source

Merge pull request #31 from bit4bit/master

Update to bcg729 version 1.1.1
pull/32/head
Matteo 4 years ago
committed by GitHub
parent
commit
b1c13cc7e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      Makefile

+ 4
- 3
Makefile View File

@ -7,11 +7,12 @@ FS_MODULES=/usr/lib/freeswitch/mod
### END OF CUSTOMIZATION ###
SHELL := /bin/bash
PROC?=$(shell uname -m)
CMAKE := cmake
CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic
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 -lbcg729 -Wl,-Bdynamic
all : mod_bcg729.o
$(CC) $(CFLAGS) $(INCLUDES) -shared -Xlinker -x -o mod_bcg729.so mod_bcg729.o $(LDFLAGS)
@ -23,10 +24,10 @@ clone_bcg729:
if [ ! -d bcg729 ]; then \
git clone https://github.com/BelledonneCommunications/bcg729.git; \
fi
pushd bcg729; git fetch; git checkout 1.0.4; popd;
pushd bcg729; git fetch; git checkout 1.1.1; popd;
bcg729: clone_bcg729
cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd ..
cd bcg729 && $(CMAKE) . -DENABLE_SHARED=NO -DENABLE_STATIC=YES -DCMAKE_POSITION_INDEPENDENT_CODE=YES && make && cd ..
clean:
rm -f *.o *.so *.a *.la; cd bcg729 && make clean; cd ..


Loading…
Cancel
Save