2010-05-28 15:15:20 +00:00
|
|
|
include ../config-user.mk
|
|
|
|
|
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-06-15 11:10:46 +00:00
|
|
|
BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2
|
2010-05-28 15:15:20 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
@for a in ${BINS} ; do (cd $$a && ${MAKE} all); done
|
|
|
|
|
|
|
|
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-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
|
|
|
|
for a in ${BINS} ; do ln -fs ${PWD}/$$a/$$a ${PFX}/bin/$$a ; done
|
|
|
|
-ln -fs ${PFX}/bin/radare2 ${PFX}/bin/r2
|
|
|
|
|
|
|
|
deinstall uninstall:
|
|
|
|
for a in ${BINS} ; do rm -f ${PFX}/bin/$$a ; done
|
|
|
|
-rm -f ${PFX}/bin/r2
|
|
|
|
|
2010-06-15 12:10:42 +00:00
|
|
|
clean mrproper:
|
2010-05-28 15:15:20 +00:00
|
|
|
@for a in ${BINS} ; do (cd $$a && ${MAKE} clean); done
|