comparison liba52/Makefile @ 21259:92b122592776

Merge common parts of all Makefiles into one file included by all.
author diego
date Sun, 26 Nov 2006 18:12:36 +0000
parents 68df3b19a160
children 29ed2d73c189
comparison
equal deleted inserted replaced
21258:ed01090d1192 21259:92b122592776
9 bitstream.c \ 9 bitstream.c \
10 downmix.c \ 10 downmix.c \
11 imdct.c \ 11 imdct.c \
12 parse.c \ 12 parse.c \
13 13
14 OBJS = $(SRCS:.c=.o) 14 include ../mpcommon.mak
15
16 CFLAGS = -I.. $(OPTFLAGS)
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 $(RANLIB) $(LIBNAME)
28 15
29 test: $(LIBNAME) test.c 16 test: $(LIBNAME) test.c
30 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm 17 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
31 18
32 test2: $(LIBNAME) test.c 19 test2: $(LIBNAME) test.c
33 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm 20 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
34 21
35 all: $(LIBNAME) 22 distclean::
36 23 rm -f test
37 clean:
38 rm -f *.o *.a *~
39
40 distclean: clean
41 rm -f .depend test
42
43 dep depend:
44 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
45
46 ifneq ($(wildcard .depend),)
47 include .depend
48 endif