view Makefile @ 270:6f28a4377a99

doc/Local-short-numbers: first draft written
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 26 Nov 2023 17:08:10 -0800
parents aab047d9efcb
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2

PROGDIR=mgw mncc mtctest rtp-mgr sip-in sip-manual-out sip-out smpp-send \
	smpp-trx-sa utils
LIBDIR=	libnumdb2 liboutrt librtpalloc libsip libutil
SUBDIR=	${PROGDIR} ${LIBDIR}

all:	${SUBDIR}

mgw:		libutil
mncc:		libnumdb2 libutil
mtctest:	libnumdb2 libutil
rtp-mgr:	libutil
sip-in:		libnumdb2 libsip libutil
sip-manual-out:	librtpalloc libsip libutil
sip-out:	libnumdb2 liboutrt libsip libutil
smpp-send:	libutil
smpp-trx-sa:	libutil
utils:		libnumdb2 librtpalloc libsip 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: