view Makefile @ 196:c804f2f8c138

doc/GrcardSIM2-WEKI-file article written
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Mar 2021 01:56:02 +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: