X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=formats%2FMakefile;h=069d30be4001f954fa674954a24a195ee905219c;hp=31f97339005b81c2cfcf37f96399b1abb882e7b5;hb=0611fe581ce72e511320922f18fa14664def92b3;hpb=2c65582b661045dd21bd6ae8b4515c652d9c064c diff --git a/formats/Makefile b/formats/Makefile index 31f9733..069d30b 100644 --- a/formats/Makefile +++ b/formats/Makefile @@ -1,68 +1,20 @@ # -# Asterisk -- A telephony toolkit for Linux. +# Asterisk -- An open source telephony toolkit. # # Makefile for file format modules # -# Copyright (C) 1999-2005, Digium -# -# Mark Spencer +# Copyright (C) 1999-2006, Digium, Inc. # # This program is free software, distributed under the terms of # the GNU General Public License # -FORMAT_LIBS=format_gsm.so format_wav.so \ - 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_LIBS+=format_jpeg.so - -# -# G723 simple frame is deprecated -# -FORMAT_LIBS+=format_g723.so - -# -# OGG/Vorbis format -# -ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/vorbis/codec.h),) - FORMAT_LIBS+=format_ogg_vorbis.so -endif - -ifeq ($(findstring BSD,${OSARCH}),BSD) - CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib -endif - -GSMLIB=../codecs/gsm/lib/libgsm.a - -ifeq (${OSARCH},CYGWIN) -CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols -CYGSOLIB=-L.. -L. -lasterisk.dll -else -CFLAGS+=-fPIC -endif -all: depend $(FORMAT_LIBS) - -clean: - rm -f *.so *.o .depend - -%.so : %.o - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} - -ifneq ($(wildcard .depend),) - include .depend -endif - -format_mp3.so : format_mp3.o - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lm - -format_ogg_vorbis.so : format_ogg_vorbis.o - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -logg -lvorbis -lvorbisenc -lm +-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps -install: all - for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done +MODULE_PREFIX=format +MENUSELECT_CATEGORY=FORMATS +MENUSELECT_DESCRIPTION=Format Interpreters -depend: .depend +all: _all -.depend: - ../build_tools/mkdep $(CFLAGS) `ls *.c` +include $(ASTTOPDIR)/Makefile.moddir_rules