+dat_DATA += libcycript.jar
+
+CLEANFILES += Class
+Class/Cycript.class: Java/Cycript.java
+ rm -rf Class; mkdir Class; javac -g -Xlint:unchecked -source 1.5 -target 1.5 -d Class -sourcepath $(srcdir)/Java $<
+Class/classes.dex: Class/Cycript.class
+ cd Class; dx --dex --output=../$@ *.class
+
+CLEANFILES += libcycript.jar
+libcycript.jar: Class/classes.dex Class/Cycript.class
+ cd Class; jar cf ../$@ *
+endif
+
+if CY_RUBY
+filters += Ruby
+libcycript_la_SOURCES += Ruby/Execute.cpp
+libcycript_la_LIBADD += $(LTRUBY)
+endif
+
+if CY_PYTHON
+filters += Python
+libcycript_la_SOURCES += Python/Execute.cpp
+libcycript_la_LIBADD += $(LTPYTHON)