annotate Makefile @ 13:c53dee063cdd

libftmini/ftdi_defs.h: extract from libftdi-0.20/src/ftdi.h
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 07 Sep 2023 07:19:43 +0000
parents d4151cef9d95
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: