view frtest/Makefile @ 27:896ce7f1d271

frtest: cn-debug is now gsmfr-max-out
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 23:04:27 +0000
parents 40fcd89d8823
children d21c68b8f16c
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmfr-cvt-dlcap gsmfr-decode gsmfr-encode 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}
	${CC} ${CFLAGS} -o $@ ${CVT_OBJS}

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

gsmfr-encode:	encode.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} -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}