view Makefile @ 13:b8d8f8a3cdb7

scripts: wrappers for network-side SMS-DELIVER PDU generation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Aug 2023 05:11:21 +0000
parents 003660a57f99
children b014abaf0898
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGDIR=enc-text gen-pdu
LIBDIR=	libcoding
SUBDIR=	${PROGDIR} ${LIBDIR}

INSTALL_PREFIX=	/opt/freecalypso

all:	${SUBDIR}

enc-text:	libcoding
gen-pdu:	libcoding

${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
	mkdir -p ${INSTALL_PREFIX}
	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
		INSTALL_PREFIX=${INSTALL_PREFIX} install); done

FRC: