dsputil: Conditionally compile dsputil code on all architectures
authorDiego Biurrun <diego@biurrun.de>
Fri, 20 Dec 2013 14:19:44 +0000 (15:19 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 20 Mar 2014 12:03:23 +0000 (05:03 -0700)
libavcodec/bfin/Makefile
libavcodec/ppc/Makefile

index 193f8e6..efdcbfc 100644 (file)
@@ -1,10 +1,10 @@
-OBJS += bfin/dsputil_init.o                                             \
-        bfin/dsputil.o                                                  \
-        bfin/fdct_bfin.o                                                \
-        bfin/hpel_pixels_no_rnd.o                                       \
-        bfin/idct_bfin.o                                                \
-        bfin/pixels.o                                                   \
-
-OBJS-$(CONFIG_HPELDSP)                  += bfin/hpeldsp_init.o
+OBJS-$(CONFIG_DSPUTIL)                  += bfin/dsputil_init.o          \
+                                           bfin/dsputil.o               \
+                                           bfin/fdct_bfin.o             \
+                                           bfin/idct_bfin.o             \
+                                           bfin/pixels.o
+OBJS-$(CONFIG_HPELDSP)                  += bfin/hpeldsp_init.o          \
+                                           bfin/hpel_pixels_no_rnd.o    \
+                                           bfin/pixels.o
 OBJS-$(CONFIG_VP3DSP)                   += bfin/vp3dsp_init.o           \
                                            bfin/vp3dsp.o
index 71b23da..6656ffb 100644 (file)
@@ -1,7 +1,6 @@
-OBJS                                   += ppc/dsputil_ppc.o             \
-                                          ppc/fmtconvert_altivec.o      \
-                                          ppc/videodsp_ppc.o            \
+OBJS                                   += ppc/fmtconvert_altivec.o      \
 
+OBJS-$(CONFIG_DSPUTIL)                 += ppc/dsputil_ppc.o
 OBJS-$(CONFIG_FFT)                     += ppc/fft_altivec.o
 OBJS-$(CONFIG_H264CHROMA)              += ppc/h264chroma_init.o
 OBJS-$(CONFIG_H264DSP)                 += ppc/h264dsp.o
@@ -10,11 +9,12 @@ OBJS-$(CONFIG_HPELDSP)                 += ppc/hpeldsp_altivec.o
 OBJS-$(CONFIG_MPEGAUDIODSP)            += ppc/mpegaudiodsp_altivec.o
 OBJS-$(CONFIG_MPEGVIDEO)               += ppc/mpegvideo_altivec.o
 OBJS-$(CONFIG_VC1_DECODER)             += ppc/vc1dsp_altivec.o
+OBJS-$(CONFIG_VIDEODSP)                += ppc/videodsp_ppc.o
 OBJS-$(CONFIG_VORBIS_DECODER)          += ppc/vorbisdsp_altivec.o
 OBJS-$(CONFIG_VP3DSP)                  += ppc/vp3dsp_altivec.o
 OBJS-$(CONFIG_VP8_DECODER)             += ppc/vp8dsp_altivec.o
 
-ALTIVEC-OBJS                           += ppc/dsputil_altivec.o         \
+ALTIVEC-OBJS-$(CONFIG_DSPUTIL)         += ppc/dsputil_altivec.o         \
                                           ppc/fdct_altivec.o            \
                                           ppc/gmc_altivec.o             \
                                           ppc/idct_altivec.o            \