1# change these values if you need to 2SWIG = swig # apt-get install swig ! 3GCC = gcc 4 5CC_FLAGS = -c -fPIC 6LD_FLAGS = -shared -L../.. -ldisasm 7 8BASE_NAME = x86disasm 9 10export INTERFACE_FILE BASE_NAME SWIG GCC CC_FLAGS LD_FLAGS 11 12#==================================================== 13# TARGETS 14 15all: swig 16dummy: swig swig-python swig-ruby swig-perl swig-tcl install uninstall clean 17 18swig: swig-python swig-perl 19# swig-rub swig-tcl 20 21swig-python: 22 cd python && make -f Makefile-swig 23 24swig-ruby: 25 cd ruby && make -f Makefile-swig 26 27swig-perl: 28 cd perl && make -f Makefile-swig 29 30swig-tcl: 31 cd tcl && make -f Makefile-swig 32 33# ================================================================== 34install: install-python install-perl 35# install-ruby install-tcl 36 37install-python: 38 cd python && sudo make -f Makefile-swig install 39 40install-ruby: 41 cd ruby && sudo make -f Makefile-swig install 42 43install-perl: 44 cd perl && sudo make -f Makefile-swig install 45 46install-tcl: 47 cd tcl && sudo make -f Makefile-swig install 48 49# ================================================================== 50uninstall: uninstall-python 51#uninstall-ruby uninstall-perl uninstall-tcl 52 53uninstall-python: 54 cd python && sudo make -f Makefile-swig uninstall 55 56uninstall-ruby: 57 cd ruby && sudo make -f Makefile-swig uninstall 58 59uninstall-perl: 60 cd perl && sudo make -f Makefile-swig uninstall 61 62uninstall-tcl: 63 cd tcl && sudo make -f Makefile-swig uninstall 64 65# ================================================================== 66clean: 67 cd python && make -f Makefile-swig clean 68 cd ruby && make -f Makefile-swig clean 69 cd perl && make -f Makefile-swig clean 70 cd tcl && make -f Makefile-swig clean 71