X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=formats%2FMakefile;h=75013224aa926498a7d1f797c2383feee415bee2;hp=f38101f3c14816d49caf4bd67b50d675831e6142;hb=f83715ce9c87956e5ce583eac2894f10829c23e4;hpb=58e773dfe1d1ed8411665a73d14972698d541851;ds=inline diff --git a/formats/Makefile b/formats/Makefile index f38101f..7501322 100755 --- a/formats/Makefile +++ b/formats/Makefile @@ -11,25 +11,39 @@ # the GNU General Public License # -FORMAT_LIBS=format_g723.so format_wav.so format_mp3.so format_wav_gsm.so format_gsm.so format_vox.so +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_LIBS+=format_jpeg.so +# +# G723 simple frame is depricated +# +#FORMAT_LIBS+=format_g723.so GSMLIB=../codecs/gsm/lib/libgsm.a -CFLAGS+= +CFLAGS+=-fPIC -all: $(FORMAT_LIBS) +all: depend $(FORMAT_LIBS) clean: - rm -f *.so *.o + rm -f *.so *.o .depend %.so : %.o - $(CC) -shared -Xlinker -x -o $@ $< + $(CC) $(SOLINK) -o $@ $< -format_wav.so : format_wav.o - $(CC) -shared -Xlinker -x -o $@ $< -laudiofile +ifneq ($(wildcard .depend),) +include .depend +endif format_mp3.so : format_mp3.o - $(CC) -shared -Xlinker -x -o $@ $< -lm + $(CC) $(SOLINK) -o $@ $< -lm install: all - for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done + for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done + +depend: .depend + +.depend: + ../mkdep $(CFLAGS) `ls *.c`