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-10-29 01:38:43 +00:00
|
|
|
REMOTE=radare.org:/srv/http/radareorg/get/beta
|
|
|
|
|
2010-10-29 01:10:10 +00:00
|
|
|
all: plugins.cfg
|
|
|
|
${MAKE} libr
|
|
|
|
${MAKE} binr
|
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-05-28 15:15:20 +00:00
|
|
|
binr:
|
|
|
|
cd binr && ${MAKE} all
|
|
|
|
|
2010-10-17 23:51:00 +00:00
|
|
|
w32:
|
2010-10-29 01:38:43 +00:00
|
|
|
make clean
|
2010-10-17 23:51:00 +00:00
|
|
|
# TODO: add support for debian
|
2010-10-28 12:11:19 +00:00
|
|
|
./configure --without-ssl --without-gmp --with-compiler=i486-mingw32-gcc --with-ostype=windows --host=i486-unknown-windows
|
2010-10-17 23:51:00 +00:00
|
|
|
make
|
|
|
|
|
2010-01-15 16:02:04 +00:00
|
|
|
w32dist:
|
2010-04-12 00:22:52 +00:00
|
|
|
rm -rf radare2-w32-${VERSION} w32dist
|
2010-01-15 16:02:04 +00:00
|
|
|
mkdir w32dist
|
2010-11-16 23:56:48 +00:00
|
|
|
for a in `find binr libr | grep -e exe$$ -e dll$$`; do cp $$a w32dist ; done
|
2010-06-28 00:12:35 +00:00
|
|
|
rm w32dist/plugin.dll
|
2010-01-15 16:02:04 +00:00
|
|
|
mv w32dist radare2-w32-${VERSION}
|
|
|
|
zip -r radare2-w32-${VERSION}.zip radare2-w32-${VERSION}
|
|
|
|
|
2010-10-29 01:38:43 +00:00
|
|
|
w32beta: w32dist
|
|
|
|
scp radare2-w32-${VERSION}.zip ${REMOTE}
|
|
|
|
cd swig ; $(MAKE) w32dist
|
|
|
|
scp radare2-swig-w32-${VERSION}.zip ${REMOTE}
|
|
|
|
|
2010-01-13 22:42:49 +00:00
|
|
|
clean:
|
2010-01-22 13:19:10 +00:00
|
|
|
cd libr && ${MAKE} clean
|
2010-06-14 16:29:52 +00:00
|
|
|
cd binr && ${MAKE} clean
|
2010-01-13 22:42:49 +00:00
|
|
|
|
2010-07-13 09:59:55 +00:00
|
|
|
mrproper:
|
2010-01-22 13:19:10 +00:00
|
|
|
cd libr && ${MAKE} mrproper
|
2010-06-14 16:29:52 +00:00
|
|
|
cd binr && ${MAKE} mrproper
|
2010-06-15 12:10:42 +00:00
|
|
|
rm -f config-user.mk plugins.cfg libr/config.h libr/include/r_userconf.h libr/config.mk
|
|
|
|
rm -f pkgcfg/*.pc
|
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
|
2010-06-18 15:52:30 +00:00
|
|
|
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
|
2010-03-12 17:46:11 +00:00
|
|
|
|
2011-02-17 00:22:15 +00:00
|
|
|
install-doc:
|
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
|
2011-02-17 00:22:15 +00:00
|
|
|
|
|
|
|
install-doc-symlink:
|
|
|
|
${INSTALL_DIR} ${DESTDIR}${PREFIX}/share/doc/radare2
|
|
|
|
cd doc ; for a in * ; do ln -fs `pwd`/$$a ${DESTDIR}/${PREFIX}/share/doc/radare2 ; done
|
|
|
|
|
|
|
|
install: install-doc install-man
|
2010-02-21 19:21:36 +00:00
|
|
|
cd libr && ${MAKE} install PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2010-05-29 01:30:36 +00:00
|
|
|
cd binr && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2009-02-05 21:28:33 +00:00
|
|
|
|
2011-02-17 00:22:15 +00:00
|
|
|
symstall install-symlink: install-man-symlink install-doc-symlink
|
2010-05-24 15:51:51 +00:00
|
|
|
cd libr && ${MAKE} install-symlink PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2010-06-15 11:10:46 +00:00
|
|
|
cd binr && ${MAKE} install-symlink PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2010-05-24 15:51:51 +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}
|
2010-06-15 11:10:46 +00:00
|
|
|
cd binr && ${MAKE} uninstall PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
|
2009-03-06 00:38:23 +00:00
|
|
|
|
2010-10-28 01:30:15 +00:00
|
|
|
beta: dist swig-dist
|
|
|
|
scp ../radare2-${VERSION}.tar.gz ${REMOTE}
|
|
|
|
scp radare2-swig-${VERSION}.tar.gz ${REMOTE}
|
|
|
|
|
2010-03-14 18:36:44 +00:00
|
|
|
swig-dist:
|
|
|
|
cd swig && ${MAKE} dist
|
|
|
|
|
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
|
2010-10-28 01:30:15 +00:00
|
|
|
|
|
|
|
pub:
|
|
|
|
scp ../radare2-${VERSION}.tar.gz radare.org:/srv/http/radareorg/get
|
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-06-28 18:30:20 +00:00
|
|
|
.PHONY: all clean mrproper install symstall uninstall deinstall dist shot pkgcfg swig libr binr install-man
|