view Makefile @ 303:4034c2b06ec8

doc/FR1-Rx-DTX: update for libgsmfr2 and the new landscape
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 15 Apr 2024 22:07:00 +0000
parents da533081fb95
children 947693c879a4
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2

SUBDIR_LIBPROD=	libgsmefr libgsmfr2 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:		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: