2001-07-03 07:50:52 +00:00
|
|
|
include ../config.mak
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2007-03-13 22:19:18 +00:00
|
|
|
LIBNAME_COMMON = libmp3.a
|
2006-11-26 18:12:36 +00:00
|
|
|
|
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
|
|
|
|
2007-03-13 12:10:57 +00:00
|
|
|
SRCS_COMMON = sr1.c
|
2006-11-01 18:19:02 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86_32),yes)
|
2007-03-13 21:55:23 +00:00
|
|
|
SRCS_COMMON += decode_i586.c
|
2007-03-13 12:10:57 +00:00
|
|
|
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
|
2001-07-03 07:50:52 +00:00
|
|
|
endif
|
2007-03-15 13:20:22 +00:00
|
|
|
SRCS_COMMON-$(TARGET_ALTIVEC) += dct64_altivec.c
|
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 $@ $<
|
|
|
|
|
2007-03-13 22:28:13 +00:00
|
|
|
%: %.c $(LIBNAME_COMMON) ../libvo/aclib.o ../mp_msg-mencoder.o ../cpudetect.o ../osdep/getch2.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ -ltermcap -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
|