view frtest/Makefile @ 165:ef3ea52a190f

rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx for consistency with EFR version
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Dec 2022 04:09:03 +0000
parents 9814041e8096
children 80c93ef82a51
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmfr-decode gsmfr-decode-r gsmfr-dlcap-gsmx gsmfr-encode \
	gsmfr-encode-r gsmfr-hand-test gsmfr-max-out gsmfr-preproc
LIBPP=	../libgsmfrp/libgsmfrp.a
LIBTEST=../libtest/libtest.a
LIBDEC=	${LIBTEST} ${LIBPP}
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

gsmfr-decode:	decode.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ decode.o ${LIBDEC} -lgsm

gsmfr-decode-r:	decode-r.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ decode-r.o ${LIBDEC} -lgsm

gsmfr-dlcap-gsmx:	dlcap-gsmx.o tidsp.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ dlcap-gsmx.o tidsp.o ${LIBTEST}

gsmfr-encode:	encode.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} -lgsm

gsmfr-encode-r:	encode-r.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ encode-r.o ${LIBTEST} -lgsm

gsmfr-hand-test:	hand-test.o
	${CC} ${CFLAGS} -o $@ hand-test.o -lgsm

gsmfr-max-out:	max-out.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ max-out.o ${LIBDEC} -lgsm

gsmfr-preproc:	preproc.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ preproc.o ${LIBDEC}

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

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