view Makefile @ 218:f376ba028311

fc-simtool opl-erase and opl-write implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Mar 2021 18:42:57 +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: