view miscutil/Makefile @ 101:d86f866489e9

gsm-amr2efr utility written
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Nov 2022 05:15:39 +0000
parents edd2e20e7090
children 0123ca1f1402
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsm-amr2efr gsmrec-dump
LIBEFR=	../libgsmefr/libgsmefr.a
LIBTEST=../libtest/libtest.a
INSTBIN=/opt/freecalypso/bin

AMR2EFR_OBJS=	amr122bits.o bitmanip.o amr2efr.o

all:	${PROGS}

gsm-amr2efr:	${AMR2EFR_OBJS}
	${CC} ${CFLAGS} -o $@ ${AMR2EFR_OBJS}

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

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

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