2010-05-28 15:15:20 +00:00
|
|
|
include ../config-user.mk
|
2011-04-02 18:03:00 +00:00
|
|
|
PWD=`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}
|
|
|
|
|
2010-10-04 17:43:40 +00:00
|
|
|
BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarc2 ranal2 rasc2
|
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
|
|
|
|
for a in ${BINS} ; do ${INSTALL_PROGRAM} $$a/$$a ${PFX}/bin ; done
|
2010-06-28 18:30:20 +00:00
|
|
|
# rarc2
|
|
|
|
cp rarc2/rarc2 ${PFX}/bin
|
|
|
|
cp rarc2/rarc2-tool ${PFX}/bin
|
2010-05-29 11:24:47 +00:00
|
|
|
# shortcut
|
|
|
|
-cd ${PFX}/bin && rm -f r2 ; ln -fs radare2 r2
|
2010-05-28 15:15:20 +00:00
|
|
|
|
2010-06-15 11:10:46 +00:00
|
|
|
install-symlink:
|
|
|
|
mkdir -p ${PFX}/bin
|
2011-04-02 18:03:00 +00:00
|
|
|
echo ${PWD}
|
|
|
|
echo ${PFX}
|
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
|