comparison ffstools/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 cbb6ebf665fa
children 90d7c360a614
comparison
equal deleted inserted replaced
470:1d5bd9a06781 471:8f3fe2d1fda5
1 CC= gcc
2 CFLAGS= -O2
1 SUBDIR= cal2text caltools newcomp tiaud tiffs-rd tiffs-wrappers 3 SUBDIR= cal2text caltools newcomp tiaud tiffs-rd tiffs-wrappers
2 4
3 all: ${SUBDIR} 5 all: ${SUBDIR}
4 6
5 ${SUBDIR}: FRC 7 ${SUBDIR}: FRC
6 cd $@; ${MAKE} ${MFLAGS} 8 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS}
7 9
8 clean: FRC 10 clean: FRC
9 rm -f a.out core errs 11 rm -f a.out core errs
10 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 12 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
11 13