comparison uptools/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
comparison
equal deleted inserted replaced
478:6f804a5ff3bc 479:f2a040324509
10 10
11 atcmd: libcoding 11 atcmd: libcoding
12 sms-pdu-decode: libcoding 12 sms-pdu-decode: libcoding
13 13
14 ${SUBDIR}: FRC 14 ${SUBDIR}: FRC
15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} 15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
16 16
17 clean: FRC 17 clean: FRC
18 rm -f a.out core errs 18 rm -f a.out core errs
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
20 20