Mercurial > mplayer.hg
annotate liba52/Makefile @ 17838:4ed5dece9d09
remove useless cruft (binds variable)
author | reimar |
---|---|
date | Sun, 12 Mar 2006 21:47:15 +0000 |
parents | ce1ba8fd57e7 |
children | c127ce678083 |
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 | |
17101 | 9 CFLAGS = $(MLIB_INC) $(OPTFLAGS) -I.. |
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) | |
12632 | 20 $(RANLIB) $(LIBNAME) |
3407 | 21 |
22 test: $(LIBNAME) test.c | |
12966 | 23 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm |
3407 | 24 |
25 test2: $(LIBNAME) test.c | |
7148 | 26 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm |
3407 | 27 |
28 all: $(LIBNAME) | |
29 | |
30 clean: | |
31 rm -f *.o *.a *~ | |
32 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17101
diff
changeset
|
33 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17101
diff
changeset
|
34 rm -f .depend test |
3407 | 35 |
36 dep: depend | |
37 | |
38 depend: | |
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
40 | |
41 # | |
42 # include dependency files if they exist | |
43 # | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |