comparison 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 PROGDIR=ffstools loadtools miscutil ringtools rvinterf uptools 3 PROGDIR=ffstools loadtools miscutil ringtools rvinterf uptools
4 LIBDIR= librftab libserial 4 LIBDIR= librftab libserial
5 SUBDIR= ${PROGDIR} ${LIBDIR} 5 SUBDIR= ${PROGDIR} ${LIBDIR}
6
7 INSTALL_PREFIX= /opt/freecalypso
6 8
7 all: ${SUBDIR} 9 all: ${SUBDIR}
8 10
9 ffstools: librftab 11 ffstools: librftab
10 loadtools: libserial 12 loadtools: libserial
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
22 install: FRC 24 install: FRC
23 mkdir -p /opt/freecalypso 25 mkdir -p ${INSTALL_PREFIX}
24 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
25 if [ -d target-bin ]; then \ 28 if [ -d target-bin ]; then \
26 mkdir -p /opt/freecalypso/target-bin; \ 29 mkdir -p ${INSTALL_PREFIX}/target-bin; \
27 install -c -m 644 target-bin/* /opt/freecalypso/target-bin; \ 30 install -c -m 644 target-bin/* ${INSTALL_PREFIX}/target-bin; \
28 fi 31 fi
29 32
30 FRC: 33 FRC: