mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 07:57:35 +00:00
54bdfb22bd
- Fixes ruby warnings - Follow java syntax conventions - Helped to identify and fix bugs in many vapis - Sync swig examples - Add test-r_core.rb (ruby test for RCore) * Some work in r_cons, some refactoring and cleanup - scr.html is now working again - w32 cons support should work now - Rename r_cons_get_columns -> r_cons_get_size() - But it needs more work * Typedef all r_range, r_parse and r_anal structs - Add missing r_lib.pc in configure.acr * 'make' clean now removes the libr* in swig/${LANG}/
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
all: supported.langs ruby perl python
|
|
|
|
supported.langs:
|
|
sh check-langs.sh
|
|
|
|
# TODO: make it less spaguetti
|
|
perl:
|
|
@-[ "`grep perl supported.langs`" ] && cd perl && make
|
|
|
|
python:
|
|
@-[ "`grep python supported.langs`" ] && cd python && make
|
|
|
|
ruby:
|
|
@-[ "`grep ruby supported.langs`" ] && cd ruby && make
|
|
|
|
test:
|
|
cd perl && make test
|
|
cd python && make test
|
|
cd ruby && make test
|
|
|
|
install-python:
|
|
@if [ "`grep python supported.langs`" ]; then \
|
|
for a in python2.5 python2.6; do \
|
|
mkdir -p /usr/lib/$$a/r2 ; \
|
|
touch /usr/lib/$$a/r2/__init__.py ; \
|
|
echo "Installing $$a r2 modules..." ; \
|
|
cp -rf python/* /usr/lib/$$a/r2 ; \
|
|
cp -rf python/*libr* /usr/lib/$$a/ ; \
|
|
done ; \
|
|
fi
|
|
|
|
install-ruby:
|
|
@if [ "`grep ruby supported.langs`" ]; then \
|
|
target=/usr/lib/ruby/1.9.1/ ; \
|
|
mkdir -p $$target/r2 ; \
|
|
echo "Installing ruby r2 modules..." ; \
|
|
cp -rf ruby/* $$target/r2 ; \
|
|
cp -rf ruby/*libr* $$target ; \
|
|
fi
|
|
|
|
install-perl:
|
|
@echo "Installing perl r2 modules... NOT YET IMPLEMENTED"
|
|
@#if [ "`grep perl supported.langs`" ]; then \
|
|
#target=/usr/lib/ruby/1.9.1/ ; \
|
|
#mkdir -p $$target/r2 ; \
|
|
#cp -rf ruby/* $$target/r2 ; \
|
|
#cp -rf ruby/*libr* $$target ; \
|
|
#fi
|
|
|
|
install: install-python install-ruby install-perl
|
|
|
|
oldtest:
|
|
sh do-swig.sh r_bp
|
|
python test.py
|
|
|
|
clean:
|
|
rm -rf python/*.so python/*.c python/*.i python/libr*
|
|
rm -rf perl/*.so perl/*.pm perl/*.c perl/*.i perl/libr*
|
|
rm -rf ruby/*.so ruby/*.c ruby/*.i ruby/libr*
|
|
|
|
.PHONY: ruby python perl clean oldtest test all
|