convert some printfs to mp_msg
[mplayer/glamo.git] / liba52 / Makefile
blob0a52a165a18bcc8b4a50cc681cc32eda192027bf
2 LIBNAME = liba52.a
4 include ../config.mak
6 SRCS = crc.c resample.c bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c
7 OBJS = $(SRCS:.c=.o)
9 CFLAGS = $(MLIB_INC) $(OPTFLAGS) -I..
11 .SUFFIXES: .c .o
13 # .PHONY: all clean
15 .c.o:
16 $(CC) -c $(CFLAGS) -o $@ $<
18 $(LIBNAME): $(OBJS)
19 $(AR) r $(LIBNAME) $(OBJS)
20 $(RANLIB) $(LIBNAME)
22 test: $(LIBNAME) test.c
23 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
25 test2: $(LIBNAME) test.c
26 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
28 all: $(LIBNAME)
30 clean:
31 rm -f *.o *.a *~
33 distclean:
34 rm -f test *.o *.a *~ .depend
36 dep: depend
38 depend:
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
42 # include dependency files if they exist
44 ifneq ($(wildcard .depend),)
45 include .depend
46 endif