view frtest/Makefile @ 285:cfa3006a66da

gsmfr-decode-r: convert to libgsmfr2
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Apr 2024 06:04:32 +0000
parents 8d3cfa65a6c2
children 251aed72925e
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmfr-cod2std gsmfr-decode gsmfr-decode-r gsmfr-dlcap-gsmx \
	gsmfr-dlcap-parse gsmfr-encode gsmfr-encode-r gsmfr-preproc
LIBFR2=	../libgsmfr2/libgsmfr2.a
LIBPP=	../libgsmfrp/libgsmfrp.a
LIBTEST=../libtest/libtest.a
LIBDEC=	${LIBTEST} ${LIBPP}
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

gsmfr-cod2std:	cod2std.o ${LIBFR2}
	${CC} ${CFLAGS} -o $@ cod2std.o ${LIBFR2}

gsmfr-decode:	decode.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ decode.o ${LIBTEST} ${LIBFR2}

gsmfr-decode-r:	decode-r.o ${LIBTEST} ${LIBFR2}
	${CC} ${CFLAGS} -o $@ decode-r.o ${LIBTEST} ${LIBFR2}

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

gsmfr-dlcap-parse:	dlcap-parse.o tidsp.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ dlcap-parse.o tidsp.o ${LIBDEC} -lgsm

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-preproc:	preproc.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ preproc.o ${LIBDEC}

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

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