view Makefile @ 21:9d7d2fdc733b

new shell scripts c155-gen-fc-{ffs-img,script}
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 11 Jun 2023 00:28:10 +0000
parents 09c18549921b
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
SUBDIR=	bootmatch bootutil

INSTALL_PREFIX=	/opt/freecalypso

all:	${SUBDIR}

bootutil:	bootmatch

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"

clean: FRC
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done

install: FRC
	mkdir -p ${INSTALL_PREFIX}/bin
	install -c -m 755 sh/* ${INSTALL_PREFIX}/bin
	mkdir -p ${INSTALL_PREFIX}/scripts
	install -c -m 644 cmd/* ${INSTALL_PREFIX}/scripts
	mkdir -p ${INSTALL_PREFIX}/target-bin
	install -c -m 644 target-bin/* ${INSTALL_PREFIX}/target-bin
	cd bootutil; ${MAKE} ${MFLAGS} INSTALL_PREFIX=${INSTALL_PREFIX} install

FRC: