view amrefr/Makefile @ 436:e80632ccb745

simplify test program Makefiles
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 08 May 2024 05:32:27 +0000
parents ba5031723ab6
children 3eadaef8b28f
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	amrefr-tseq-enc
LIBEFR=	../libgsmefr/libgsmefr.a
LIBAMR=	../libtwamr/libtwamr.a
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

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

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

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

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