view ae-dec-dhf/Makefile @ 49:2daadef1e70d

efr-sid OS#6538: more sensible 15-bit and 16-bit errors
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 12 Aug 2024 02:37:21 +0000
parents 4e031007e6dd
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	gen-test-frames
FILES=	test-frames.gsmx testseq.gsmx testseq.tch decode.robe decode.ul
PREAMBLE=../ul-test/efr-uplink.gsmx

all:	${PROG} ${FILES}

${PROG}:	${PROG}.c
	${CC} ${CFLAGS} -o $@ $@.c -lgsmefr -ltwamr

test-frames.gsmx:	${PROG}
	./${PROG} $@

testseq.gsmx:	${PREAMBLE} test-frames.gsmx
	cat ${PREAMBLE} test-frames.gsmx > $@

testseq.tch:	testseq.gsmx
	fc-efr2tch $< $@

decode.robe:	testseq.gsmx
	amrefr-decode-r $< $@

decode.ul:	decode.robe
	pcm16-to-ulaw $< $@

clean:
	rm -f *.o ${PROG} *.robe *.ul *.gsmx *.tch