10725
|
1
|
|
2 LIBNAME = libfaad2.a
|
|
3
|
|
4 include ../config.mak
|
|
5
|
12527
|
6 SRCS = bits.c cfft.c common.c decoder.c drc.c error.c filtbank.c hcr.c huffman.c ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c pulse.c rvlc.c sbr_dct.c sbr_dec.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c specrec.c ssr.c ssr_fb.c ssr_ipqf.c syntax.c tns.c
|
10725
|
7 OBJS = $(SRCS:.c=.o)
|
|
8
|
|
9 CFLAGS = -I. $(OPTFLAGS)
|
|
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 all: $(LIBNAME)
|
|
22
|
|
23 clean:
|
|
24 rm -f *.o *.a *~
|
|
25
|
|
26 distclean:
|
|
27 rm -f test *.o *.a *~ .depend
|
|
28
|
|
29 dep: depend
|
|
30
|
|
31 depend:
|
|
32 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
33
|
|
34 #
|
|
35 # include dependency files if they exist
|
|
36 #
|
|
37 ifneq ($(wildcard .depend),)
|
|
38 include .depend
|
|
39 endif
|