Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 17133:a2b24e0d7772
prevent flicker on b-frames, trivial port from vf_spp
author | henry |
---|---|
date | Wed, 07 Dec 2005 20:04:16 +0000 |
parents | e047e70a9767 |
children | ce1ba8fd57e7 |
rev | line source |
---|---|
1 | 1 |
1258 | 2 include ../config.mak |
1 | 3 |
1270 | 4 SRCS = sr1.c |
5 OBJS = sr1.o | |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
6 # OBJS = $(SRCS:.c,.s=.o) |
2450 | 7 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) |
8 OPTFLAGS := $(OPTFLAGS:-O4=-O0) | |
9 endif | |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
12632
diff
changeset
|
10 CFLAGS = -I.. $(OPTFLAGS) $(EXTRA_INC) |
1258 | 11 ifeq ($(TARGET_ARCH_X86),yes) |
4262 | 12 SRCS += decode_i586.c |
13 OBJS += decode_i586.o | |
4165 | 14 SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
1258 | 15 OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o |
10322
9163bdb578a6
moved 3dnow and 3dnowex dct36 optimisations into gcc inline assembly
alex
parents:
9771
diff
changeset
|
16 SRCS += dct36_3dnow.c dct64_3dnow.c |
1258 | 17 OBJS += dct36_3dnow.o dct64_3dnow.o |
10322
9163bdb578a6
moved 3dnow and 3dnowex dct36 optimisations into gcc inline assembly
alex
parents:
9771
diff
changeset
|
18 SRCS += dct36_k7.c dct64_k7.c |
1258 | 19 OBJS += dct36_k7.o dct64_k7.o |
20 endif | |
9002 | 21 ifeq ($(TARGET_ARCH_POWERPC),yes) |
22 ifeq ($(TARGET_ALTIVEC),yes) | |
23 SRCS += dct64_altivec.c | |
24 OBJS += dct64_altivec.o | |
9122 | 25 ifeq ($(TARGET_OS),Darwin) |
9002 | 26 CFLAGS += -faltivec |
9122 | 27 else |
28 CFLAGS += -maltivec -mabi=altivec | |
29 endif | |
9002 | 30 endif |
31 endif | |
1 | 32 |
33 .SUFFIXES: .c .o | |
34 | |
35 # .PHONY: all clean | |
36 | |
8543 | 37 all: libMP3.a |
38 | |
1 | 39 .c.o: |
40 $(CC) -c $(CFLAGS) -o $@ $< | |
41 | |
8543 | 42 decode_i586.o: decode_i586.c |
43 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | |
44 | |
1 | 45 .s.o: |
46 $(CC) -c $(CFLAGS) -o $@ $< | |
47 | |
1010 | 48 libMP3.a: $(OBJS) |
1 | 49 $(AR) r libMP3.a $(OBJS) |
12632 | 50 $(RANLIB) libMP3.a |
51 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
52 test1: libMP3.a test.c |
7234 | 53 $(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
|
54 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
55 test2: libMP3.a test2.c |
7234 | 56 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm |
788 | 57 |
1 | 58 clean: |
11241 | 59 rm -f *~ *.o *.a test1 test2 |
1 | 60 |
61 distclean: | |
26 | 62 rm -f *~ *.o *.a Makefile.bak .depend |
63 | |
64 dep: depend | |
1 | 65 |
1010 | 66 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
67 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 68 |
26 | 69 # |
70 # include dependency files if they exist | |
71 # | |
72 ifneq ($(wildcard .depend),) | |
73 include .depend | |
74 endif |