fix compilation of 3dnowext instinsincs, both on ia32 and AMD64.
[ffmpeg.git] / libavcodec / Makefile
index 6f82a5bd3ed5911c53ed0f7ccc457426ad2b23c0..afc63b752b257106011b7f7c8cce3d081a6cb61a 100644 (file)
@@ -350,7 +350,12 @@ depend: CFLAGS+= -msse
 endif
 ifdef TARGET_BUILTIN_3DNOW
 i386/fft_3dn.o: CFLAGS+= -m3dnow
-i386/fft_3dn2.o: CFLAGS+= -m3dnow
+ifeq ($(TARGET_ARCH_X86),yes)
+i386/fft_3dn2.o: CFLAGS+= -march=athlon
+endif
+ifeq ($(TARGET_ARCH_X86_64),yes)
+i386/fft_3dn2.o: CFLAGS+= -march=k8
+endif
 endif
 endif