comparison target-utils/Makefile @ 474:bbb4f92265d2

target-utils/Makefile: INSTALL_PREFIX= scheme implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Feb 2019 05:20:01 +0000
parents 9b7ce2023355
children a58563d16e1d
comparison
equal deleted inserted replaced
473:90d7c360a614 474:bbb4f92265d2
1 INSTPROGS= buzplayer calversion compalstage c139explore flash-boot-wa \ 1 INSTPROGS= buzplayer calversion compalstage c139explore flash-boot-wa \
2 loadagent pirexplore simtest 2 loadagent pirexplore simtest
3 ALLPROGS= ${INSTPROGS} c139-lldbg flash-boot-test helloapp tf-breakin 3 ALLPROGS= ${INSTPROGS} c139-lldbg flash-boot-test helloapp tf-breakin
4 LIBS= libbase libc libcommon libload libprintf libtiffs 4 LIBS= libbase libc libcommon libload libprintf libtiffs
5 SUBDIR= ${ALLPROGS} ${LIBS} 5 SUBDIR= ${ALLPROGS} ${LIBS}
6
7 INSTALL_PREFIX= /opt/freecalypso
6 8
7 default: ${INSTPROGS} 9 default: ${INSTPROGS}
8 all: ${ALLPROGS} 10 all: ${ALLPROGS}
9 11
10 buzplayer: libbase libc libcommon libprintf 12 buzplayer: libbase libc libcommon libprintf
19 21
20 ${SUBDIR}: FRC 22 ${SUBDIR}: FRC
21 cd $@; ${MAKE} ${MFLAGS} 23 cd $@; ${MAKE} ${MFLAGS}
22 24
23 install: FRC 25 install: FRC
24 for i in ${INSTPROGS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done 26 for i in ${INSTPROGS}; do (cd $$i; ${MAKE} ${MFLAGS} \
27 INSTDIR=${INSTALL_PREFIX}/target-bin install); done
25 28
26 clean: FRC 29 clean: FRC
27 rm -f a.out core errs 30 rm -f a.out core errs
28 for i in ${SUBDIR}; do \ 31 for i in ${SUBDIR}; do \
29 if [ -d $$i ]; then \ 32 if [ -d $$i ]; then \