Mercurial > mplayer.hg
view mp3lib/Makefile @ 22697:2fe9bd97a7f6
Fix configure -march detection for athlon-xp
The configure script uses SSE support to distinguish between athlon and
athlon-xp, but SSE support was tested _after_ deciding the basic CPU
type. Thus athlon-xp was always misdetected as athlon. Fix this by
moving the CPU extensions check before the CPU type check. Patch from
Andrew Savchenko, bircoph list ru.
author | uau |
---|---|
date | Sun, 18 Mar 2007 13:38:55 +0000 |
parents | eb1e8b907a9d |
children | afb7111123bb |
line wrap: on
line source
include ../config.mak LIBNAME_COMMON = libmp3.a SRCS_COMMON = sr1.c ifeq ($(TARGET_ARCH_X86_32),yes) SRCS_COMMON += decode_i586.c SRCS_COMMON-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c SRCS_COMMON-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c SRCS_COMMON-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c SRCS_COMMON-$(TARGET_SSE) += dct64_sse.c endif SRCS_COMMON-$(TARGET_ALTIVEC) += dct64_altivec.c include ../mpcommon.mak decode_i586.o: CFLAGS += -fomit-frame-pointer %: %.c $(LIBNAME_COMMON) ../libvo/aclib.o ../mp_msg-mencoder.o ../cpudetect.o ../osdep/getch2.o $(CC) $(CFLAGS) -o $@ $^ -ltermcap -lm distclean:: rm -f test test2