man/hu/mplayer.1 synced with r19052
[mplayer/greg.git] / liba52 / Makefile
blob9296b322842466167426462659d8e8afc132c670
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 parse.c \
14 OBJS = $(SRCS:.c=.o)
16 CFLAGS = $(OPTFLAGS) -I..
18 .SUFFIXES: .c .o
20 # .PHONY: all clean
22 .c.o:
23 $(CC) -c $(CFLAGS) -o $@ $<
25 $(LIBNAME): $(OBJS)
26 $(AR) r $(LIBNAME) $(OBJS)
27 $(RANLIB) $(LIBNAME)
29 test: $(LIBNAME) test.c
30 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
32 test2: $(LIBNAME) test.c
33 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
35 all: $(LIBNAME)
37 clean:
38 rm -f *.o *.a *~
40 distclean: clean
41 rm -f .depend test
43 dep: depend
45 depend:
46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
49 # include dependency files if they exist
51 ifneq ($(wildcard .depend),)
52 include .depend
53 endif