Mercurial > mplayer.hg
annotate liba52/Makefile @ 3733:8dcc18663e60
warning fix
author | pl |
---|---|
date | Tue, 25 Dec 2001 16:38:07 +0000 |
parents | 831860fada69 |
children | c3e62caf9ec6 |
rev | line source |
---|---|
3407 | 1 |
2 LIBNAME = liba52.a | |
3 | |
4 include ../config.mak | |
5 | |
3412
21d65a4ae3c9
resample.c added - float->int conversion and channel ordering
arpi
parents:
3407
diff
changeset
|
6 SRCS = 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) |
3407 | 10 |
11 .SUFFIXES: .c .o | |
12 | |
13 # .PHONY: all clean | |
14 | |
15 .c.o: | |
16 $(CC) -c $(CFLAGS) -o $@ $< | |
17 | |
18 $(LIBNAME): $(OBJS) | |
19 $(AR) r $(LIBNAME) $(OBJS) | |
20 | |
21 test: $(LIBNAME) test.c | |
3579 | 22 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test -L. -la52 -lm |
3407 | 23 |
24 test2: $(LIBNAME) test.c | |
25 $(CC) $(CFLAGS) test.c -o test2 -L../libac3 -lac3 -L. -la52 | |
26 | |
27 all: $(LIBNAME) | |
28 | |
29 clean: | |
30 rm -f *.o *.a *~ | |
31 | |
32 distclean: | |
33 rm -f test *.o *.a *~ .depend | |
34 | |
35 dep: depend | |
36 | |
37 depend: | |
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
39 | |
40 # | |
41 # include dependency files if they exist | |
42 # | |
43 ifneq ($(wildcard .depend),) | |
44 include .depend | |
45 endif |