use a Makefile in x86 subdir
authorAurelien Jacobs <aurel@gnuage.org>
Mon, 27 Sep 2010 21:50:26 +0000 (21:50 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Mon, 27 Sep 2010 21:50:26 +0000 (21:50 +0000)
Originally committed as revision 25234 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/Makefile
libavfilter/x86/Makefile [new file with mode: 0644]
libavfilter/x86/yadif.c

index 51fe208..6d73bf2 100644 (file)
@@ -39,14 +39,14 @@ OBJS-$(CONFIG_UNSHARP_FILTER)                += vf_unsharp.o
 OBJS-$(CONFIG_VFLIP_FILTER)                  += vf_vflip.o
 OBJS-$(CONFIG_YADIF_FILTER)                  += vf_yadif.o
 
-OBJS-$(ARCH_X86) += x86/yadif.o
-
 OBJS-$(CONFIG_BUFFER_FILTER)                 += vsrc_buffer.o
 OBJS-$(CONFIG_COLOR_FILTER)                  += vf_pad.o
 OBJS-$(CONFIG_NULLSRC_FILTER)                += vsrc_nullsrc.o
 
 OBJS-$(CONFIG_NULLSINK_FILTER)               += vsink_nullsink.o
 
+-include $(SUBDIR)$(ARCH)/Makefile
+
 DIRS = x86
 
 include $(SUBDIR)../subdir.mak
diff --git a/libavfilter/x86/Makefile b/libavfilter/x86/Makefile
new file mode 100644 (file)
index 0000000..716048c
--- /dev/null
@@ -0,0 +1 @@
+MMX-OBJS-$(CONFIG_YADIF_FILTER)              += x86/yadif.o
index e92da8c..55340cf 100644 (file)
@@ -22,8 +22,6 @@
 #include "libavutil/x86_cpu.h"
 #include "libavfilter/yadif.h"
 
-#if HAVE_MMX
-
 #define LOAD4(mem,dst) \
             "movd      "mem", "#dst" \n\t"\
             "punpcklbw %%mm7, "#dst" \n\t"
@@ -236,5 +234,3 @@ void ff_yadif_filter_line_mmx(uint8_t *dst,
 #undef CHECK1
 #undef CHECK2
 #undef FILTER
-
-#endif /* HAVE_MMX */