Diva streaming

This commit is contained in:
MelwareDE 2010-04-06 16:59:48 +00:00
parent 02e04fc7fd
commit e8fdb10a41
1 changed files with 19 additions and 0 deletions

View File

@ -18,6 +18,8 @@
OSNAME=${shell uname}
DIVA_STREAMING=0
USE_OWN_LIBCAPI=yes
.EXPORT_ALL_VARIABLES:
@ -78,6 +80,10 @@ INCLUDE=
LIBLINUX=-lcapi20
endif
ifeq (${DIVA_STREAMING},1)
INCLUDE += -I./divastreaming -I./divastreaming/..
endif
DEBUG=-g #-pg
INCLUDE+= -I$(ASTERISK_HEADER_DIR)
ifndef C4B
@ -100,6 +106,9 @@ CFLAGS+=$(OPTIMIZE)
CFLAGS+=-O2
CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
CFLAGS+=$(shell if uname -m | grep -q "ppc\|arm\|s390"; then echo "-fsigned-char"; fi)
ifeq (${DIVA_STREAMING},1)
CFLAGS += -DDIVA_STREAMING=1
endif
LIBS=-ldl -lpthread -lm
CC=gcc
@ -115,6 +124,15 @@ ifeq (${USE_OWN_LIBCAPI},yes)
OBJECTS += libcapi20/convert.o libcapi20/capi20.o libcapi20/capifunc.o
endif
ifeq (${DIVA_STREAMING},1)
OBJECTS += divastreaming/diva_streaming_idi_host_ifc_impl.o \
divastreaming/diva_streaming_idi_host_rx_ifc_impl.o \
divastreaming/diva_streaming_manager.o \
divastreaming/diva_streaming_messages.o \
divastreaming/segment_alloc.o \
divastreaming/runtime.o
endif
CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
CFLAGS+=-DCRYPTO
@ -131,6 +149,7 @@ clean:
rm -f config.h
rm -f *.so *.o
rm -f libcapi20/*.o
rm -f divastreaming/*.o
config.h:
./create_config.sh "$(ASTERISK_HEADER_DIR)"