Mercurial > mplayer.hg
annotate 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 |
rev | line source |
---|---|
1 | 1 |
1258 | 2 include ../config.mak |
1 | 3 |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
4 LIBNAME_COMMON = libMP3.a |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
5 |
2450 | 6 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) |
7 OPTFLAGS := $(OPTFLAGS:-O4=-O0) | |
8 endif | |
20306 | 9 |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
10 SRCS_COMMON = sr1.c |
20575 | 11 ifeq ($(TARGET_ARCH_X86_32),yes) |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
12 SRCS_COMMON += decode_i586.c |
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
13 SRCS_COMMON-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
14 SRCS_COMMON-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c |
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
15 SRCS_COMMON-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c |
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
16 SRCS_COMMON-$(TARGET_SSE) += dct64_sse.c |
1258 | 17 endif |
9002 | 18 ifeq ($(TARGET_ALTIVEC),yes) |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
19 SRCS_COMMON += dct64_altivec.c |
9122 | 20 ifeq ($(TARGET_OS),Darwin) |
9002 | 21 CFLAGS += -faltivec |
9122 | 22 else |
23 CFLAGS += -maltivec -mabi=altivec | |
24 endif | |
9002 | 25 endif |
1 | 26 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
27 include ../mpcommon.mak |
1 | 28 |
8543 | 29 decode_i586.o: decode_i586.c |
30 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | |
31 | |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
32 %: %.c $(LIBNAME_COMMON) ../mp_msg-mencoder.o ../cpudetect.o |
21296 | 33 $(CC) $(CFLAGS) -o $@ ../libvo/aclib.c $^ -lm |
788 | 34 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
35 distclean:: |
21296 | 36 rm -f test test2 |