view ringing/Makefile @ 11:1d22e3f81531

ringing: generate FR-encoded and EFR-encoded "recordings" for GSM
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Apr 2024 19:21:23 +0000
parents b875c8edd54f
children db5772dac3c3
line wrap: on
line source

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

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-efr.gsmx:	ringing.robe
	gsmefr-encode-r ringing.robe $@

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