LIBS += -lm EXTRA_DIST = busy.wav ringt.wav ring.wav dialtone.wav all: mkdtmf raw2h busy.h ringt.h dialtone.h ring.h one.h two.h three.h four.h five.h six.h seven.h eight.h nine.h zero.h star.h pound.h install-snom:install install: all clean distclean: rm -f *.h rm -f *.raw rm -f mkdtmf raw2h *.o SUFFIXES = .wav %.h: %.raw ./raw2h $< $@ one.h: ./mkdtmf 1 one > one.h two.h: ./mkdtmf 2 two > two.h three.h: ./mkdtmf 3 three > three.h four.h: ./mkdtmf 4 four > four.h five.h: ./mkdtmf 5 five > five.h six.h: ./mkdtmf 6 six > six.h seven.h: ./mkdtmf 7 seven > seven.h eight.h: ./mkdtmf 8 eight > eight.h nine.h: ./mkdtmf 8 nine > nine.h zero.h: ./mkdtmf 0 zero > zero.h star.h: ./mkdtmf '*' star > star.h pound.h: ./mkdtmf '#' pound > pound.h mkdtmf: mkdtmf.o $(CC) -o mkdtmf mkdtmf.o -lm %.raw: %.wav sox $< -r 11025 -s -w -c 1 $@ rate ring.raw: ring.wav sox $< -r 11025 -s -w -c 1 $@ resample