diff trau-files/Makefile @ 12:154586f0f423

trau-files: decode to playable WAV
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 May 2024 20:05:15 +0000
parents cdfeb81350f5
children
line wrap: on
line diff
--- a/trau-files/Makefile	Fri May 24 20:01:54 2024 +0000
+++ b/trau-files/Makefile	Fri May 24 20:05:15 2024 +0000
@@ -5,8 +5,9 @@
 
 DUMPS=	fr-leg1.dump fr-leg2.dump efr-leg1.dump efr-leg2.dump
 GSMX=	fr-leg1.gsmx fr-leg2.gsmx efr-leg1.gsmx efr-leg2.gsmx
+WAV=	fr-leg1.wav fr-leg2.wav efr-leg1.wav efr-leg2.wav
 
-all:	${DUMPS} ${GSMX}
+all:	${DUMPS} ${GSMX} ${WAV}
 
 fr-leg1.dump:	${FR1_BIN} ${PARSE_TOOL}
 	${PARSE_TOOL} ${FR1_BIN} 1 > $@
@@ -32,5 +33,17 @@
 efr-leg2.gsmx:	${EFR_BIN} ${EXTR_TOOL}
 	${EXTR_TOOL} ${EFR_BIN} 2 0xc738 0x2faf8 $@
 
+fr-leg1.wav:	fr-leg1.gsmx
+	gsmfr-decode $< $@
+
+fr-leg2.wav:	fr-leg2.gsmx
+	gsmfr-decode $< $@
+
+efr-leg1.wav:	efr-leg1.gsmx
+	gsmefr-decode $< $@
+
+efr-leg2.wav:	efr-leg2.gsmx
+	gsmefr-decode $< $@
+
 clean:
-	rm -f *.dump *.gsmx
+	rm -f *.dump *.gsmx *.wav