Fix:
[mplayer/glamo.git] / liba52 / Makefile
blob9ddd8e6284424e8c1f1740754479358cf86e64e0
2 LIBNAME = liba52.a
4 include ../config.mak
6 SRCS = crc.c \
7 resample.c \
8 bit_allocate.c \
9 bitstream.c \
10 downmix.c \
11 imdct.c \
12 imdct_mlib.c \
13 parse.c \
15 OBJS = $(SRCS:.c=.o)
17 CFLAGS = $(MLIB_INC) $(OPTFLAGS) -I..
19 .SUFFIXES: .c .o
21 # .PHONY: all clean
23 .c.o:
24 $(CC) -c $(CFLAGS) -o $@ $<
26 $(LIBNAME): $(OBJS)
27 $(AR) r $(LIBNAME) $(OBJS)
28 $(RANLIB) $(LIBNAME)
30 test: $(LIBNAME) test.c
31 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
33 test2: $(LIBNAME) test.c
34 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
36 all: $(LIBNAME)
38 clean:
39 rm -f *.o *.a *~
41 distclean: clean
42 rm -f .depend test
44 dep: depend
46 depend:
47 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
50 # include dependency files if they exist
52 ifneq ($(wildcard .depend),)
53 include .depend
54 endif