summaryrefslogtreecommitdiffstats
path: root/mp3lib/Makefile
blob: 75bcb8f1966cc71a9759d15a54406a3f5f265f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include ../config.mak

LIBNAME_COMMON = libmp3.a

SRCS_COMMON = sr1.c
SRCS_COMMON-$(HAVE_MMX)       += decode_MMX.c
SRCS_COMMON-$(HAVE_SSE)       += dct64_sse.c
ifeq ($(ARCH_X86_32),yes)
SRCS_COMMON                   += decode_i586.c
SRCS_COMMON-$(HAVE_MMX)       += dct64_MMX.c
SRCS_COMMON-$(HAVE_3DNOW)     += dct36_3dnow.c dct64_3dnow.c
SRCS_COMMON-$(HAVE_3DNOWEX)   += dct36_k7.c dct64_k7.c
endif
SRCS_COMMON-$(HAVE_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