Mercurial > mplayer.hg
annotate liba52/Makefile @ 9174:0333afac3a56
closing some tags in Zr section
author | gabucino |
---|---|
date | Thu, 30 Jan 2003 19:32:19 +0000 |
parents | 5ba896a38d75 |
children | d7ec2e2bb0da |
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) |
9122 | 11 ifeq ($(TARGET_OS),Darwin) |
9001
01a9cf43074c
An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
arpi
parents:
7148
diff
changeset
|
12 CFLAGS+= -faltivec |
9122 | 13 else |
14 CFLAGS+= -maltivec -mabi=altivec | |
15 endif | |
9001
01a9cf43074c
An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
arpi
parents:
7148
diff
changeset
|
16 endif |
3407 | 17 |
18 .SUFFIXES: .c .o | |
19 | |
20 # .PHONY: all clean | |
21 | |
22 .c.o: | |
23 $(CC) -c $(CFLAGS) -o $@ $< | |
24 | |
25 $(LIBNAME): $(OBJS) | |
26 $(AR) r $(LIBNAME) $(OBJS) | |
27 | |
28 test: $(LIBNAME) test.c | |
7148 | 29 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ./liba52.a -lm |
3407 | 30 |
31 test2: $(LIBNAME) test.c | |
7148 | 32 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm |
3407 | 33 |
34 all: $(LIBNAME) | |
35 | |
36 clean: | |
37 rm -f *.o *.a *~ | |
38 | |
39 distclean: | |
40 rm -f test *.o *.a *~ .depend | |
41 | |
42 dep: depend | |
43 | |
44 depend: | |
45 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
46 | |
47 # | |
48 # include dependency files if they exist | |
49 # | |
50 ifneq ($(wildcard .depend),) | |
51 include .depend | |
52 endif |