view amrefr/Makefile @ 542:f2d0f2f15d5f

libgsmefr: add wrapper for TW-TS-001 RTP input
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 28 Sep 2024 06:38:08 +0000
parents cb1d1ea7f2c5
children
line wrap: on
line source

PROGS=	amrefr-decode-r amrefr-encode-r amrefr-tseq-dec amrefr-tseq-enc
LIBEFR=	../libgsmefr/libgsmefr.a
LIBAMR=	../libtwamr/libtwamr.a
LIBTEST=../libtest/libtest.a
LIBS=	${LIBEFR} ${LIBAMR}
LIBST=	${LIBEFR} ${LIBAMR} ${LIBTEST}

include ../config.defs

all:	${PROGS}

amrefr-decode-r:	decode-r.o ${LIBST}
	${CC} ${CFLAGS} -o $@ $^

amrefr-encode-r:	encode-r.o ${LIBST}
	${CC} ${CFLAGS} -o $@ $^

amrefr-tseq-dec:	tseq-dec.o tseq-bit-rd.o tseq-pcm-out.o ${LIBS}
	${CC} ${CFLAGS} -o $@ $^

amrefr-tseq-enc:	tseq-enc.o tseq-enc-common.o ${LIBS}
	${CC} ${CFLAGS} -o $@ $^

tseq-bit-rd.o:	../efrtest/etsi-bit-rd.c
	${CC} ${CFLAGS} -c -o $@ $<

tseq-enc-common.o:	../efrtest/etsi-enc-common.c
	${CC} ${CFLAGS} -c -o $@ $<

tseq-pcm-out.o:	../efrtest/etsi-pcm-out.c
	${CC} ${CFLAGS} -c -o $@ $<

install:
	mkdir -p ${DESTDIR}${bindir}
	install -c ${PROGS} ${DESTDIR}${bindir}

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