view Makefile @ 37:a065b4a62a8a

themwi-test-mtc: drain stdin when we receive input meant to request user disconnect
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 10 Jul 2022 00:32:38 -0800
parents 2b072ad13de6
children e57bc4c885a7
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2

PROGDIR=mgw mncc mtctest utils
LIBDIR=	libnumdb libutil
SUBDIR=	${PROGDIR} ${LIBDIR}

all:	${SUBDIR}

mgw:		libutil
mncc:		libnumdb libutil
mtctest:	libnumdb libutil
utils:		libnumdb libutil

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

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

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

FRC: