view d144/Makefile @ 74:e78c6b1ecb91

trau-decode: refactor trau-hr-dump The desire is to create a companion program that will read hex lines representing TRAU-8k frames and then decode those frames in exactly the same way how we currently decode frames read from binary capture files. Hence the decoder portion of trau-hr-dump needs to be factored out.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 08 Feb 2025 03:00:31 +0000
parents 0364d77aca58
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	atrau-parse edata-input-compile edata-input-decomp
DATA=	d144-ul-input.bin d144-ul-input.asc nokia-tcsm2-atrau.dump \
	nokia-tcsm2-atrau.hex

all:	${PROGS} ${DATA}

atrau-parse:	atrau-parse.c
	${CC} ${CFLAGS} -o $@ $@.c

edata-input-compile:	edata-input-compile.c
	${CC} ${CFLAGS} -o $@ $@.c

edata-input-decomp:	edata-input-decomp.c
	${CC} ${CFLAGS} -o $@ $@.c

d144-ul-input.bin:	edata-input-compile ul-input
	./edata-input-compile ul-input $@

d144-ul-input.asc:	edata-input-decomp d144-ul-input.bin
	./edata-input-decomp d144-ul-input.bin $@

nokia-tcsm2-atrau.dump:	atrau-parse nokia-tcsm2-atrau.bin
	./atrau-parse nokia-tcsm2-atrau.bin > $@

nokia-tcsm2-atrau.hex:	nokia-tcsm2-atrau.bin
	../utils/gen-hex-lines nokia-tcsm2-atrau.bin $@ 40

clean:
	rm -f *.o ${PROGS} ${DATA}