summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc/mrbc.rake
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2012-12-29 05:37:55 +0900
committerYuichiro MASUI <[email protected]>2013-01-03 02:24:15 +0900
commit7c469c0b9dadd1de09fed18c3e5cc551012c38c1 (patch)
treeb79aa703ef7c528896c4f1be8280d0691314008b /tools/mrbc/mrbc.rake
parenta48fc0d7952ad1f10ae777637269fe6a3f9ad0a2 (diff)
downloadmruby-7c469c0b9dadd1de09fed18c3e5cc551012c38c1.tar.gz
mruby-7c469c0b9dadd1de09fed18c3e5cc551012c38c1.zip
Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3 You can see building configuration in build_config.rb
Diffstat (limited to 'tools/mrbc/mrbc.rake')
-rw-r--r--tools/mrbc/mrbc.rake10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/mrbc/mrbc.rake b/tools/mrbc/mrbc.rake
new file mode 100644
index 000000000..4cca63b6f
--- /dev/null
+++ b/tools/mrbc/mrbc.rake
@@ -0,0 +1,10 @@
+dir = File.dirname(__FILE__).sub(%r|^\./|, '')
+
+MRuby.each_target do
+ exec = exefile("#{build_dir}/bin/mrbc")
+ objs = Dir.glob("#{dir}/*.{c}").map { |f| f.pathmap("#{build_dir}/%X.o") }
+
+ file exec => objs + ["#{build_dir}/lib/libmruby_core.a"] do |t|
+ link t.name, t.prerequisites, [], gems.map { |g| g.mruby_libs }
+ end
+end \ No newline at end of file