view amrtest/Makefile @ 444:fe4983b05230

amrtest: implement twamr-decode
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 May 2024 23:35:25 +0000
parents 526a7f0e027d
children 30cff6b60890
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	twamr-decode twamr-encode 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-encode:	encode.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}