view ringing/Makefile @ 19:2bdcd2ed9a1c

pcmu2efr: generate AMR-EFR version
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 12 May 2024 00:56:42 +0000
parents ec642bde2349
children
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.inc ringing-efr.inc 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.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 *.inc