annotate Makefile @ 6:d4151cef9d95

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