2001-02-24 20:28:24 +00:00
|
|
|
|
2001-07-03 07:50:52 +00:00
|
|
|
include ../config.mak
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2006-11-26 18:12:36 +00:00
|
|
|
LIBNAME = libMP3.a
|
|
|
|
|
2001-10-24 14:02:19 +00:00
|
|
|
ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
|
|
|
|
OPTFLAGS := $(OPTFLAGS:-O4=-O0)
|
|
|
|
endif
|
2006-10-19 21:29:17 +00:00
|
|
|
|
|
|
|
SRCS = sr1.c
|
2006-11-01 18:19:02 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86_32),yes)
|
2002-01-19 18:22:22 +00:00
|
|
|
SRCS += decode_i586.c
|
2006-11-27 13:42:36 +00:00
|
|
|
SRCS-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c
|
|
|
|
SRCS-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c
|
|
|
|
SRCS-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c
|
|
|
|
SRCS-$(TARGET_SSE) += dct64_sse.c
|
2001-07-03 07:50:52 +00:00
|
|
|
endif
|
2003-01-18 19:28:53 +00:00
|
|
|
ifeq ($(TARGET_ALTIVEC),yes)
|
|
|
|
SRCS += dct64_altivec.c
|
2003-01-27 21:47:25 +00:00
|
|
|
ifeq ($(TARGET_OS),Darwin)
|
2003-01-18 19:28:53 +00:00
|
|
|
CFLAGS += -faltivec
|
2003-01-27 21:47:25 +00:00
|
|
|
else
|
|
|
|
CFLAGS += -maltivec -mabi=altivec
|
|
|
|
endif
|
2003-01-18 19:28:53 +00:00
|
|
|
endif
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2006-11-26 18:12:36 +00:00
|
|
|
include ../mpcommon.mak
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2002-12-24 00:05:43 +00:00
|
|
|
decode_i586.o: decode_i586.c
|
|
|
|
$(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $<
|
|
|
|
|
2006-11-27 11:11:14 +00:00
|
|
|
%: %.c $(LIBNAME) ../mp_msg-mencoder.o ../cpudetect.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ ../libvo/aclib.c $^ -lm
|
2001-05-13 18:58:23 +00:00
|
|
|
|
2006-11-26 18:12:36 +00:00
|
|
|
distclean::
|
2006-11-27 11:11:14 +00:00
|
|
|
rm -f test test2
|