FreeCalypso > hg > fc-usbser-tools
annotate Makefile @ 15:e1629a7c8ae3
top Makefile: add new local libraries
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 07 Sep 2023 08:11:12 +0000 |
parents | d4151cef9d95 |
children | 2e21b551b971 |
rev | line source |
---|---|
6 | 1 CC= gcc |
2 CFLAGS= -O2 | |
15
e1629a7c8ae3
top Makefile: add new local libraries
Mychaela Falconia <falcon@freecalypso.org>
parents:
6
diff
changeset
|
3 PROGDIR=eeproms fteeprom |
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 | 6 |
7 INSTALL_PREFIX= /opt/freecalypso | |
8 | |
9 all: ${SUBDIR} | |
10 | |
11 ${SUBDIR}: FRC | |
12 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" | |
13 | |
14 clean: FRC | |
15 rm -f a.out core errs | |
16 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
17 | |
18 install: FRC | |
19 mkdir -p ${INSTALL_PREFIX} | |
15
e1629a7c8ae3
top Makefile: add new local libraries
Mychaela Falconia <falcon@freecalypso.org>
parents:
6
diff
changeset
|
20 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
6 | 21 INSTALL_PREFIX=${INSTALL_PREFIX} install); done |
22 | |
23 FRC: |