Mercurial > mplayer.hg
comparison mp3lib/Makefile @ 22528:8bcff5c7e387
Give more descriptive names to the source and library variables and split
between common, MPlayer-specific and MEncoder-specific parts.
author | diego |
---|---|
date | Tue, 13 Mar 2007 12:10:57 +0000 |
parents | ef59ac68c9b6 |
children | 090ec2169aee |
comparison
equal
deleted
inserted
replaced
22527:5dc92a83d58a | 22528:8bcff5c7e387 |
---|---|
1 | 1 |
2 include ../config.mak | 2 include ../config.mak |
3 | 3 |
4 LIBNAME = libMP3.a | 4 LIBNAME_COMMON = libMP3.a |
5 | 5 |
6 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) | 6 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) |
7 OPTFLAGS := $(OPTFLAGS:-O4=-O0) | 7 OPTFLAGS := $(OPTFLAGS:-O4=-O0) |
8 endif | 8 endif |
9 | 9 |
10 SRCS = sr1.c | 10 SRCS_COMMON = sr1.c |
11 ifeq ($(TARGET_ARCH_X86_32),yes) | 11 ifeq ($(TARGET_ARCH_X86_32),yes) |
12 SRCS += decode_i586.c | 12 SRCS_COMMON += decode_i586.c |
13 SRCS-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c | 13 SRCS_COMMON-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
14 SRCS-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c | 14 SRCS_COMMON-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c |
15 SRCS-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c | 15 SRCS_COMMON-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c |
16 SRCS-$(TARGET_SSE) += dct64_sse.c | 16 SRCS_COMMON-$(TARGET_SSE) += dct64_sse.c |
17 endif | 17 endif |
18 ifeq ($(TARGET_ALTIVEC),yes) | 18 ifeq ($(TARGET_ALTIVEC),yes) |
19 SRCS += dct64_altivec.c | 19 SRCS_COMMON += dct64_altivec.c |
20 ifeq ($(TARGET_OS),Darwin) | 20 ifeq ($(TARGET_OS),Darwin) |
21 CFLAGS += -faltivec | 21 CFLAGS += -faltivec |
22 else | 22 else |
23 CFLAGS += -maltivec -mabi=altivec | 23 CFLAGS += -maltivec -mabi=altivec |
24 endif | 24 endif |
27 include ../mpcommon.mak | 27 include ../mpcommon.mak |
28 | 28 |
29 decode_i586.o: decode_i586.c | 29 decode_i586.o: decode_i586.c |
30 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | 30 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< |
31 | 31 |
32 %: %.c $(LIBNAME) ../mp_msg-mencoder.o ../cpudetect.o | 32 %: %.c $(LIBNAME_COMMON) ../mp_msg-mencoder.o ../cpudetect.o |
33 $(CC) $(CFLAGS) -o $@ ../libvo/aclib.c $^ -lm | 33 $(CC) $(CFLAGS) -o $@ ../libvo/aclib.c $^ -lm |
34 | 34 |
35 distclean:: | 35 distclean:: |
36 rm -f test test2 | 36 rm -f test test2 |