annotate liba52/Makefile @ 9124:ff773800b598

I also added that a self-reference is not endlessly played ... (Happened with Hole_Dollparts_MSTR.mov), which also gave the other problems ... Fabian Franz <FabianFranz@gmx.de>
author arpi
date Mon, 27 Jan 2003 22:27:54 +0000
parents 5ba896a38d75
children d7ec2e2bb0da
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3407
arpi
parents:
diff changeset
1
arpi
parents:
diff changeset
2 LIBNAME = liba52.a
arpi
parents:
diff changeset
3
arpi
parents:
diff changeset
4 include ../config.mak
arpi
parents:
diff changeset
5
3890
c3e62caf9ec6 CRC code ported from libac3
arpi
parents: 3579
diff changeset
6 SRCS = crc.c resample.c bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c
3407
arpi
parents:
diff changeset
7 OBJS = $(SRCS:.c=.o)
arpi
parents:
diff changeset
8
3493
a4721884eaf5 Fix mediaLib compilation problem on solaris.
jkeil
parents: 3412
diff changeset
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
5ba896a38d75 The two attached patches *should* allow for proper
arpi
parents: 9001
diff changeset
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
5ba896a38d75 The two attached patches *should* allow for proper
arpi
parents: 9001
diff changeset
13 else
5ba896a38d75 The two attached patches *should* allow for proper
arpi
parents: 9001
diff changeset
14 CFLAGS+= -maltivec -mabi=altivec
5ba896a38d75 The two attached patches *should* allow for proper
arpi
parents: 9001
diff changeset
15 endif
9001
01a9cf43074c An AltiVec-enhanced IMDCT for liba52 (liba52/imdct.c)
arpi
parents: 7148
diff changeset
16 endif
3407
arpi
parents:
diff changeset
17
arpi
parents:
diff changeset
18 .SUFFIXES: .c .o
arpi
parents:
diff changeset
19
arpi
parents:
diff changeset
20 # .PHONY: all clean
arpi
parents:
diff changeset
21
arpi
parents:
diff changeset
22 .c.o:
arpi
parents:
diff changeset
23 $(CC) -c $(CFLAGS) -o $@ $<
arpi
parents:
diff changeset
24
arpi
parents:
diff changeset
25 $(LIBNAME): $(OBJS)
arpi
parents:
diff changeset
26 $(AR) r $(LIBNAME) $(OBJS)
arpi
parents:
diff changeset
27
arpi
parents:
diff changeset
28 test: $(LIBNAME) test.c
7148
d48db6256efb use dir/libname.a instead of -Ldir -lname
arpi
parents: 3890
diff changeset
29 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ./liba52.a -lm
3407
arpi
parents:
diff changeset
30
arpi
parents:
diff changeset
31 test2: $(LIBNAME) test.c
7148
d48db6256efb use dir/libname.a instead of -Ldir -lname
arpi
parents: 3890
diff changeset
32 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
3407
arpi
parents:
diff changeset
33
arpi
parents:
diff changeset
34 all: $(LIBNAME)
arpi
parents:
diff changeset
35
arpi
parents:
diff changeset
36 clean:
arpi
parents:
diff changeset
37 rm -f *.o *.a *~
arpi
parents:
diff changeset
38
arpi
parents:
diff changeset
39 distclean:
arpi
parents:
diff changeset
40 rm -f test *.o *.a *~ .depend
arpi
parents:
diff changeset
41
arpi
parents:
diff changeset
42 dep: depend
arpi
parents:
diff changeset
43
arpi
parents:
diff changeset
44 depend:
arpi
parents:
diff changeset
45 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
arpi
parents:
diff changeset
46
arpi
parents:
diff changeset
47 #
arpi
parents:
diff changeset
48 # include dependency files if they exist
arpi
parents:
diff changeset
49 #
arpi
parents:
diff changeset
50 ifneq ($(wildcard .depend),)
arpi
parents:
diff changeset
51 include .depend
arpi
parents:
diff changeset
52 endif