view 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 a2065e7d68bc
children 19f1aa01ea10
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2

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

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

all:	${SUBDIR}

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

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"

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

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

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

FRC: