view Makefile @ 193:cf39a90f5196

libgsmefr/dtx_enc.c: perf opt
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Jan 2023 03:22:35 +0000
parents b092a510141e
children 34f8549ff0b1
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2

SUBDIR_LIBPROD=	libgsmefr libgsmfrp
SUBDIR_UTILS=	amrconv efrtest frtest miscutil pcap
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: