x86: dsputil: Only compile motion_est code when encoders are enabled
authorDiego Biurrun <diego@biurrun.de>
Sun, 9 Sep 2012 19:19:50 +0000 (21:19 +0200)
committerDiego Biurrun <diego@biurrun.de>
Mon, 10 Sep 2012 06:31:47 +0000 (08:31 +0200)
libavcodec/x86/Makefile

index ffa5ad9..be4fd54 100644 (file)
@@ -11,14 +11,14 @@ MMX-OBJS                               += x86/dsputil_mmx.o             \
                                           x86/fmtconvert_init.o         \
                                           x86/idct_mmx_xvid.o           \
                                           x86/idct_sse2_xvid.o          \
-                                          x86/motion_est.o              \
                                           x86/simple_idct.o             \
 
 MMX-OBJS-$(CONFIG_AAC_DECODER)         += x86/sbrdsp_init.o
 MMX-OBJS-$(CONFIG_AC3DSP)              += x86/ac3dsp_init.o
 MMX-OBJS-$(CONFIG_CAVS_DECODER)        += x86/cavsdsp.o
 MMX-OBJS-$(CONFIG_DWT)                 += x86/snowdsp.o
-MMX-OBJS-$(CONFIG_ENCODERS)            += x86/dsputilenc_mmx.o
+MMX-OBJS-$(CONFIG_ENCODERS)            += x86/dsputilenc_mmx.o          \
+                                          x86/motion_est.o
 MMX-OBJS-$(CONFIG_FFT)                 += x86/fft_init.o
 MMX-OBJS-$(CONFIG_H264DSP)             += x86/h264dsp_init.o
 MMX-OBJS-$(CONFIG_H264PRED)            += x86/h264_intrapred_init.o