2009-04-01 00:28:13 +00:00
|
|
|
include config-user.mk
|
2010-01-15 00:32:28 +00:00
|
|
|
include global.mk
|
2009-03-05 12:15:28 +00:00
|
|
|
|
2010-02-25 23:51:22 +00:00
|
|
|
all: plugins.cfg libr swig r2rc
|
2010-01-13 22:42:49 +00:00
|
|
|
|
|
|
|
plugins.cfg:
|
|
|
|
./configure-plugins
|
2010-01-12 18:57:33 +00:00
|
|
|
|
|
|
|
libr:
|
2009-07-16 00:30:20 +00:00
|
|
|
cd libr && ${MAKE} all
|
2009-02-05 21:08:46 +00:00
|
|
|
|
2010-02-25 23:51:22 +00:00
|
|
|
r2rc:
|
|
|
|
cd r2rc && ${MAKE} all
|
|
|
|
|
2010-01-12 18:57:33 +00:00
|
|
|
swig:
|
|
|
|
ifeq (${HAVE_VALASWIG},1)
|
|
|
|
cd swig && ${MAKE} all
|
|
|
|
endif
|
|
|
|
|
2009-09-07 20:01:34 +00:00
|
|
|
vdoc:
|
2009-09-21 13:39:10 +00:00
|
|
|
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:
|
2009-09-07 20:01:34 +00:00
|
|
|
rm -rf vdoc
|
|
|
|
valadoc -o vdoc libr/vapi/*.vapi
|
2009-09-19 21:41:25 +00:00
|
|
|
# rsync -avz vdoc/* pancake@radare.org:/srv/http/radareorg/vdoc/
|
2009-09-07 20:01:34 +00:00
|
|
|
|
2010-01-15 16:02:04 +00:00
|
|
|
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}
|
|
|
|
|
2010-01-13 22:42:49 +00:00
|
|
|
clean:
|
2010-01-22 13:19:10 +00:00
|
|
|
cd libr && ${MAKE} clean
|
|
|
|
cd swig && ${MAKE} clean
|
2010-01-13 22:42:49 +00:00
|
|
|
|
2009-06-15 02:44:05 +00:00
|
|
|
mrproper:
|
2010-01-22 13:19:10 +00:00
|
|
|
cd libr && ${MAKE} mrproper
|
2010-01-15 16:02:04 +00:00
|
|
|
rm -f plugins.cfg libr/config.h libr/config.mk
|
2009-06-15 02:44:05 +00:00
|
|
|
|
2009-07-16 00:30:20 +00:00
|
|
|
pkgcfg:
|
2010-01-22 13:19:10 +00:00
|
|
|
cd libr && ${MAKE} pkgcfg
|
2009-07-16 00:30:20 +00:00
|
|
|
|
2010-03-12 17:46:11 +00:00
|
|
|
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
|
2009-04-20 11:02:04 +00:00
|
|
|
${INSTALL_DIR} ${DESTDIR}${PREFIX}/share/doc/radare2
|
2009-04-20 11:11:50 +00:00
|
|
|
for a in doc/* ; do ${INSTALL_DATA} $$a ${DESTDIR}/${PREFIX}/share/doc/radare2 ; done
|
2010-02-21 19:21:36 +00:00
|
|
|
cd libr && ${MAKE} install PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
|
|
|
cd swig && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2010-02-25 23:51:22 +00:00
|
|
|
cd r2rc && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2009-02-05 21:28:33 +00:00
|
|
|
|
2009-03-06 00:38:23 +00:00
|
|
|
uninstall:
|
2009-02-05 21:28:33 +00:00
|
|
|
rm -rf prefix
|
2009-03-05 12:15:28 +00:00
|
|
|
|
2009-03-06 00:38:23 +00:00
|
|
|
deinstall: uninstall
|
2010-02-21 19:21:36 +00:00
|
|
|
cd libr && ${MAKE} uninstall PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2009-04-03 11:11:17 +00:00
|
|
|
rm -rf ${DESTDIR}${PREFIX}/share/doc/radare2
|
2009-03-06 00:38:23 +00:00
|
|
|
|
2009-03-05 12:15:28 +00:00
|
|
|
dist:
|
2009-04-25 19:43:47 +00:00
|
|
|
VERSION=${VERSION} ; \
|
2009-03-05 12:15:28 +00:00
|
|
|
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
|
2009-03-07 17:47:59 +00:00
|
|
|
if [ ${RELEASE} = 1 ]; then \
|
2009-09-25 02:13:40 +00:00
|
|
|
scp ../radare2-${VERSION}.tar.gz radare.org:/srv/http/radareorg/get ; fi
|
2009-04-25 11:29:39 +00:00
|
|
|
|
|
|
|
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 && \
|
2009-09-25 02:13:40 +00:00
|
|
|
scp radare2-$${DATE}.tar.gz radare.org:/srv/http/radareorg/get/shot
|
2009-08-22 01:54:24 +00:00
|
|
|
|
|
|
|
include ${MKPLUGINS}
|
2009-03-05 12:15:28 +00:00
|
|
|
|
2010-03-12 17:46:11 +00:00
|
|
|
.PHONY: all clean mrproper install uninstall deinstall dist shot pkgcfg vdoc swig libr r2rc install-man
|