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
This commit is contained in:
Yuichiro MASUI
2012-12-29 05:37:55 +09:00
parent a48fc0d795
commit 7c469c0b9d
63 changed files with 863 additions and 1731 deletions
+10
View File
@@ -0,0 +1,10 @@
dir = File.dirname(__FILE__).sub(%r|^\./|, '')
MRuby.each_target do
exec = exefile("#{build_dir}/bin/mruby")
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