view Makefile @ 213:50bdc48e7487

libutil: gsm7_pack.c brought over from FC uptools
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Mar 2021 07:40:33 +0000
parents 123dc7370581
children cac52723c02c
line wrap: on
line source

PROGDIR=misc offline simtool uicc
LIBDIR=	libcommon libutil
SUBDIR=	${PROGDIR} ${LIBDIR}

INSTALL_PREFIX=	/opt/freecalypso

all:	${SUBDIR}

misc:		libcommon
offline:	libutil
simtool:	libcommon libutil
uicc:		libcommon libutil

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS}

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
	mkdir -p ${INSTALL_PREFIX}/sim-scripts
	install -c -m 644 scripts/* ${INSTALL_PREFIX}/sim-scripts

FRC: