view trau-files/Makefile @ 14:98c0881c2af0

tfo/find-is-hdr: move here from freecalypso-reveng This little program was developed in freecalypso-reveng Hg repository in 2023-03, when we didn't have a separate repository for network-side reverse eng, but now that we do have separate repositories for FreeCalypso (mobile side) vs network side reverse eng, move TFO RE work to the proper place.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 May 2024 21:18:22 +0000
parents 154586f0f423
children
line wrap: on
line source

EFR_BIN=	e1_ts2_efr.bin
FR1_BIN=	e1_ts2_fr.bin
PARSE_TOOL=	../trau-decode/trau-parse
EXTR_TOOL=	../trau-decode/trau-extr

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} ${WAV}

fr-leg1.dump:	${FR1_BIN} ${PARSE_TOOL}
	${PARSE_TOOL} ${FR1_BIN} 1 > $@

fr-leg2.dump:	${FR1_BIN} ${PARSE_TOOL}
	${PARSE_TOOL} ${FR1_BIN} 2 > $@

efr-leg1.dump:	${EFR_BIN} ${PARSE_TOOL}
	${PARSE_TOOL} ${EFR_BIN} 1 > $@

efr-leg2.dump:	${EFR_BIN} ${PARSE_TOOL}
	${PARSE_TOOL} ${EFR_BIN} 2 > $@

fr-leg1.gsmx:	${FR1_BIN} ${EXTR_TOOL}
	${EXTR_TOOL} ${FR1_BIN} 1 0x573 0x287f3 $@

fr-leg2.gsmx:	${FR1_BIN} ${EXTR_TOOL}
	${EXTR_TOOL} ${FR1_BIN} 2 0x5438 0x27f38 $@

efr-leg1.gsmx:	${EFR_BIN} ${EXTR_TOOL}
	${EXTR_TOOL} ${EFR_BIN} 1 0x9ad3 0x30453 $@

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 *.wav