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)
|
|
20
|
|
21 test: $(LIBNAME) test.c
|
3579
|
22 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test -L. -la52 -lm
|
3407
|
23
|
|
24 test2: $(LIBNAME) test.c
|
|
25 $(CC) $(CFLAGS) test.c -o test2 -L../libac3 -lac3 -L. -la52
|
|
26
|
|
27 all: $(LIBNAME)
|
|
28
|
|
29 clean:
|
|
30 rm -f *.o *.a *~
|
|
31
|
|
32 distclean:
|
|
33 rm -f test *.o *.a *~ .depend
|
|
34
|
|
35 dep: depend
|
|
36
|
|
37 depend:
|
|
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
39
|
|
40 #
|
|
41 # include dependency files if they exist
|
|
42 #
|
|
43 ifneq ($(wildcard .depend),)
|
|
44 include .depend
|
|
45 endif
|