view Makefile @ 266:8821ffaa93a5

libgsmfr2: integrate decoder main function from libgsm
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Apr 2024 00:36:16 +0000
parents 77b7b7b7b384
children 356d9675701d
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2

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

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

all:	${SUBDIR}

amrconv:	libtest
efrtest:	libgsmefr libtest
frtest:		libgsmfrp libtest
miscutil:	libgsmefr 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: