view ringing/Makefile @ 12:db5772dac3c3

ringing: generate WAV decodings of FR&EFR ringing signals for playback testing and subjective quality evaluation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Apr 2024 19:28:20 +0000
parents 1d22e3f81531
children ec642bde2349
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROG=	genring
FILES=	ringing.robe ringing.ul ringing.al ringing-fr.gsm ringing-efr.gsmx \
	ringing-fr.wav ringing-efr.wav

all:	${PROG} ${FILES}

${PROG}:	${PROG}.c
	${CC} ${CFLAGS} -o $@ $@.c -lm

ringing.robe:	${PROG}
	./${PROG} $@

ringing.ul:	ringing.robe
	pcm16-to-ulaw ringing.robe $@

ringing.al:	ringing.robe
	pcm16-to-alaw ringing.robe $@

ringing-fr.gsm:	ringing.robe
	gsmfr-encode-r ringing.robe $@

ringing-fr.wav:	ringing-fr.gsm
	gsmfr-decode ringing-fr.gsm $@

ringing-efr.gsmx:	ringing.robe
	gsmefr-encode-r ringing.robe $@

ringing-efr.wav:	ringing-efr.gsmx
	gsmefr-decode ringing-efr.gsmx $@

clean:
	rm -f *.o ${PROG} *.robe *.ul *.al *.gsm *.gsmx *.wav