FreeCalypso > hg > freecalypso-tools
comparison rvinterf/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 | 67d683a87b1d |
children | 90d7c360a614 |
comparison
equal
deleted
inserted
replaced
470:1d5bd9a06781 | 471:8f3fe2d1fda5 |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
1 PROGDIR=asyncshell ctracedec etmsync lowlevel rvtat tmsh | 3 PROGDIR=asyncshell ctracedec etmsync lowlevel rvtat tmsh |
2 LIBDIR= libasync libg23 libinterf | 4 LIBDIR= libasync libg23 libinterf |
3 SUBDIR= ${PROGDIR} ${LIBDIR} | 5 SUBDIR= ${PROGDIR} ${LIBDIR} |
4 | 6 |
5 INCLUDE_INSTALL_DIR= /opt/freecalypso/include/rvinterf | 7 INCLUDE_INSTALL_DIR= /opt/freecalypso/include/rvinterf |
11 lowlevel: libg23 | 13 lowlevel: libg23 |
12 rvtat: libinterf | 14 rvtat: libinterf |
13 tmsh: libasync libinterf | 15 tmsh: libasync libinterf |
14 | 16 |
15 ${SUBDIR}: FRC | 17 ${SUBDIR}: FRC |
16 cd $@; ${MAKE} ${MFLAGS} | 18 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS} |
17 | 19 |
18 clean: FRC | 20 clean: FRC |
19 rm -f a.out core errs | 21 rm -f a.out core errs |
20 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 22 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
21 | 23 |