mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
use auto-build for formats
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Makefile for file format modules
|
# Makefile for file format modules
|
||||||
#
|
#
|
||||||
# Copyright (C) 1999-2005, Digium
|
# Copyright (C) 1999-2006, Digium, Inc.
|
||||||
#
|
#
|
||||||
# Mark Spencer <markster@digium.com>
|
# Mark Spencer <markster@digium.com>
|
||||||
#
|
#
|
||||||
@@ -11,33 +11,25 @@
|
|||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
FORMAT_LIBS=format_gsm.so format_wav.so \
|
MODS:=$(patsubst %.c,%.so,$(wildcard format_*.c))
|
||||||
format_wav_gsm.so format_vox.so format_pcm.so format_g729.so \
|
|
||||||
format_pcm_alaw.so format_h263.so format_g726.so format_ilbc.so \
|
|
||||||
format_sln.so format_au.so format_h264.so
|
|
||||||
FORMAT_LIBS+=format_jpeg.so
|
|
||||||
|
|
||||||
#
|
|
||||||
# G723 simple frame is deprecated
|
|
||||||
#
|
|
||||||
FORMAT_LIBS+=format_g723.so
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# OGG/Vorbis format
|
# OGG/Vorbis format
|
||||||
#
|
#
|
||||||
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/vorbis/codec.h),)
|
ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/vorbis/codec.h),)
|
||||||
FORMAT_LIBS+=format_ogg_vorbis.so
|
MODS:=$(filter-out format_ogg_vorbis.so,$(MODS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GSMLIB=../codecs/gsm/lib/libgsm.a
|
GSMLIB=../codecs/gsm/lib/libgsm.a
|
||||||
|
|
||||||
ifeq (${OSARCH},CYGWIN)
|
ifeq (${OSARCH},CYGWIN)
|
||||||
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
|
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
|
||||||
CYGSOLIB=-L.. -L. -lasterisk.dll
|
CYGSOLIB=-L.. -L. -lasterisk.dll
|
||||||
else
|
else
|
||||||
CFLAGS+=-fPIC
|
CFLAGS+=-fPIC
|
||||||
endif
|
endif
|
||||||
all: depend $(FORMAT_LIBS)
|
|
||||||
|
all: depend $(MODS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.so *.o .depend
|
rm -f *.so *.o .depend
|
||||||
|
Reference in New Issue
Block a user