FreeCalypso > hg > vband-misc
diff dmw/Makefile @ 7:e81a8c274fa6
dmw: generate G.711 digital mW and convert both versions to robe
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 07 Apr 2024 07:20:23 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmw/Makefile Sun Apr 07 07:20:23 2024 +0000 @@ -0,0 +1,24 @@ +CC= gcc +CFLAGS= -O2 +PROG= gen-dmw-bin +FILES= dmw-alaw.bin dmw-alaw.robe dmw-ulaw.bin dmw-ulaw.robe + +all: ${PROG} ${FILES} + +${PROG}: ${PROG}.c + ${CC} ${CFLAGS} -o $@ $@.c + +dmw-alaw.bin: ${PROG} + ./${PROG} $@ alaw 20 + +dmw-alaw.robe: dmw-alaw.bin + pcm8-to-pcm16 alaw dmw-alaw.bin $@ + +dmw-ulaw.bin: ${PROG} + ./${PROG} $@ ulaw 20 + +dmw-ulaw.robe: dmw-ulaw.bin + pcm8-to-pcm16 ulaw dmw-ulaw.bin $@ + +clean: + rm -f *.o ${PROG} *.bin *.robe