2010-05-28 15:15:20 +00:00
|
|
|
include ../config-user.mk
|
2011-05-15 02:31:08 +00:00
|
|
|
PWD=$(shell pwd)
|
2010-05-28 15:15:20 +00:00
|
|
|
|
2010-06-15 11:10:46 +00:00
|
|
|
.PHONY: all clean install install-symlink deinstall uninstall mrproper
|
2010-05-28 15:15:20 +00:00
|
|
|
|
2010-05-31 17:59:31 +00:00
|
|
|
PFX=${DESTDIR}${PREFIX}
|
|
|
|
|
2011-05-25 13:43:54 +00:00
|
|
|
BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarc2 ranal2 rasc2 rsc2
|
2010-05-28 15:15:20 +00:00
|
|
|
|
|
|
|
all:
|
2010-07-15 11:34:53 +00:00
|
|
|
@for a in ${BINS} ; do (cd $$a && ${MAKE} all) || exit 1; done
|
2010-05-28 15:15:20 +00:00
|
|
|
|
|
|
|
install:
|
2010-05-31 17:59:31 +00:00
|
|
|
mkdir -p ${PFX}/bin
|
2011-07-14 23:50:42 +00:00
|
|
|
pwd
|
|
|
|
for a in ${BINS} ; do ${INSTALL_PROGRAM} $$a/$$a ${PFX}/bin/$$a ; done
|
|
|
|
#for a in ${BINS} ; do cp -f $$a/$$a ${PFX}/bin/$$a ; done
|
2010-06-28 18:30:20 +00:00
|
|
|
# rarc2
|
2011-05-25 13:43:54 +00:00
|
|
|
cp -f rarc2/rarc2 ${PFX}/bin
|
|
|
|
cp -f rarc2/rarc2-tool ${PFX}/bin
|
2010-05-29 11:24:47 +00:00
|
|
|
# shortcut
|
|
|
|
-cd ${PFX}/bin && rm -f r2 ; ln -fs radare2 r2
|
2011-05-25 13:43:54 +00:00
|
|
|
mkdir -p ${PFX}/lib/radare/bin
|
|
|
|
cp -f rsc2/scripts/* ${PFX}/lib/radare/bin
|
|
|
|
chmod +x ${PFX}/lib/radare/bin/*
|
2010-05-28 15:15:20 +00:00
|
|
|
|
2011-05-25 13:43:54 +00:00
|
|
|
symstall install-symlink:
|
2010-06-15 11:10:46 +00:00
|
|
|
mkdir -p ${PFX}/bin
|
2011-05-25 13:43:54 +00:00
|
|
|
mkdir -p ${PFX}/lib/radare/bin
|
|
|
|
chmod +x rsc2/scripts/*
|
|
|
|
cd rsc2/scripts ; for a in * ; do ln -fs ${PWD}/rsc2/scripts/$$a ${PFX}/lib/radare/bin/$$a ; done
|
2010-06-15 11:10:46 +00:00
|
|
|
for a in ${BINS} ; do ln -fs ${PWD}/$$a/$$a ${PFX}/bin/$$a ; done
|
2010-06-28 18:30:20 +00:00
|
|
|
ln -fs ${PWD}/rarc2/rarc2-tool ${PFX}/bin/rarc2-tool
|
2010-06-15 11:10:46 +00:00
|
|
|
-ln -fs ${PFX}/bin/radare2 ${PFX}/bin/r2
|
|
|
|
|
|
|
|
deinstall uninstall:
|
|
|
|
for a in ${BINS} ; do rm -f ${PFX}/bin/$$a ; done
|
2010-06-28 18:30:20 +00:00
|
|
|
rm -f ${PFX}/bin/rarc2-tool
|
2010-06-15 11:10:46 +00:00
|
|
|
-rm -f ${PFX}/bin/r2
|
|
|
|
|
2010-07-13 09:59:55 +00:00
|
|
|
clean:
|
2010-05-28 15:15:20 +00:00
|
|
|
@for a in ${BINS} ; do (cd $$a && ${MAKE} clean); done
|
2010-07-13 09:59:55 +00:00
|
|
|
|
|
|
|
mrproper:
|
|
|
|
@for a in ${BINS} ; do (cd $$a && ${MAKE} mrproper); done
|