FreeCalypso > hg > freecalypso-tools
comparison ffstools/Makefile @ 479:f2a040324509
Makefile hierarchy: CFLAGS override-ability actually works now
The original version was broken in that CFLAGS=${CFLAGS} passing was
done without quotes, which breaks as soon as there is a space in the
user-set CFLAGS. Changing it to CFLAGS="${CFLAGS}" makes it work
as originally intended.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 14 Feb 2019 04:59:23 +0000 |
parents | 90d7c360a614 |
children | 850bf712c1fc |
comparison
equal
deleted
inserted
replaced
478:6f804a5ff3bc | 479:f2a040324509 |
---|---|
5 INSTALL_PREFIX= /opt/freecalypso | 5 INSTALL_PREFIX= /opt/freecalypso |
6 | 6 |
7 all: ${SUBDIR} | 7 all: ${SUBDIR} |
8 | 8 |
9 ${SUBDIR}: FRC | 9 ${SUBDIR}: FRC |
10 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} | 10 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" |
11 | 11 |
12 clean: FRC | 12 clean: FRC |
13 rm -f a.out core errs | 13 rm -f a.out core errs |
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
15 | 15 |