comparison miscutil/Makefile @ 220:c4c45148cde1

miscutil: new program pcm16-to-ulaw
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 22 Apr 2023 20:57:11 +0000
parents dc52c3857bf7
children 6555dae764b3
comparison
equal deleted inserted replaced
219:dc52c3857bf7 220:c4c45148cde1
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= gsmrec-dump pcm16-raw2wav pcm16-to-alaw pcm16-wav2raw 3 PROGS= gsmrec-dump pcm16-raw2wav pcm16-to-alaw pcm16-to-ulaw pcm16-wav2raw
4 LIBEFR= ../libgsmefr/libgsmefr.a 4 LIBEFR= ../libgsmefr/libgsmefr.a
5 LIBTEST=../libtest/libtest.a 5 LIBTEST=../libtest/libtest.a
6 INSTBIN=/opt/freecalypso/bin 6 INSTBIN=/opt/freecalypso/bin
7 7
8 all: ${PROGS} 8 all: ${PROGS}
14 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST} 14 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST}
15 15
16 pcm16-to-alaw: pcm16-to-alaw.c 16 pcm16-to-alaw: pcm16-to-alaw.c
17 ${CC} ${CFLAGS} -o $@ $@.c 17 ${CC} ${CFLAGS} -o $@ $@.c
18 18
19 pcm16-to-ulaw: pcm16-to-ulaw.c
20 ${CC} ${CFLAGS} -o $@ $@.c
21
19 pcm16-wav2raw: wav2raw.o ${LIBTEST} 22 pcm16-wav2raw: wav2raw.o ${LIBTEST}
20 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST} 23 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST}
21 24
22 install: 25 install:
23 mkdir -p ${INSTBIN} 26 mkdir -p ${INSTBIN}