Build sparc arch specific code using the Makefile
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 4 May 2008 20:19:33 +0000 (20:19 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 4 May 2008 20:19:33 +0000 (20:19 +0000)
Originally committed as revision 26670 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/Makefile
libswscale/yuv2rgb.c

index c0941b9..8b1ea9a 100644 (file)
@@ -9,6 +9,9 @@ OBJS-$(ARCH_BFIN)          +=  swscale_bfin.o yuv2rgb_bfin.o
 OBJS-$(CONFIG_GPL)         +=  yuv2rgb.o
 OBJS-$(HAVE_ALTIVEC)       +=  yuv2rgb_altivec.o
 
+OBJS-$(CONFIG_MLIB)        +=  yuv2rgb_mlib.c
+OBJS-$(HAVE_VIS)           +=  yuv2rgb_vis.c
+
 ASM_OBJS-$(ARCH_BFIN)      += internal_bfin.o
 
 HEADERS = swscale.h rgb2rgb.h
index e51cd0c..b90f78c 100644 (file)
 #include "swscale.h"
 #include "swscale_internal.h"
 
-#ifdef HAVE_VIS
-#include "yuv2rgb_vis.c"
-#endif
-
-#ifdef CONFIG_MLIB
-#include "yuv2rgb_mlib.c"
-#endif
-
 #define DITHER1XBPP // only for mmx
 
 const uint8_t  __attribute__((aligned(8))) dither_2x2_4[2][8]={