2003-08-30 22:30:28 +00:00
|
|
|
|
|
|
|
LIBNAME = libfaad2.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2005-07-06 08:42:55 +00:00
|
|
|
SRCS = bits.c \
|
|
|
|
cfft.c \
|
|
|
|
common.c \
|
|
|
|
decoder.c \
|
|
|
|
drc.c \
|
2006-04-18 19:39:34 +00:00
|
|
|
drm_dec.c \
|
2005-07-06 08:42:55 +00:00
|
|
|
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 \
|
|
|
|
|
2003-08-30 22:30:28 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
|
2005-05-30 08:57:30 +00:00
|
|
|
CFLAGS = -I. $(OPTFLAGS) -D_GNU_SOURCE
|
2003-08-30 22:30:28 +00:00
|
|
|
|
2006-10-17 16:01:25 +00:00
|
|
|
# The FIXED_POINT implementation of FAAD2 improves performance
|
|
|
|
# on some platforms, especially for SBR files.
|
|
|
|
ifeq ($(FAAD_FIXED),yes)
|
|
|
|
CFLAGS += -DFIXED_POINT
|
|
|
|
endif
|
2004-10-08 00:39:37 +00:00
|
|
|
|
2003-08-30 22:30:28 +00:00
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2003-08-30 22:30:28 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend test
|
2003-08-30 22:30:28 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|