From 7c469c0b9dadd1de09fed18c3e5cc551012c38c1 Mon Sep 17 00:00:00 2001 From: Yuichiro MASUI Date: Sat, 29 Dec 2012 05:37:55 +0900 Subject: 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 --- tools/mrbc/mrbc.rake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/mrbc/mrbc.rake (limited to 'tools/mrbc/mrbc.rake') 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 -- cgit v1.2.3