annotate libfaad2/Makefile @ 15596:667c78f0fc60

- correct the argument in configure check for lrintf() to avoid a warning - add -D_GNU_SOURCE where lrintf() is used, for the cases when -std=gnu99 isn't available
author henry
date Mon, 30 May 2005 08:57:30 +0000
parents fbf889ed2426
children fa2281c94e7e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
2 LIBNAME = libfaad2.a
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
3
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
4 include ../config.mak
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
5
13453
6d50ef45a058 Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents: 12632
diff changeset
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 ps_dec.c ps_syntax.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
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
7 OBJS = $(SRCS:.c=.o)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
8
15596
667c78f0fc60 - correct the argument in configure check for lrintf() to avoid a warning
henry
parents: 13583
diff changeset
9 CFLAGS = -I. $(OPTFLAGS) -D_GNU_SOURCE
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
10
13583
fbf889ed2426 Hint at FIXED_POINT for better (SBR) performance.
diego
parents: 13453
diff changeset
11 # Uncomment this to use the FIXED_POINT implementation of FAAD2.
fbf889ed2426 Hint at FIXED_POINT for better (SBR) performance.
diego
parents: 13453
diff changeset
12 # This should improve performance, especially for SBR files.
fbf889ed2426 Hint at FIXED_POINT for better (SBR) performance.
diego
parents: 13453
diff changeset
13 #CFLAGS = -I. $(OPTFLAGS) -DFIXED_POINT
fbf889ed2426 Hint at FIXED_POINT for better (SBR) performance.
diego
parents: 13453
diff changeset
14
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
15 .SUFFIXES: .c .o
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
16
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
17 # .PHONY: all clean
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
18
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
19 .c.o:
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
20 $(CC) -c $(CFLAGS) -o $@ $<
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
21
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
22 $(LIBNAME): $(OBJS)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
23 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 12527
diff changeset
24 $(RANLIB) $(LIBNAME)
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
25
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
26 all: $(LIBNAME)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
27
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
28 clean:
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
29 rm -f *.o *.a *~
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
30
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
31 distclean:
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
32 rm -f test *.o *.a *~ .depend
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
33
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
34 dep: depend
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
35
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
36 depend:
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
37 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
38
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
39 #
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
40 # include dependency files if they exist
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
41 #
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
42 ifneq ($(wildcard .depend),)
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
43 include .depend
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
44 endif