From 891f64b33972bb35f64d0b7ae0928004ff278f5b Mon Sep 17 00:00:00 2001 From: "joca@rixmail.se" Date: Wed, 14 May 2003 11:40:16 +0000 Subject: AMR-NB audio support patch by () Originally committed as revision 1876 to svn://svn.ffmpeg.org/ffmpeg/trunk --- Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4ded0e4513..dc50977304 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,12 @@ EXTRALIBS+=-lmp3lame endif endif +ifeq ($(AMR_NB),yes) +EXTRALIBS+= libavcodec/amr/spc.a libavcodec/amr/fipop.a +AMRLIBS=amrlibs +CLEANAMR=cleanamr +endif + ifeq ($(CONFIG_VORBIS),yes) EXTRALIBS+=-logg -lvorbis -lvorbisenc endif @@ -73,10 +79,14 @@ FFLIBS = -L./libavformat -lavformat -L./libavcodec -lavcodec all: lib $(PROG) $(VHOOK) -lib: +lib: $(AMRLIBS) $(MAKE) -C libavcodec all $(MAKE) -C libavformat all +#make sure you have added -DMMS_IO to CFLAGS in libavcodec/amr/makefile!! +amrlibs: + $(MAKE) -C libavcodec/amr spclib fipoplib + ffmpeg_g$(EXE): ffmpeg.o .libs $(CC) $(LDFLAGS) -o $@ ffmpeg.o $(FFLIBS) $(EXTRALIBS) @@ -128,7 +138,7 @@ endif @test -f .libs || touch .libs @for i in $(DEP_LIBS) ; do if $(TEST) $$i -nt .libs ; then touch .libs; fi ; done -clean: $(CLEANVHOOK) +clean: $(CLEANVHOOK) $(CLEANAMR) $(MAKE) -C libavcodec clean $(MAKE) -C libavformat clean $(MAKE) -C tests clean @@ -141,6 +151,9 @@ distclean: clean $(MAKE) -C libavcodec distclean rm -f config.mak config.h +cleanamr: + $(MAKE) -C libavcodec/amr clean + TAGS: etags *.[ch] libavformat/*.[ch] libavcodec/*.[ch] -- cgit v1.2.1