Mercurial > mplayer.hg
annotate liba52/Makefile @ 9001:01a9cf43074c
An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
It's nearly bit-perfect, I have a couple of lsb
changed in a 128 frames sample. I can't hear the
differences :-)
patch by Romain Dolbeau <dolbeau@irisa.fr>
author | arpi |
---|---|
date | Sat, 18 Jan 2003 19:28:29 +0000 |
parents | d48db6256efb |
children | 5ba896a38d75 |
rev | line source |
---|---|
3407 | 1 |
2 LIBNAME = liba52.a | |
3 | |
4 include ../config.mak | |
5 | |
3890 | 6 SRCS = crc.c resample.c bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c |
3407 | 7 OBJS = $(SRCS:.c=.o) |
8 | |
3493 | 9 CFLAGS = $(MLIB_INC) $(OPTFLAGS) |
9001
01a9cf43074c
An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
arpi
parents:
7148
diff
changeset
|
10 ifeq ($(TARGET_ALTIVEC),yes) |
01a9cf43074c
An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
arpi
parents:
7148
diff
changeset
|
11 CFLAGS+= -faltivec |
01a9cf43074c
An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
arpi
parents:
7148
diff
changeset
|
12 endif |
3407 | 13 |
14 .SUFFIXES: .c .o | |
15 | |
16 # .PHONY: all clean | |
17 | |
18 .c.o: | |
19 $(CC) -c $(CFLAGS) -o $@ $< | |
20 | |
21 $(LIBNAME): $(OBJS) | |
22 $(AR) r $(LIBNAME) $(OBJS) | |
23 | |
24 test: $(LIBNAME) test.c | |
7148 | 25 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ./liba52.a -lm |
3407 | 26 |
27 test2: $(LIBNAME) test.c | |
7148 | 28 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm |
3407 | 29 |
30 all: $(LIBNAME) | |
31 | |
32 clean: | |
33 rm -f *.o *.a *~ | |
34 | |
35 distclean: | |
36 rm -f test *.o *.a *~ .depend | |
37 | |
38 dep: depend | |
39 | |
40 depend: | |
41 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
42 | |
43 # | |
44 # include dependency files if they exist | |
45 # | |
46 ifneq ($(wildcard .depend),) | |
47 include .depend | |
48 endif |