FreeCalypso > hg > freecalypso-tools
comparison uptools/Makefile @ 471:8f3fe2d1fda5
Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 12 Feb 2019 00:20:50 +0000 |
parents | b0cb465290f7 |
children | 90d7c360a614 |
comparison
equal
deleted
inserted
replaced
470:1d5bd9a06781 | 471:8f3fe2d1fda5 |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
1 PROGDIR=atcmd atinterf sms-pdu-decode | 3 PROGDIR=atcmd atinterf sms-pdu-decode |
2 LIBDIR= libcoding | 4 LIBDIR= libcoding |
3 SUBDIR= ${PROGDIR} ${LIBDIR} | 5 SUBDIR= ${PROGDIR} ${LIBDIR} |
4 | 6 |
5 all: ${SUBDIR} | 7 all: ${SUBDIR} |
6 | 8 |
7 atcmd: libcoding | 9 atcmd: libcoding |
8 sms-pdu-decode: libcoding | 10 sms-pdu-decode: libcoding |
9 | 11 |
10 ${SUBDIR}: FRC | 12 ${SUBDIR}: FRC |
11 cd $@; ${MAKE} ${MFLAGS} | 13 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} |
12 | 14 |
13 clean: FRC | 15 clean: FRC |
14 rm -f a.out core errs | 16 rm -f a.out core errs |
15 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
16 | 18 |