FreeCalypso > hg > fc-usbser-tools
changeset 6:d4151cef9d95
add top Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 04 Sep 2023 06:38:29 +0000 |
parents | 0dfb68c59838 |
children | b2c891299e83 |
files | Makefile |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Mon Sep 04 06:38:29 2023 +0000 @@ -0,0 +1,21 @@ +CC= gcc +CFLAGS= -O2 +SUBDIR= eeproms fteeprom + +INSTALL_PREFIX= /opt/freecalypso + +all: ${SUBDIR} + +${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 ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ + INSTALL_PREFIX=${INSTALL_PREFIX} install); done + +FRC: