From 60827a1a802f0608852b1bd2184fc7d4bcd71cd4 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 6 May 2006 10:57:38 +0000 Subject: [PATCH] Further simplify AMR build. Originally committed as revision 5347 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 13 +++++++++---- libavcodec/Makefile | 9 +++------ libavformat/Makefile | 12 ++---------- 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/configure b/configure index b5129a1643..4ff62c7f97 100755 --- a/configure +++ b/configure @@ -591,13 +591,13 @@ for opt do ;; --enable-small) optimize="small" ;; - --enable-amr_nb) amr_nb="yes"; amr_nb_fixed="no" + --enable-amr_nb) amr="yes"; amr_nb="yes"; amr_nb_fixed="no" ;; - --enable-amr_nb-fixed) amr_nb_fixed="yes"; amr_nb="no" + --enable-amr_nb-fixed) amr="yes"; amr_nb_fixed="yes"; amr_nb="no" ;; - --enable-amr_wb) amr_wb="yes" + --enable-amr_wb) amr="yes"; amr_wb="yes" ;; - --enable-amr_if2) amr_if2="yes" + --enable-amr_if2) amr="yes"; amr_if2="yes" ;; --enable-sunmlib) sunmlib="yes" ;; @@ -1913,6 +1913,11 @@ fi echo "SRC_PATH=$source_path" >> config.mak echo "BUILD_ROOT=$PWD" >> config.mak +if test "$amr" = "yes" ; then + echo "#define AMR 1" >> $TMPH + echo "AMR=yes" >> config.mak +fi + if test "$amr_wb" = "yes" ; then echo "#define AMR_WB 1" >> $TMPH echo "AMR_WB=yes" >> config.mak diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 9586361a00..aba23b35a2 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -235,21 +235,20 @@ ifeq ($(CONFIG_ZMBV_DECODER),yes) endif -AMROBJS= +ifeq ($(AMR),yes) +OBJS+= amr.o +endif ifeq ($(AMR_NB),yes) -AMROBJS= amr.o OBJS+= amr_float/sp_dec.o amr_float/sp_enc.o amr_float/interf_dec.o amr_float/interf_enc.o endif ifeq ($(AMR_NB_FIXED),yes) -AMROBJS= amr.o EXTRAOBJS += amr/*.o EXTRADEPS=amrlibs endif ifeq ($(AMR_WB),yes) -AMROBJS= amr.o OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \ amrwb_float/dec_if.o amrwb_float/dec_lpc.o amrwb_float/dec_main.o \ amrwb_float/dec_rom.o amrwb_float/dec_util.o amrwb_float/enc_acelp.o \ @@ -258,8 +257,6 @@ OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \ amrwb_float/enc_util.o amrwb_float/if_rom.o endif -OBJS+= $(AMROBJS) - ifeq ($(HAVE_PTHREADS),yes) OBJS+= pthread.o diff --git a/libavformat/Makefile b/libavformat/Makefile index e5e7efaec6..c164016fff 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -26,17 +26,9 @@ OBJS+= flvenc.o movenc.o asf-enc.o adtsenc.o endif -AMROBJS= -ifeq ($(AMR_NB),yes) -AMROBJS= amr.o +ifeq ($(AMR),yes) +OBJS+= amr.o endif -ifeq ($(AMR_NB_FIXED),yes) -AMROBJS= amr.o -endif -ifeq ($(AMR_WB),yes) -AMROBJS= amr.o -endif -OBJS+= $(AMROBJS) # image formats OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o