changeset 38:e96e8d8973c0

ul-test: generate hex include files for PCMU
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 05:36:38 +0000
parents f8a6ea314c5f
children ab7c80f6f02d
files .hgignore Makefile ul-test/Makefile
diffstat 3 files changed, 15 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue May 14 04:39:30 2024 +0000
+++ b/.hgignore	Tue May 14 05:36:38 2024 +0000
@@ -1,6 +1,7 @@
 syntax: regexp
 
 \.[oa]$
+\.inc$
 
 ^amrdiff/amrdiff$
 ^amrdiff/readone-amr$
--- a/Makefile	Tue May 14 04:39:30 2024 +0000
+++ b/Makefile	Tue May 14 05:36:38 2024 +0000
@@ -5,7 +5,7 @@
 pcma2efr:	utils
 pcmu2efr:	utils
 ringing:	utils
-ul-test:	dhf dmw
+ul-test:	dhf dmw utils
 
 ${SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS}
--- a/ul-test/Makefile	Tue May 14 04:39:30 2024 +0000
+++ b/ul-test/Makefile	Tue May 14 05:36:38 2024 +0000
@@ -1,9 +1,10 @@
 DMW_SRC=../dmw/dmw-alaw.robe
 DHF1=	../dhf/fr1-dhf.gsm
 DHFE=	../dhf/efr-dhf.gsmx
-FR_OUT=	fr-enc.gsm fr-uplink.tch fr-decode.al fr-decode.ul
+FR_OUT=	fr-enc.gsm fr-uplink.tch fr-decode.al fr-decode.ul fr-decode-ul.inc
 EFR_OUT=efr-enc.gsmx efr-uplink.tch efr-dec-classic.al efr-dec-classic.ul \
-	efr-dec-amrefr.al efr-dec-amrefr.ul
+	efr-dec-classic-ul.inc efr-dec-amrefr.al efr-dec-amrefr.ul \
+	efr-dec-amrefr-ul.inc
 ALL_OUT=${FR_OUT} ${EFR_OUT}
 
 all:	${ALL_OUT}
@@ -26,6 +27,9 @@
 fr-decode.ul:	fr-decode.robe
 	pcm16-to-ulaw $< $@
 
+fr-decode-ul.inc:	fr-decode.ul
+	../utils/gen-hex-c $< $@
+
 efr-enc.gsmx:	${DMW_SRC}
 	gsmefr-encode-r $< $@
 
@@ -44,6 +48,9 @@
 efr-dec-classic.ul:	efr-dec-classic.robe
 	pcm16-to-ulaw $< $@
 
+efr-dec-classic-ul.inc:	efr-dec-classic.ul
+	../utils/gen-hex-c $< $@
+
 efr-dec-amrefr.robe:	efr-enc.gsmx
 	amrefr-decode-r $< $@
 
@@ -53,5 +60,8 @@
 efr-dec-amrefr.ul:	efr-dec-amrefr.robe
 	pcm16-to-ulaw $< $@
 
+efr-dec-amrefr-ul.inc:	efr-dec-amrefr.ul
+	../utils/gen-hex-c $< $@
+
 clean:
-	rm -f *.gsm *.gsmx *.robe *.al *.ul *.tch
+	rm -f *.gsm *.gsmx *.robe *.al *.ul *.tch *.inc