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
|
3493
|
9 CFLAGS = $(MLIB_INC) $(OPTFLAGS)
|
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
|
7148
|
23 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ./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
|
|
33 distclean:
|
|
34 rm -f test *.o *.a *~ .depend
|
|
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
|