comparison Makefile @ 6:d4151cef9d95

add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 04 Sep 2023 06:38:29 +0000
parents
children e1629a7c8ae3
comparison
equal deleted inserted replaced
5:0dfb68c59838 6:d4151cef9d95
1 CC= gcc
2 CFLAGS= -O2
3 SUBDIR= eeproms fteeprom
4
5 INSTALL_PREFIX= /opt/freecalypso
6
7 all: ${SUBDIR}
8
9 ${SUBDIR}: FRC
10 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
11
12 clean: FRC
13 rm -f a.out core errs
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
15
16 install: FRC
17 mkdir -p ${INSTALL_PREFIX}
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
19 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
20
21 FRC: