Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 21555:ababf115f90d
Avoid deprecated _sleep, instead include windows.h and use Sleep just like
osdep/timer-win2.c does.
Patch by Zuxy Meng [zuxy meng (at) gmail com]
author | reimar |
---|---|
date | Sun, 10 Dec 2006 14:04:27 +0000 |
parents | ef59ac68c9b6 |
children | 8bcff5c7e387 |
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 |
21309 | 13 SRCS-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
14 SRCS-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c | |
15 SRCS-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c | |
16 SRCS-$(TARGET_SSE) += dct64_sse.c | |
1258 | 17 endif |
9002 | 18 ifeq ($(TARGET_ALTIVEC),yes) |
19 SRCS += 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 | |
21296 | 32 %: %.c $(LIBNAME) ../mp_msg-mencoder.o ../cpudetect.o |
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 |