view frtest/Makefile @ 20:93ed41fb4038

libgsmfrp/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 06:36:09 +0000
parents 7960744ba19c
children 94f18b720f1e
line wrap: on
line source

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

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

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