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
|
|
|
|
2011-07-19 09:25:11 +00:00
|
|
|
PFX=${DESTDIR}/${PREFIX}
|
|
|
|
BFX=${DESTDIR}/${BINDIR}
|
|
|
|
LFX=${DESTDIR}/${LIBDIR}
|
2010-05-31 17:59:31 +00:00
|
|
|
|
2012-08-14 09:47:50 +00:00
|
|
|
BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarun2 ragg2
|
2011-07-20 17:26:07 +00:00
|
|
|
#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:
|
2011-07-19 09:25:11 +00:00
|
|
|
mkdir -p ${BFX}
|
2011-07-14 23:50:42 +00:00
|
|
|
pwd
|
2011-07-19 09:25:11 +00:00
|
|
|
for a in ${BINS} ; do ${INSTALL_PROGRAM} $$a/$$a ${BFX}/$$a ; done
|
2011-11-27 01:04:26 +00:00
|
|
|
${INSTALL_SCRIPT} ragg2/ragg2-cc ${BFX}/ragg2-cc
|
2011-08-08 00:07:26 +00:00
|
|
|
#cp -f rarc2/rarc2 rarc2/rarc2-tool ${BFX}
|
2010-05-29 11:24:47 +00:00
|
|
|
# shortcut
|
2011-07-19 09:25:11 +00:00
|
|
|
-cd ${BFX} && rm -f r2 ; ln -fs radare2 r2
|
2011-07-20 17:26:07 +00:00
|
|
|
|
|
|
|
install-rsc2:
|
2011-07-19 09:25:11 +00:00
|
|
|
mkdir -p ${LFX}/radare2/bin
|
|
|
|
cp -f rsc2/scripts/* ${LFX}/radare2/bin
|
|
|
|
chmod +x ${LFX}/radare2/bin/*
|
2010-05-28 15:15:20 +00:00
|
|
|
|
2011-07-20 17:26:07 +00:00
|
|
|
symstall-rsc2:
|
|
|
|
mkdir -p ${LFX}/radare2/bin
|
|
|
|
chmod +x rsc2/scripts/*
|
|
|
|
cd rsc2/scripts ; for a in * ; do ln -fs ${PWD}/rsc2/scripts/$$a ${LFX}/radare2/bin/$$a ; done
|
|
|
|
|
2011-05-25 13:43:54 +00:00
|
|
|
symstall install-symlink:
|
2011-07-19 09:25:11 +00:00
|
|
|
mkdir -p ${BFX}
|
|
|
|
for a in ${BINS} ; do ln -fs ${PWD}/$$a/$$a ${BFX}/$$a ; done
|
2011-11-26 04:14:03 +00:00
|
|
|
ln -fs ${PWD}/ragg2/ragg2-cc ${BFX}/ragg2-cc
|
2011-07-19 09:25:11 +00:00
|
|
|
-ln -fs ${PFX}/bin/radare2 ${BFX}/r2
|
2010-06-15 11:10:46 +00:00
|
|
|
|
|
|
|
deinstall uninstall:
|
2011-07-19 09:25:11 +00:00
|
|
|
for a in ${BINS} ; do rm -f ${BFX}/$$a ; done
|
2011-08-08 00:07:26 +00:00
|
|
|
#rm -f ${BFX}/rarc2-tool
|
2011-07-19 09:25:11 +00:00
|
|
|
-rm -f ${BFX}/r2
|
2010-06-15 11:10:46 +00:00
|
|
|
|
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
|