radare2/binr/Makefile
pancake 259d14940e * Implement R_SEARCH_DELTAKEY
- Accessible with /d search command
* Code cleanup in TinyPE
* Implement rasc2 -o
2011-07-26 09:34:10 +02:00

50 lines
1.2 KiB
Makefile

include ../config-user.mk
PWD=$(shell pwd)
.PHONY: all clean install install-symlink deinstall uninstall mrproper
PFX=${DESTDIR}/${PREFIX}
BFX=${DESTDIR}/${BINDIR}
LFX=${DESTDIR}/${LIBDIR}
BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarc2 ranal2 rasc2 rarun2
#rsc2
all:
@for a in ${BINS} ; do (cd $$a && ${MAKE} all) || exit 1; done
install:
mkdir -p ${BFX}
pwd
for a in ${BINS} ; do ${INSTALL_PROGRAM} $$a/$$a ${BFX}/$$a ; done
cp -f rarc2/rarc2 rarc2/rarc2-tool ${BFX}
# shortcut
-cd ${BFX} && rm -f r2 ; ln -fs radare2 r2
install-rsc2:
mkdir -p ${LFX}/radare2/bin
cp -f rsc2/scripts/* ${LFX}/radare2/bin
chmod +x ${LFX}/radare2/bin/*
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
symstall install-symlink:
mkdir -p ${BFX}
for a in ${BINS} ; do ln -fs ${PWD}/$$a/$$a ${BFX}/$$a ; done
ln -fs ${PWD}/rarc2/rarc2-tool ${BFX}/rarc2-tool
-ln -fs ${PFX}/bin/radare2 ${BFX}/r2
deinstall uninstall:
for a in ${BINS} ; do rm -f ${BFX}/$$a ; done
rm -f ${BFX}/rarc2-tool
-rm -f ${BFX}/r2
clean:
@for a in ${BINS} ; do (cd $$a && ${MAKE} clean); done
mrproper:
@for a in ${BINS} ; do (cd $$a && ${MAKE} mrproper); done