Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 21295:337e3018cd8b
Remove superfluous CFLAGS declaration (is in mpcommon.mak).
author | diego |
---|---|
date | Mon, 27 Nov 2006 10:58:03 +0000 |
parents | b2eeabacef4d |
children | bf9e5ad91bbb |
rev | line source |
---|---|
1 | 1 |
1258 | 2 include ../config.mak |
1 | 3 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
4 LIBNAME = libMP3.a |
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 |
10 SRCS = sr1.c | |
20575 | 11 ifeq ($(TARGET_ARCH_X86_32),yes) |
4262 | 12 SRCS += decode_i586.c |
19131
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
13 ifeq ($(TARGET_MMX),yes) |
4165 | 14 SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
19131
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
15 endif |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
16 ifeq ($(TARGET_3DNOW),yes) |
10322
9163bdb578a6
moved 3dnow and 3dnowex dct36 optimisations into gcc inline assembly
alex
parents:
9771
diff
changeset
|
17 SRCS += dct36_3dnow.c dct64_3dnow.c |
19131
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
18 endif |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
19 ifeq ($(TARGET_3DNOWEX),yes) |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
20 SRCS += dct36_k7.c dct64_k7.c |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
21 endif |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
22 ifeq ($(TARGET_SSE),yes) |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
23 SRCS += dct64_sse.c |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
24 endif |
1258 | 25 endif |
9002 | 26 ifeq ($(TARGET_ARCH_POWERPC),yes) |
27 ifeq ($(TARGET_ALTIVEC),yes) | |
28 SRCS += dct64_altivec.c | |
9122 | 29 ifeq ($(TARGET_OS),Darwin) |
9002 | 30 CFLAGS += -faltivec |
9122 | 31 else |
32 CFLAGS += -maltivec -mabi=altivec | |
33 endif | |
9002 | 34 endif |
35 endif | |
1 | 36 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
37 include ../mpcommon.mak |
1 | 38 |
8543 | 39 decode_i586.o: decode_i586.c |
40 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | |
41 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
42 test1: libMP3.a test.c |
7234 | 43 $(CC) $(CFLAGS) test.c ../libvo/aclib.c -o test1 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
44 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
45 test2: libMP3.a test2.c |
7234 | 46 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm |
788 | 47 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
48 distclean:: |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21206
diff
changeset
|
49 rm -f test1 test2 |