diff 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
line wrap: on
line diff
--- a/uptools/Makefile	Tue Feb 12 00:00:18 2019 +0000
+++ b/uptools/Makefile	Tue Feb 12 00:20:50 2019 +0000
@@ -1,3 +1,5 @@
+CC=	gcc
+CFLAGS=	-O2
 PROGDIR=atcmd atinterf sms-pdu-decode
 LIBDIR=	libcoding
 SUBDIR=	${PROGDIR} ${LIBDIR}
@@ -8,7 +10,7 @@
 sms-pdu-decode:	libcoding
 
 ${SUBDIR}: FRC
-	cd $@; ${MAKE} ${MFLAGS}
+	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS}
 
 clean: FRC
 	rm -f a.out core errs