comparison ffstools/Makefile @ 473:90d7c360a614

main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Feb 2019 05:06:15 +0000
parents 8f3fe2d1fda5
children f2a040324509
comparison
equal deleted inserted replaced
472:368ffb8a08e5 473:90d7c360a614
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 SUBDIR= cal2text caltools newcomp tiaud tiffs-rd tiffs-wrappers 3 SUBDIR= cal2text caltools newcomp tiaud tiffs-rd tiffs-wrappers
4
5 INSTALL_PREFIX= /opt/freecalypso
4 6
5 all: ${SUBDIR} 7 all: ${SUBDIR}
6 8
7 ${SUBDIR}: FRC 9 ${SUBDIR}: FRC
8 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} 10 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS}
10 clean: FRC 12 clean: FRC
11 rm -f a.out core errs 13 rm -f a.out core errs
12 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
13 15
14 install: FRC 16 install: FRC
15 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done 17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
18 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
16 19
17 FRC: 20 FRC: