Commit dee6624d authored by diego's avatar diego

Further simplify AMR build.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5347 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3de25f0c
...@@ -591,13 +591,13 @@ for opt do ...@@ -591,13 +591,13 @@ for opt do
;; ;;
--enable-small) optimize="small" --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" --enable-sunmlib) sunmlib="yes"
;; ;;
...@@ -1913,6 +1913,11 @@ fi ...@@ -1913,6 +1913,11 @@ fi
echo "SRC_PATH=$source_path" >> config.mak echo "SRC_PATH=$source_path" >> config.mak
echo "BUILD_ROOT=$PWD" >> 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 if test "$amr_wb" = "yes" ; then
echo "#define AMR_WB 1" >> $TMPH echo "#define AMR_WB 1" >> $TMPH
echo "AMR_WB=yes" >> config.mak echo "AMR_WB=yes" >> config.mak
......
...@@ -235,21 +235,20 @@ ifeq ($(CONFIG_ZMBV_DECODER),yes) ...@@ -235,21 +235,20 @@ ifeq ($(CONFIG_ZMBV_DECODER),yes)
endif endif
AMROBJS= ifeq ($(AMR),yes)
OBJS+= amr.o
endif
ifeq ($(AMR_NB),yes) 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 OBJS+= amr_float/sp_dec.o amr_float/sp_enc.o amr_float/interf_dec.o amr_float/interf_enc.o
endif endif
ifeq ($(AMR_NB_FIXED),yes) ifeq ($(AMR_NB_FIXED),yes)
AMROBJS= amr.o
EXTRAOBJS += amr/*.o EXTRAOBJS += amr/*.o
EXTRADEPS=amrlibs EXTRADEPS=amrlibs
endif endif
ifeq ($(AMR_WB),yes) ifeq ($(AMR_WB),yes)
AMROBJS= amr.o
OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.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_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 \ 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 \ ...@@ -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 amrwb_float/enc_util.o amrwb_float/if_rom.o
endif endif
OBJS+= $(AMROBJS)
ifeq ($(HAVE_PTHREADS),yes) ifeq ($(HAVE_PTHREADS),yes)
OBJS+= pthread.o OBJS+= pthread.o
......
...@@ -26,17 +26,9 @@ OBJS+= flvenc.o movenc.o asf-enc.o adtsenc.o ...@@ -26,17 +26,9 @@ OBJS+= flvenc.o movenc.o asf-enc.o adtsenc.o
endif endif
AMROBJS= ifeq ($(AMR),yes)
ifeq ($(AMR_NB),yes) OBJS+= amr.o
AMROBJS= amr.o
endif endif
ifeq ($(AMR_NB_FIXED),yes)
AMROBJS= amr.o
endif
ifeq ($(AMR_WB),yes)
AMROBJS= amr.o
endif
OBJS+= $(AMROBJS)
# image formats # image formats
OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment