view pcmu2efr/Makefile @ 54:0832b5ac62b2

efr-sid/Unit-test-desc: update for complete status
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 19 Aug 2024 17:40:43 +0000
parents 2095f3c23dad
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	amrefr-out comb-diff comb-out dhf-check pcmu-input stdefr-diff \
	stdefr-out
FILES=	all-outputs.gsmx all-outputs.inc pcmu-input.bin

AMREFR_OBJS=	amrefr-out.o gen-amrefr.o gen160.o seqsyncu.o ulaw-expand.o
COMB_DIFF_OBJS=	comb-diff.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \
		ulaw-expand.o
COMB_OUT_OBJS=	comb-out.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \
		ulaw-expand.o
DHF_CHECK_OBJS=	dhf-check.o gen-amr-2fr.o gen-efr.o gen160.o seqsyncu.o \
		ulaw-expand.o
PCMU_IN_OBJS=	pcmu-input.o seqsyncu.o
STDEFR_OBJS=	gen-efr.o gen160.o seqsyncu.o stdefr-out.o ulaw-expand.o
STDEFRD_OBJS=	gen-efr.o gen160.o seqsyncu.o stdefr-diff.o ulaw-expand.o

all:	${PROGS} ${FILES}

amrefr-out:	${AMREFR_OBJS}
	${CC} ${CFLAGS} -o $@ ${AMREFR_OBJS} -lgsmefr -ltwamr

comb-diff:	${COMB_DIFF_OBJS}
	${CC} ${CFLAGS} -o $@ ${COMB_DIFF_OBJS} -lgsmefr -ltwamr

comb-out:	${COMB_OUT_OBJS}
	${CC} ${CFLAGS} -o $@ ${COMB_OUT_OBJS} -lgsmefr -ltwamr

dhf-check:	${DHF_CHECK_OBJS}
	${CC} ${CFLAGS} -o $@ ${DHF_CHECK_OBJS} -lgsmefr -ltwamr

pcmu-input:	${PCMU_IN_OBJS}
	${CC} ${CFLAGS} -o $@ ${PCMU_IN_OBJS}

stdefr-diff:	${STDEFRD_OBJS}
	${CC} ${CFLAGS} -o $@ ${STDEFRD_OBJS} -lgsmefr

stdefr-out:	${STDEFR_OBJS}
	${CC} ${CFLAGS} -o $@ ${STDEFR_OBJS} -lgsmefr

# data outputs

all-outputs.gsmx:	comb-out
	./comb-out $@

all-outputs.inc:	all-outputs.gsmx
	../utils/gen-hex-c all-outputs.gsmx $@

pcmu-input.bin:	pcmu-input
	./pcmu-input $@

clean:
	rm -f *.o ${PROGS} *.bin *.gsmx *.inc