aboutsummaryrefslogtreecommitdiff
path: root/bindings/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/Makefile')
-rw-r--r--bindings/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/bindings/Makefile b/bindings/Makefile
new file mode 100644
index 0000000..1fa64ba
--- /dev/null
+++ b/bindings/Makefile
@@ -0,0 +1,16 @@
+ALL: swig-perl swig-python swig-ruby
+
+swig-perl:
+ swig -Wall -c++ -perl -outdir perl marisa-swig.i
+ mv marisa-swig_wrap.cxx perl
+ cp marisa-swig.cxx marisa-swig.h perl
+
+swig-python:
+ swig -Wall -c++ -python -outdir python marisa-swig.i
+ mv marisa-swig_wrap.cxx python
+ cp marisa-swig.cxx marisa-swig.h python
+
+swig-ruby:
+ swig -Wall -c++ -ruby -outdir ruby marisa-swig.i
+ mv marisa-swig_wrap.cxx ruby
+ cp marisa-swig.cxx marisa-swig.h ruby