summaryrefslogtreecommitdiffhomepage
path: root/tools/mirb/mirb.rake
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mirb/mirb.rake')
-rw-r--r--tools/mirb/mirb.rake10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/mirb/mirb.rake b/tools/mirb/mirb.rake
new file mode 100644
index 000000000..045f6ab90
--- /dev/null
+++ b/tools/mirb/mirb.rake
@@ -0,0 +1,10 @@
+dir = File.dirname(__FILE__).sub(%r|^\./|, '')
+
+MRuby.each_target do
+ exec = exefile("#{build_dir}/bin/mirb")
+ objs = Dir.glob("#{dir}/*.{c}").map { |f| f.pathmap("#{build_dir}/%X.o") }
+
+ file exec => objs + ["#{build_dir}/lib/libmruby.a"] do |t|
+ link t.name, t.prerequisites, [], gems.map { |g| g.mruby_libs }
+ end
+end \ No newline at end of file