mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
4db5cded34
* Display TODO message in r2 -L * Implement rax2 -s - and rax2 - * Honor dbg->tid in many places * Implement basic stuff for dbg->reason - Only w32 and *nix atm - Not yet displayed or used - Added many new reason types in enum * Fix w32 register map * Handle attach:// in io_w32dbg plugin * Implement w32 process and thread list - You can now select the thread > dp # list pids > dp=1424 # attach to pid > dpt # list threads > dpt=580 # select thread * Added dummy code to list windows
106 lines
3.0 KiB
Makefile
106 lines
3.0 KiB
Makefile
include config-user.mk
|
|
include global.mk
|
|
|
|
REMOTE=radare.org:/srv/http/radareorg/get/beta
|
|
|
|
all: plugins.cfg
|
|
${MAKE} libr
|
|
${MAKE} binr
|
|
|
|
plugins.cfg:
|
|
./configure-plugins
|
|
|
|
libr:
|
|
cd libr && ${MAKE} all
|
|
|
|
binr:
|
|
cd binr && ${MAKE} all
|
|
|
|
w32:
|
|
make clean
|
|
# TODO: add support for debian
|
|
./configure --without-ssl --without-gmp --with-compiler=i486-mingw32-gcc --with-ostype=windows --host=i486-unknown-windows
|
|
make
|
|
|
|
w32dist:
|
|
rm -rf radare2-w32-${VERSION} w32dist
|
|
mkdir w32dist
|
|
for a in `find binr libr | grep -e exe$$ -e dll$$`; do cp $$a w32dist ; done
|
|
rm w32dist/plugin.dll
|
|
mv w32dist radare2-w32-${VERSION}
|
|
zip -r radare2-w32-${VERSION}.zip radare2-w32-${VERSION}
|
|
|
|
w32beta: w32dist
|
|
scp radare2-w32-${VERSION}.zip ${REMOTE}
|
|
cd swig ; $(MAKE) w32dist
|
|
scp radare2-swig-w32-${VERSION}.zip ${REMOTE}
|
|
|
|
clean:
|
|
cd libr && ${MAKE} clean
|
|
cd binr && ${MAKE} clean
|
|
|
|
mrproper:
|
|
cd libr && ${MAKE} mrproper
|
|
cd binr && ${MAKE} mrproper
|
|
rm -f config-user.mk plugins.cfg libr/config.h libr/include/r_userconf.h libr/config.mk
|
|
rm -f pkgcfg/*.pc
|
|
|
|
pkgcfg:
|
|
cd libr && ${MAKE} pkgcfg
|
|
|
|
install-man:
|
|
mkdir -p ${DESTDIR}/${PREFIX}/share/man/man1
|
|
for a in man/*.1 ; do ${INSTALL_MAN} $$a ${DESTDIR}/${PREFIX}/share/man/man1 ; done
|
|
cd ${DESTDIR}/${PREFIX}/share/man/man1 && ln -fs radare2.1 r2.1
|
|
|
|
install-man-symlink:
|
|
mkdir -p ${DESTDIR}/${PREFIX}/share/man/man1
|
|
cd man && for a in *.1 ; do ln -fs `pwd`/$$a ${DESTDIR}/${PREFIX}/share/man/man1/$$a ; done
|
|
cd ${DESTDIR}/${PREFIX}/share/man/man1 && ln -fs radare2.1 r2.1
|
|
|
|
install: install-man
|
|
${INSTALL_DIR} ${DESTDIR}${PREFIX}/share/doc/radare2
|
|
for a in doc/* ; do ${INSTALL_DATA} $$a ${DESTDIR}/${PREFIX}/share/doc/radare2 ; done
|
|
cd libr && ${MAKE} install PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
cd binr && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
|
|
symstall install-symlink: install-man-symlink
|
|
cd libr && ${MAKE} install-symlink PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
cd binr && ${MAKE} install-symlink PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
|
|
uninstall:
|
|
rm -rf prefix
|
|
|
|
deinstall: uninstall
|
|
cd libr && ${MAKE} uninstall PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
cd binr && ${MAKE} uninstall PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
|
|
beta: dist swig-dist
|
|
scp ../radare2-${VERSION}.tar.gz ${REMOTE}
|
|
scp radare2-swig-${VERSION}.tar.gz ${REMOTE}
|
|
|
|
swig-dist:
|
|
cd swig && ${MAKE} dist
|
|
|
|
dist:
|
|
VERSION=${VERSION} ; \
|
|
FILES=`hg st -mc .| cut -c 3-|sed -e s,^,radare2-${VERSION}/,` ; \
|
|
cd .. && mv radare2 radare2-${VERSION} && \
|
|
tar czvf radare2-${VERSION}.tar.gz $${FILES} ;\
|
|
mv radare2-${VERSION} radare2
|
|
|
|
pub:
|
|
scp ../radare2-${VERSION}.tar.gz radare.org:/srv/http/radareorg/get
|
|
|
|
shot:
|
|
DATE=`date '+%Y%m%d'` ; \
|
|
FILES=`hg status -mc|cut -c 3-|sed -e s,^,radare2-$${DATE}/,`; \
|
|
cd .. && mv radare2 radare2-$${DATE} && \
|
|
tar czvf radare2-$${DATE}.tar.gz $${FILES} ;\
|
|
mv radare2-$${DATE} radare2 && \
|
|
scp radare2-$${DATE}.tar.gz radare.org:/srv/http/radareorg/get/shot
|
|
|
|
include ${MKPLUGINS}
|
|
|
|
.PHONY: all clean mrproper install symstall uninstall deinstall dist shot pkgcfg swig libr binr install-man
|