Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 22573:749da6290adc
Use standard variable names for SRCS and OBJS.
author | diego |
---|---|
date | Thu, 15 Mar 2007 00:49:32 +0000 |
parents | fffc3a54fd66 |
children | 8a8a78f18786 |
rev | line source |
---|---|
1258 | 1 include ../config.mak |
1 | 2 |
22536
b19e2fb20a41
Rename mp3lib/libMP3.a to mp3lib/libmp3.a for consistency.
diego
parents:
22531
diff
changeset
|
3 LIBNAME_COMMON = libmp3.a |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
4 |
2450 | 5 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) |
6 OPTFLAGS := $(OPTFLAGS:-O4=-O0) | |
7 endif | |
20306 | 8 |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
9 SRCS_COMMON = sr1.c |
20575 | 10 ifeq ($(TARGET_ARCH_X86_32),yes) |
22531
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
11 SRCS_COMMON += decode_i586.c |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
12 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
|
13 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
|
14 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
|
15 SRCS_COMMON-$(TARGET_SSE) += dct64_sse.c |
1258 | 16 endif |
9002 | 17 ifeq ($(TARGET_ALTIVEC),yes) |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
21309
diff
changeset
|
18 SRCS_COMMON += dct64_altivec.c |
9122 | 19 ifeq ($(TARGET_OS),Darwin) |
9002 | 20 CFLAGS += -faltivec |
9122 | 21 else |
22 CFLAGS += -maltivec -mabi=altivec | |
23 endif | |
9002 | 24 endif |
1 | 25 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
26 include ../mpcommon.mak |
1 | 27 |
8543 | 28 decode_i586.o: decode_i586.c |
29 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | |
30 | |
22537 | 31 %: %.c $(LIBNAME_COMMON) ../libvo/aclib.o ../mp_msg-mencoder.o ../cpudetect.o ../osdep/getch2.o |
32 $(CC) $(CFLAGS) -o $@ $^ -ltermcap -lm | |
788 | 33 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
34 distclean:: |
21296 | 35 rm -f test test2 |