[FFmpeg-devel] [PATCH] Refactor OBJS handling in libavcodec/Makefile

Måns Rullgård mans
Thu Jul 9 02:18:13 CEST 2009


Diego Biurrun <diego at biurrun.de> writes:

> We currently duplicate a lot in the OBJS lines in libavcodec/Makefile.
> Here is an attempt to refactor this somewhat by grouping common OBJS
> into variables.
>
> I'm sure this could be improved further.  Currently the grouping is
> somewhat arbitrary.  Better suggestions are welcome.
>
> Diego
>
> Index: libavcodec/Makefile
> ===================================================================
> --- libavcodec/Makefile	(revision 19378)
> +++ libavcodec/Makefile	(working copy)
> @@ -5,6 +5,16 @@
>  
>  HEADERS = avcodec.h opt.h vdpau.h xvmc.h
>  
> +MPEG_OBJS     = motion_est.o ratecontrol.o mpeg12data.o mpegvideo.o
> +MPEG_DEC_OBJS = mpeg12data.o mpegvideo.o error_resilience.o
> +MPEG_ENC_OBJS = mpegvideo_enc.o $(MPEG_OBJS)
> +MPEG_ENC_ERROR_OBJS = error_resilience.o $(MPEG_ENC_OBJS)
> +
> +H263_OBJS     = h263.o $(MPEG_DEC_OBJS)
> +H264_OBJS     = h264idct.o h264pred.o cabac.o mpegvideo.o error_resilience.o
> +VC1_OBJS      = vc1.o vc1data.o msmpeg4data.o h263dec.o h263.o intrax8.o error_resilience.o mpegvideo.o msmpeg4.o
> +VC1_DSP_OBJS  = vc1dsp.o intrax8dsp.o $(VC1_OBJS)

How did you arrive at this list?  Did you analyse inter-object
dependencies or just guess?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list