view amrtest/Makefile @ 443:526a7f0e027d

amrtest: implement twamr-encode
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 May 2024 21:00:33 +0000
parents e80632ccb745
children fe4983b05230
line wrap: on
line source

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

all:	${PROGS}

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}