Mercurial > mplayer.hg
annotate liba52/Makefile @ 19995:9cd5e242121e
in case of errors after decoding quit the main decoding
loop before memmove() when sh_audio->in_buffer_len <= 0;
patch by Chandan Pitta chandan.pitta gmail com
author | nicodvb |
---|---|
date | Wed, 27 Sep 2006 21:45:15 +0000 |
parents | 4f71ed7cb512 |
children | 618d1857f4c4 |
rev | line source |
---|---|
3407 | 1 |
2 LIBNAME = liba52.a | |
3 | |
4 include ../config.mak | |
5 | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
6 SRCS = crc.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
7 resample.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
8 bit_allocate.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
9 bitstream.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
10 downmix.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
11 imdct.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
12 parse.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 |
3407 | 14 OBJS = $(SRCS:.c=.o) |
15 | |
19420
4f71ed7cb512
Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents:
18720
diff
changeset
|
16 CFLAGS = -I.. $(OPTFLAGS) |
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) | |
12632 | 27 $(RANLIB) $(LIBNAME) |
3407 | 28 |
29 test: $(LIBNAME) test.c | |
12966 | 30 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm |
3407 | 31 |
32 test2: $(LIBNAME) test.c | |
7148 | 33 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm |
3407 | 34 |
35 all: $(LIBNAME) | |
36 | |
37 clean: | |
38 rm -f *.o *.a *~ | |
39 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17101
diff
changeset
|
40 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17101
diff
changeset
|
41 rm -f .depend test |
3407 | 42 |
43 dep: depend | |
44 | |
45 depend: | |
46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
47 | |
48 # | |
49 # include dependency files if they exist | |
50 # | |
51 ifneq ($(wildcard .depend),) | |
52 include .depend | |
53 endif |