annotate Makefile @ 39:b9ecfa54fe2b

fc-duart28-conf: replace find and check-eeprom with single show command The original design with separate find and check-eeprom commands was driven by the assumption that we had to bump off the ftdi_sio driver in order to read the EEPROM, while a USB device tree check could be done non-invasively. However, now that we know that we can read the EEPROM non-invasively too, we can simplify the tool with a single show command.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 10 Sep 2023 19:21:20 +0000
parents c4b4ebaa2117
children 61cdcf2eb17b
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
28
c4b4ebaa2117 top Makefile: add duart28
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
3 PROGDIR=duart28 eeproms fteeprom
15
e1629a7c8ae3 top Makefile: add new local libraries
Mychaela Falconia <falcon@freecalypso.org>
parents: 6
diff changeset
4 LIBDIR= libftmini libuwrap
e1629a7c8ae3 top Makefile: add new local libraries
Mychaela Falconia <falcon@freecalypso.org>
parents: 6
diff changeset
5 SUBDIR= ${PROGDIR} ${LIBDIR}
6
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 INSTALL_PREFIX= /opt/freecalypso
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 all: ${SUBDIR}
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
28
c4b4ebaa2117 top Makefile: add duart28
Mychaela Falconia <falcon@freecalypso.org>
parents: 17
diff changeset
11 duart28: libftmini libuwrap
17
2e21b551b971 top Makefile: fteeprom now depends on local libs
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
12 fteeprom: libftmini libuwrap
2e21b551b971 top Makefile: fteeprom now depends on local libs
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
13
6
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 ${SUBDIR}: FRC
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 clean: FRC
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 rm -f a.out core errs
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); 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 install: FRC
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 mkdir -p ${INSTALL_PREFIX}
15
e1629a7c8ae3 top Makefile: add new local libraries
Mychaela Falconia <falcon@freecalypso.org>
parents: 6
diff changeset
23 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
6
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
d4151cef9d95 add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 FRC: