view frtest/Makefile @ 158:1e8569000049

doc/EFR-testing: document endian issues
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 15 Dec 2022 02:18:51 +0000
parents 9814041e8096
children ef3ea52a190f
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmfr-cvt-dlcap gsmfr-decode gsmfr-decode-r 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

CVT_OBJS=cvt-dlcap.o tidsp.o

all:	${PROGS}

gsmfr-cvt-dlcap:	${CVT_OBJS} ${LIBTEST}
	${CC} ${CFLAGS} -o $@ ${CVT_OBJS} ${LIBTEST}

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-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}