include ../../../../mk/rules.mk
include ../../../../mk/init.mk

CFLAGS += -I../include -I../../../.. -I. $(PICFLAGS)

OBJECTIVE_LIBS_NOINST = libfaad.a

LDFLAGS += -lm

SOURCES = bits.c cfft.c decoder.c drc.c \
	drm_dec.c error.c filtbank.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 specrec.c syntax.c tns.c hcr.c huffman.c \
	rvlc.c ssr.c ssr_fb.c ssr_ipqf.c common.c \
	sbr_dct.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 sbr_dec.c

OBJECTS = ${SOURCES:.c=.o}

include ../../../../mk/objective.mk

libfaad.a: $(OBJECTS)
	$(AR) cq $@ $(OBJECTS)
