# HG changeset patch # User Mychaela Falconia # Date 1693809509 0 # Node ID d4151cef9d9572776482c6fda1c4db68319b511f # Parent 0dfb68c598385b94b6ec703605015a8cad1d6744 add top Makefile diff -r 0dfb68c59838 -r d4151cef9d95 Makefile --- /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: