FreeCalypso > hg > freecalypso-tools
comparison 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 | 070b8c8f9be5 |
comparison
equal
deleted
inserted
replaced
478:6f804a5ff3bc | 479:f2a040324509 |
---|---|
13 miscutil: libserial | 13 miscutil: libserial |
14 rvinterf: librftab libserial | 14 rvinterf: librftab libserial |
15 uptools: libserial | 15 uptools: libserial |
16 | 16 |
17 ${SUBDIR}: FRC | 17 ${SUBDIR}: FRC |
18 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} | 18 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" |
19 | 19 |
20 clean: FRC | 20 clean: FRC |
21 rm -f a.out core errs | 21 rm -f a.out core errs |
22 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 22 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
23 | 23 |