view Makefile @ 477:4c9222d95647

libtwamr encoder: always emit frame->mode = mode; In the original implementation of amr_encode_frame(), the 'mode' member of the output struct was set to 0xFF if the output frame type is TX_NO_DATA. This design was made to mimic the mode field (16-bit word) being set to 0xFFFF (or -1) in 3GPP test sequence format - but nothing actually depends on this struct member being set in any way, and amr_frame_to_tseq() generates the needed 0xFFFF on its own, based on frame->type being equal to TX_NO_DATA. It is simpler and more efficient to always set frame->mode to the actual encoding mode in amr_encode_frame(), and this new behavior has already been documented in doc/AMR-library-API description in anticipation of the present change.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 18 May 2024 22:30:42 +0000
parents a53225b44ea5
children a1599eaf51f9
line wrap: on
line source

SUBDIR_LIBPROD=	libgsmefr libgsmfr2 libtwamr
SUBDIR_UTILS=	amrconv amrefr amrtest efrtest frtest miscutil
SUBDIR_INT=	dev libtest

SUBDIR=	${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT}
SUBDIR_INST=	${SUBDIR_LIBPROD} ${SUBDIR_UTILS}
DESTDIR=

all:	${SUBDIR}

amrconv:	libtest
amrefr:		libgsmefr libtest libtwamr
amrtest:	libtest libtwamr
efrtest:	libgsmefr libtest
frtest:		libgsmfr2 libtest
miscutil:	libgsmefr libgsmfr2 libtest

${SUBDIR}: FRC config.defs
	cd $@; ${MAKE} ${MFLAGS}

config.defs:
	@echo 'You must run ./configure before make'
	@false

install:	FRC
	for i in ${SUBDIR_INST}; do (cd $$i; ${MAKE} ${MFLAGS} \
		DESTDIR=${DESTDIR} install); done

# The following two subset install targets are only for experts;
# if you are not sure why they are needed, you *don't* need them!

install-lib:	FRC
	for i in ${SUBDIR_LIBPROD}; do (cd $$i; ${MAKE} ${MFLAGS} \
		DESTDIR=${DESTDIR} install); done

install-utils:	FRC
	for i in ${SUBDIR_UTILS}; do (cd $$i; ${MAKE} ${MFLAGS} \
		DESTDIR=${DESTDIR} install); done

clean: FRC
	rm -f a.out core errs
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done

FRC: