Browse Source

Merge pull request #19 from MartB/makefile-update

Makefile interoperability updates
pull/28/head v1.0.4
Matteo 8 years ago
committed by GitHub
parent
commit
5d28a252d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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)
@ -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 ..


Loading…
Cancel
Save