mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
3da650d4b1
* Merge r_trace into r_debug (RDebugTrace) - Implement 'dt' command to manage debugging traces - TODO: Track register values and memory changes - Added dbg.trace and dbg.trace.tag * Added r_sys_now() to retrieve ut64 value of current time - Must check endianness issues * Initial work trying to implement RPATH support to ELF * Less flat command tree - 'dt' is now 'dbt' - 'dk' is now 'dpk' * Some more random syntax cleanup fixes * Say 'yes/no' instead of 'ok/fail' in check-langs script
86 lines
2.3 KiB
Makefile
86 lines
2.3 KiB
Makefile
include config-user.mk
|
|
include global.mk
|
|
|
|
all: plugins.cfg libr swig r2rc
|
|
|
|
plugins.cfg:
|
|
./configure-plugins
|
|
|
|
libr:
|
|
cd libr && ${MAKE} all
|
|
|
|
r2rc:
|
|
cd r2rc && ${MAKE} all
|
|
|
|
swig:
|
|
ifeq (${HAVE_VALASWIG},1)
|
|
cd swig && ${MAKE} all
|
|
endif
|
|
|
|
vdoc:
|
|
rm -rf vdoc
|
|
cat libr/vapi/*.vapi > /tmp/libr.vapi
|
|
valadoc -o vdoc /tmp/libr.vapi
|
|
# rsync -avz vdoc/* pancake@radare.org:/srv/http/radareorg/vdoc/
|
|
|
|
vdoc_pkg:
|
|
rm -rf vdoc
|
|
valadoc -o vdoc libr/vapi/*.vapi
|
|
# rsync -avz vdoc/* pancake@radare.org:/srv/http/radareorg/vdoc/
|
|
|
|
w32dist:
|
|
mkdir w32dist
|
|
for a in `find * | grep -e exe$$ -e dll$$`; do cp $$a w32dist ; done
|
|
mv w32dist radare2-w32-${VERSION}
|
|
zip -r radare2-w32-${VERSION}.zip radare2-w32-${VERSION}
|
|
|
|
clean:
|
|
cd libr && ${MAKE} clean
|
|
cd swig && ${MAKE} clean
|
|
|
|
mrproper:
|
|
cd libr && ${MAKE} mrproper
|
|
rm -f plugins.cfg libr/config.h libr/config.mk
|
|
|
|
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
|
|
|
|
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 swig && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
cd r2rc && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
|
|
uninstall:
|
|
rm -rf prefix
|
|
|
|
deinstall: uninstall
|
|
cd libr && ${MAKE} uninstall PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
rm -rf ${DESTDIR}${PREFIX}/share/doc/radare2
|
|
|
|
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
|
|
if [ ${RELEASE} = 1 ]; then \
|
|
scp ../radare2-${VERSION}.tar.gz radare.org:/srv/http/radareorg/get ; fi
|
|
|
|
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 uninstall deinstall dist shot pkgcfg vdoc swig libr r2rc install-man
|