changeset 14:ec642bde2349

ringing: generate hex char arrays for FR&EFR ringing signals
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Apr 2024 19:44:50 +0000
parents 871e83f0cb76
children 528eef871e23
files Makefile ringing/Makefile
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Apr 07 19:41:03 2024 +0000
+++ b/Makefile	Sun Apr 07 19:44:50 2024 +0000
@@ -2,6 +2,8 @@
 
 all:	${SUBDIR}
 
+ringing:	utils
+
 ${SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS}
 
--- a/ringing/Makefile	Sun Apr 07 19:41:03 2024 +0000
+++ b/ringing/Makefile	Sun Apr 07 19:44:50 2024 +0000
@@ -2,7 +2,7 @@
 CFLAGS=	-O2
 PROG=	genring
 FILES=	ringing.robe ringing.ul ringing.al ringing-fr.gsm ringing-efr.gsmx \
-	ringing-fr.wav ringing-efr.wav
+	ringing-fr.inc ringing-efr.inc ringing-fr.wav ringing-efr.wav
 
 all:	${PROG} ${FILES}
 
@@ -21,14 +21,20 @@
 ringing-fr.gsm:	ringing.robe
 	gsmfr-encode-r ringing.robe $@
 
+ringing-fr.inc:	ringing-fr.gsm
+	../utils/gen-hex-c ringing-fr.gsm $@
+
 ringing-fr.wav:	ringing-fr.gsm
 	gsmfr-decode ringing-fr.gsm $@
 
 ringing-efr.gsmx:	ringing.robe
 	gsmefr-encode-r ringing.robe $@
 
+ringing-efr.inc:	ringing-efr.gsmx
+	../utils/gen-hex-c ringing-efr.gsmx $@
+
 ringing-efr.wav:	ringing-efr.gsmx
 	gsmefr-decode ringing-efr.gsmx $@
 
 clean:
-	rm -f *.o ${PROG} *.robe *.ul *.al *.gsm *.gsmx *.wav
+	rm -f *.o ${PROG} *.robe *.ul *.al *.gsm *.gsmx *.wav *.inc