diff 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 940ab98efefd
children 90d7c360a614
line wrap: on
line diff
--- a/Makefile	Tue Feb 12 00:00:18 2019 +0000
+++ b/Makefile	Tue Feb 12 00:20:50 2019 +0000
@@ -1,3 +1,5 @@
+CC=	gcc
+CFLAGS=	-O2
 PROGDIR=ffstools loadtools miscutil ringtools rvinterf uptools
 LIBDIR=	librftab libserial
 SUBDIR=	${PROGDIR} ${LIBDIR}
@@ -11,7 +13,7 @@
 uptools:	libserial
 
 ${SUBDIR}: FRC
-	cd $@; ${MAKE} ${MFLAGS}
+	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS}
 
 clean: FRC
 	rm -f a.out core errs