radare2/Makefile

112 lines
3.2 KiB
Makefile
Raw Normal View History

include config-user.mk
include global.mk
REMOTE=radare.org:/srv/http/radareorg/get/beta
all: plugins.cfg
${MAKE} libr
${MAKE} binr
* Initial import of the 'configure-plugins' script - accepts --static and --shared to setup which plugins you want to build statically in the library or dynamically - normalize .mk and plugin file names to adopt a single standard - WARNING: huge commit * Added 'mk/sloc.mk' with 'sloc' target to count lines with sloccount everywhere (yeah!) --HG-- rename : libr/asm/p/x86bea.mk => libr/asm/p/x86_bea.mk rename : libr/asm/p/x86nasm.mk => libr/asm/p/x86_nasm.mk rename : libr/asm/p/x86olly.mk => libr/asm/p/x86_olly.mk rename : libr/config.h => libr/config.h.head rename : libr/config.mk => libr/config.mk.head rename : libr/debug/p/dbg_gdb.c => libr/debug/p/debug_gdb.c rename : libr/debug/p/dbg_ptrace.c => libr/debug/p/debug_ptrace.c rename : libr/debug/p/dbg_libgdbwrap/Makefile => libr/debug/p/libgdbwrap/Makefile rename : libr/debug/p/dbg_libgdbwrap/README => libr/debug/p/libgdbwrap/README rename : libr/debug/p/dbg_libgdbwrap/client.c => libr/debug/p/libgdbwrap/client.c rename : libr/debug/p/dbg_libgdbwrap/gdbwrapper.c => libr/debug/p/libgdbwrap/gdbwrapper.c rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-internals.h => libr/debug/p/libgdbwrap/include/gdbwrapper-internals.h rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-stddef.h => libr/debug/p/libgdbwrap/include/gdbwrapper-stddef.h rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper.h => libr/debug/p/libgdbwrap/include/gdbwrapper.h rename : libr/debug/p/dbg_libgdbwrap/include/libaspect.h => libr/debug/p/libgdbwrap/include/libaspect.h rename : libr/debug/p/dbg_libgdbwrap/include/libe2dbg.h => libr/debug/p/libgdbwrap/include/libe2dbg.h rename : libr/debug/p/dbg_libgdbwrap/include/revm.h => libr/debug/p/libgdbwrap/include/revm.h rename : libr/debug/p/dbg_libgdbwrap/interface.c => libr/debug/p/libgdbwrap/interface.c rename : libr/io/p/dbg.mk => libr/io/p/debug.mk rename : libr/io/p/io_dbg.c => libr/io/p/io_debug.c
2010-01-13 22:42:49 +00:00
plugins.cfg:
./configure-plugins
libr:
cd libr && ${MAKE} all
binr:
cd binr && ${MAKE} all
w32:
make clean
# 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
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}
* Initial import of the 'configure-plugins' script - accepts --static and --shared to setup which plugins you want to build statically in the library or dynamically - normalize .mk and plugin file names to adopt a single standard - WARNING: huge commit * Added 'mk/sloc.mk' with 'sloc' target to count lines with sloccount everywhere (yeah!) --HG-- rename : libr/asm/p/x86bea.mk => libr/asm/p/x86_bea.mk rename : libr/asm/p/x86nasm.mk => libr/asm/p/x86_nasm.mk rename : libr/asm/p/x86olly.mk => libr/asm/p/x86_olly.mk rename : libr/config.h => libr/config.h.head rename : libr/config.mk => libr/config.mk.head rename : libr/debug/p/dbg_gdb.c => libr/debug/p/debug_gdb.c rename : libr/debug/p/dbg_ptrace.c => libr/debug/p/debug_ptrace.c rename : libr/debug/p/dbg_libgdbwrap/Makefile => libr/debug/p/libgdbwrap/Makefile rename : libr/debug/p/dbg_libgdbwrap/README => libr/debug/p/libgdbwrap/README rename : libr/debug/p/dbg_libgdbwrap/client.c => libr/debug/p/libgdbwrap/client.c rename : libr/debug/p/dbg_libgdbwrap/gdbwrapper.c => libr/debug/p/libgdbwrap/gdbwrapper.c rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-internals.h => libr/debug/p/libgdbwrap/include/gdbwrapper-internals.h rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-stddef.h => libr/debug/p/libgdbwrap/include/gdbwrapper-stddef.h rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper.h => libr/debug/p/libgdbwrap/include/gdbwrapper.h rename : libr/debug/p/dbg_libgdbwrap/include/libaspect.h => libr/debug/p/libgdbwrap/include/libaspect.h rename : libr/debug/p/dbg_libgdbwrap/include/libe2dbg.h => libr/debug/p/libgdbwrap/include/libe2dbg.h rename : libr/debug/p/dbg_libgdbwrap/include/revm.h => libr/debug/p/libgdbwrap/include/revm.h rename : libr/debug/p/dbg_libgdbwrap/interface.c => libr/debug/p/libgdbwrap/interface.c rename : libr/io/p/dbg.mk => libr/io/p/debug.mk rename : libr/io/p/io_dbg.c => libr/io/p/io_debug.c
2010-01-13 22:42:49 +00:00
clean:
cd libr && ${MAKE} clean
cd binr && ${MAKE} clean
* Initial import of the 'configure-plugins' script - accepts --static and --shared to setup which plugins you want to build statically in the library or dynamically - normalize .mk and plugin file names to adopt a single standard - WARNING: huge commit * Added 'mk/sloc.mk' with 'sloc' target to count lines with sloccount everywhere (yeah!) --HG-- rename : libr/asm/p/x86bea.mk => libr/asm/p/x86_bea.mk rename : libr/asm/p/x86nasm.mk => libr/asm/p/x86_nasm.mk rename : libr/asm/p/x86olly.mk => libr/asm/p/x86_olly.mk rename : libr/config.h => libr/config.h.head rename : libr/config.mk => libr/config.mk.head rename : libr/debug/p/dbg_gdb.c => libr/debug/p/debug_gdb.c rename : libr/debug/p/dbg_ptrace.c => libr/debug/p/debug_ptrace.c rename : libr/debug/p/dbg_libgdbwrap/Makefile => libr/debug/p/libgdbwrap/Makefile rename : libr/debug/p/dbg_libgdbwrap/README => libr/debug/p/libgdbwrap/README rename : libr/debug/p/dbg_libgdbwrap/client.c => libr/debug/p/libgdbwrap/client.c rename : libr/debug/p/dbg_libgdbwrap/gdbwrapper.c => libr/debug/p/libgdbwrap/gdbwrapper.c rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-internals.h => libr/debug/p/libgdbwrap/include/gdbwrapper-internals.h rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-stddef.h => libr/debug/p/libgdbwrap/include/gdbwrapper-stddef.h rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper.h => libr/debug/p/libgdbwrap/include/gdbwrapper.h rename : libr/debug/p/dbg_libgdbwrap/include/libaspect.h => libr/debug/p/libgdbwrap/include/libaspect.h rename : libr/debug/p/dbg_libgdbwrap/include/libe2dbg.h => libr/debug/p/libgdbwrap/include/libe2dbg.h rename : libr/debug/p/dbg_libgdbwrap/include/revm.h => libr/debug/p/libgdbwrap/include/revm.h rename : libr/debug/p/dbg_libgdbwrap/interface.c => libr/debug/p/libgdbwrap/interface.c rename : libr/io/p/dbg.mk => libr/io/p/debug.mk rename : libr/io/p/io_dbg.c => libr/io/p/io_debug.c
2010-01-13 22:42:49 +00:00
2010-07-13 09:59:55 +00:00
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
2009-06-15 02:44:05 +00:00
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-doc:
${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
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
cd libr && ${MAKE} install PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}
cd binr && ${MAKE} install PREFIX=${PREFIX} DESTDIR=${DESTDIR}
symstall install-symlink: install-man-symlink install-doc-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}
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}
* Move vapi directory into swig/ - Two splitted distribution files: - radare2 and radare2-swig - Making it more debian friendly for packaging --HG-- rename : libr/vapi/libr.deps => swig/vapi/libr.deps rename : libr/vapi/libr.vapi => swig/vapi/libr.vapi rename : libr/vapi/r_anal.vapi => swig/vapi/r_anal.vapi rename : libr/vapi/r_asm.vapi => swig/vapi/r_asm.vapi rename : libr/vapi/r_bin.deps => swig/vapi/r_bin.deps rename : libr/vapi/r_bin.vapi => swig/vapi/r_bin.vapi rename : libr/vapi/r_bp.vapi => swig/vapi/r_bp.vapi rename : libr/vapi/r_config.vapi => swig/vapi/r_config.vapi rename : libr/vapi/r_cons.vapi => swig/vapi/r_cons.vapi rename : libr/vapi/r_core.vapi => swig/vapi/r_core.vapi rename : libr/vapi/r_crypto.vapi => swig/vapi/r_crypto.vapi rename : libr/vapi/r_db.vapi => swig/vapi/r_db.vapi rename : libr/vapi/r_debug.deps => swig/vapi/r_debug.deps rename : libr/vapi/r_debug.vapi => swig/vapi/r_debug.vapi rename : libr/vapi/r_diff.vapi => swig/vapi/r_diff.vapi rename : libr/vapi/r_hash.vapi => swig/vapi/r_hash.vapi rename : libr/vapi/r_io.deps => swig/vapi/r_io.deps rename : libr/vapi/r_io.vapi => swig/vapi/r_io.vapi rename : libr/vapi/r_lang.vapi => swig/vapi/r_lang.vapi rename : libr/vapi/r_lib.vapi => swig/vapi/r_lib.vapi rename : libr/vapi/r_line.vapi => swig/vapi/r_line.vapi rename : libr/vapi/r_parse.vapi => swig/vapi/r_parse.vapi rename : libr/vapi/r_reg.vapi => swig/vapi/r_reg.vapi rename : libr/vapi/r_search.vapi => swig/vapi/r_search.vapi rename : libr/vapi/r_socket.vapi => swig/vapi/r_socket.vapi rename : libr/vapi/r_syscall.vapi => swig/vapi/r_syscall.vapi rename : libr/vapi/r_util.vapi => swig/vapi/r_util.vapi rename : libr/vapi/t/Makefile => swig/vapi/t/Makefile rename : libr/vapi/t/array.vala => swig/vapi/t/array.vala rename : libr/vapi/t/asm.gs => swig/vapi/t/asm.gs rename : libr/vapi/t/asm.vala => swig/vapi/t/asm.vala rename : libr/vapi/t/bin.vala => swig/vapi/t/bin.vala rename : libr/vapi/t/bintest.vala => swig/vapi/t/bintest.vala rename : libr/vapi/t/core.vala => swig/vapi/t/core.vala rename : libr/vapi/t/db.vala => swig/vapi/t/db.vala rename : libr/vapi/t/hash.vala => swig/vapi/t/hash.vala rename : libr/vapi/t/io.vala => swig/vapi/t/io.vala rename : libr/vapi/t/lang.vala => swig/vapi/t/lang.vala rename : libr/vapi/t/list.vala => swig/vapi/t/list.vala rename : libr/vapi/t/list.vapi => swig/vapi/t/list.vapi rename : libr/vapi/t/regs.vala => swig/vapi/t/regs.vala rename : libr/vapi/t/sc.vala => swig/vapi/t/sc.vala rename : libr/vapi/t/search.gs => swig/vapi/t/search.gs rename : libr/vapi/t/search.vala => swig/vapi/t/search.vala rename : libr/vapi/t/socket.vala => swig/vapi/t/socket.vala
2010-03-14 18:36:44 +00:00
swig-dist:
cd swig && ${MAKE} dist
dist:
2009-04-25 19:43:47 +00:00
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
2010-10-28 01:30:15 +00:00
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}
* Rename r2rc to rarc2 - Moved into binr/rarc2 - Integrated with symstall - rarc2-tool now support -xc and -cx combo - Add rarc2.1 manpage * Add some bugs to review in TODO --HG-- rename : r2rc/Makefile => binr/rarc2/Makefile rename : r2rc/README => binr/rarc2/README rename : r2rc/TODO => binr/rarc2/TODO rename : r2rc/emit_arm.c => binr/rarc2/emit_arm.c rename : r2rc/emit_x64.c => binr/rarc2/emit_x64.c rename : r2rc/emit_x86.c => binr/rarc2/emit_x86.c rename : r2rc/i/libc.r => binr/rarc2/i/libc.r rename : r2rc/i/socket.r => binr/rarc2/i/socket.r rename : r2rc/out.c => binr/rarc2/out.c rename : r2rc/r2rc-tool => binr/rarc2/rarc2-tool rename : r2rc/r2rc.c => binr/rarc2/rarc2.c rename : r2rc/rcc.h => binr/rarc2/rarc2.h rename : r2rc/t/Makefile => binr/rarc2/t/Makefile rename : r2rc/t/argv.r => binr/rarc2/t/argv.r rename : r2rc/t/bytedump.r => binr/rarc2/t/bytedump.r rename : r2rc/t/data.r => binr/rarc2/t/data.r rename : r2rc/t/dump.r => binr/rarc2/t/dump.r rename : r2rc/t/hello.r => binr/rarc2/t/hello.r rename : r2rc/t/if.r => binr/rarc2/t/if.r rename : r2rc/t/inline.r => binr/rarc2/t/inline.r rename : r2rc/t/input.r => binr/rarc2/t/input.r rename : r2rc/t/loop.r => binr/rarc2/t/loop.r rename : r2rc/t/ptr.r => binr/rarc2/t/ptr.r rename : r2rc/t/rawsys.r => binr/rarc2/t/rawsys.r rename : r2rc/t/rawsys64.r => binr/rarc2/t/rawsys64.r rename : r2rc/t/regs.r => binr/rarc2/t/regs.r rename : r2rc/t/ret.r => binr/rarc2/t/ret.r rename : r2rc/t/room.r => binr/rarc2/t/room.r rename : r2rc/t/segfault.r => binr/rarc2/t/segfault.r rename : r2rc/t/shell.r => binr/rarc2/t/shell.r rename : r2rc/t/sub.r => binr/rarc2/t/sub.r rename : r2rc/t/syscall.r => binr/rarc2/t/syscall.r rename : r2rc/test.r => binr/rarc2/test.r
2010-06-28 18:30:20 +00:00
.PHONY: all clean mrproper install symstall uninstall deinstall dist shot pkgcfg swig libr binr install-man