comparison miscutil/Makefile @ 219:dc52c3857bf7

miscutil: new program pcm16-to-alaw
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 22 Apr 2023 20:34:49 +0000
parents b092a510141e
children c4c45148cde1
comparison
equal deleted inserted replaced
218:f4f68c652e98 219:dc52c3857bf7
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= gsmrec-dump pcm16-raw2wav pcm16-wav2raw 3 PROGS= gsmrec-dump pcm16-raw2wav pcm16-to-alaw 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}
11 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR} -lgsm 11 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR} -lgsm
12 12
13 pcm16-raw2wav: raw2wav.o ${LIBTEST} 13 pcm16-raw2wav: raw2wav.o ${LIBTEST}
14 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST} 14 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST}
15 15
16 pcm16-to-alaw: pcm16-to-alaw.c
17 ${CC} ${CFLAGS} -o $@ $@.c
18
16 pcm16-wav2raw: wav2raw.o ${LIBTEST} 19 pcm16-wav2raw: wav2raw.o ${LIBTEST}
17 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST} 20 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST}
18 21
19 install: 22 install:
20 mkdir -p ${INSTBIN} 23 mkdir -p ${INSTBIN}