comparison rvinterf/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
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGDIR=asyncshell ctracedec etmsync lowlevel rvtat tmsh 3 PROGDIR=asyncshell ctracedec etmsync lowlevel rvtat tmsh
4 LIBDIR= libasync libg23 libinterf 4 LIBDIR= libasync libg23 libinterf
5 SUBDIR= ${PROGDIR} ${LIBDIR} 5 SUBDIR= ${PROGDIR} ${LIBDIR}
6 6
7 INCLUDE_INSTALL_DIR= /opt/freecalypso/include/rvinterf 7 INSTALL_PREFIX= /opt/freecalypso
8 INCLUDE_INSTALL_DIR= ${INSTALL_PREFIX}/include/rvinterf
8 9
9 all: ${SUBDIR} 10 all: ${SUBDIR}
10 11
11 asyncshell: libasync libg23 libinterf 12 asyncshell: libasync libg23 libinterf
12 etmsync: libinterf 13 etmsync: libinterf
20 clean: FRC 21 clean: FRC
21 rm -f a.out core errs 22 rm -f a.out core errs
22 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 23 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
23 24
24 install: FRC 25 install: FRC
25 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done 26 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
27 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
26 mkdir -p ${INCLUDE_INSTALL_DIR} 28 mkdir -p ${INCLUDE_INSTALL_DIR}
27 install -c -m 644 include/* ${INCLUDE_INSTALL_DIR} 29 install -c -m 644 include/* ${INCLUDE_INSTALL_DIR}
28 30
29 FRC: 31 FRC: