FreeCalypso > hg > freecalypso-tools
comparison 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 |
comparison
equal
deleted
inserted
replaced
470:1d5bd9a06781 | 471:8f3fe2d1fda5 |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
1 PROGDIR=ffstools loadtools miscutil ringtools rvinterf uptools | 3 PROGDIR=ffstools loadtools miscutil ringtools rvinterf uptools |
2 LIBDIR= librftab libserial | 4 LIBDIR= librftab libserial |
3 SUBDIR= ${PROGDIR} ${LIBDIR} | 5 SUBDIR= ${PROGDIR} ${LIBDIR} |
4 | 6 |
5 all: ${SUBDIR} | 7 all: ${SUBDIR} |
9 miscutil: libserial | 11 miscutil: libserial |
10 rvinterf: librftab libserial | 12 rvinterf: librftab libserial |
11 uptools: libserial | 13 uptools: libserial |
12 | 14 |
13 ${SUBDIR}: FRC | 15 ${SUBDIR}: FRC |
14 cd $@; ${MAKE} ${MFLAGS} | 16 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} |
15 | 17 |
16 clean: FRC | 18 clean: FRC |
17 rm -f a.out core errs | 19 rm -f a.out core errs |
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 20 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
19 | 21 |