view amrtest/Makefile @ 450:16bc3036cc84

LICENSE: acknowledge libtwamr origin from ETSI/3GPP
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 May 2024 01:48:20 +0000
parents e2f824ffd08a
children 19f1aa01ea10
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	twamr-decode twamr-decode-r twamr-encode twamr-encode-r twamr-tseq-dec \
	twamr-tseq-enc
LIBAMR=	../libtwamr/libtwamr.a
LIBTEST=../libtest/libtest.a
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

twamr-decode:	decode.o ${LIBAMR} ${LIBTEST}
	${CC} ${CFLAGS} -o $@ $^

twamr-decode-r:	decode-r.o ${LIBAMR} ${LIBTEST}
	${CC} ${CFLAGS} -o $@ $^

twamr-encode:	encode.o mode_file.o mode_kw.o ${LIBAMR} ${LIBTEST}
	${CC} ${CFLAGS} -o $@ $^

twamr-encode-r:	encode-r.o mode_file.o mode_kw.o ${LIBAMR} ${LIBTEST}
	${CC} ${CFLAGS} -o $@ $^

twamr-tseq-dec:	tseq-dec.o ${LIBAMR}
	${CC} ${CFLAGS} -o $@ $^

twamr-tseq-enc:	mode_file.o mode_kw.o tseq-enc.o ${LIBAMR}
	${CC} ${CFLAGS} -o $@ $^

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

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