diff ae-dec-dhf/Makefile @ 40:e38e8d0fba70

ae-dec-dhf: complete generation
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 08:18:17 +0000
parents ab7c80f6f02d
children 4e031007e6dd
line wrap: on
line diff
--- a/ae-dec-dhf/Makefile	Tue May 14 08:13:01 2024 +0000
+++ b/ae-dec-dhf/Makefile	Tue May 14 08:18:17 2024 +0000
@@ -1,7 +1,8 @@
 CC=	gcc
 CFLAGS=	-O2
 PROG=	gen-test-frames
-FILES=	test-frames.gsmx
+FILES=	test-frames.gsmx testseq.gsmx decode.robe decode.ul
+PREAMBLE=../ul-test/efr-uplink.gsmx
 
 all:	${PROG} ${FILES}
 
@@ -11,5 +12,14 @@
 test-frames.gsmx:	${PROG}
 	./${PROG} $@
 
+testseq.gsmx:	${PREAMBLE} test-frames.gsmx
+	cat ${PREAMBLE} test-frames.gsmx > $@
+
+decode.robe:	testseq.gsmx
+	amrefr-decode-r $< $@
+
+decode.ul:	decode.robe
+	pcm16-to-ulaw $< $@
+
 clean:
 	rm -f *.o ${PROG} *.robe *.ul *.gsmx