view miscutil/Makefile @ 303:4034c2b06ec8

doc/FR1-Rx-DTX: update for libgsmfr2 and the new landscape
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 15 Apr 2024 22:07:00 +0000
parents 3816ba89a5a0
children 19f1aa01ea10
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmrec-dump pcm16-check13 pcm16-raw2wav pcm16-to-alaw pcm16-to-ulaw \
	pcm16-wav2raw pcm8-to-pcm16
LIBEFR=	../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.a
LIBTEST=../libtest/libtest.a
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

gsmrec-dump:	gsmrec-dump.o ${LIBTEST} ${LIBEFR}
	${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR}

pcm16-check13:	pcm16-check13.c
	${CC} ${CFLAGS} -o $@ $@.c

pcm16-raw2wav:	raw2wav.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST}

pcm16-to-alaw:	pcm16-to-alaw.c
	${CC} ${CFLAGS} -o $@ $@.c

pcm16-to-ulaw:	pcm16-to-ulaw.c
	${CC} ${CFLAGS} -o $@ $@.c

pcm16-wav2raw:	wav2raw.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST}

pcm8-to-pcm16:	pcm8-to-pcm16.c
	${CC} ${CFLAGS} -o $@ $@.c

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f *.o *.out ${PROGS}