diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-20 14:41:50 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-20 14:41:50 -0800 |
| commit | 8e86ff2283d427b5cb2a02607e1aab998cb5090c (patch) | |
| tree | bd40d166673b2290053f1742660d573d5586a974 /tools/mrbc | |
| parent | cc16bd7c0d70b326ddcf8de8a511116dae9fc30d (diff) | |
| parent | ced80d2b4b1ed4ef0752a8bbaf0dbfe7aa6c6a95 (diff) | |
| download | mruby-8e86ff2283d427b5cb2a02607e1aab998cb5090c.tar.gz mruby-8e86ff2283d427b5cb2a02607e1aab998cb5090c.zip | |
Merge pull request #755 from masuidrive/imprive_build_scripts
Improved build scripts and config files
Diffstat (limited to 'tools/mrbc')
| -rw-r--r-- | tools/mrbc/mrbc.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/mrbc/mrbc.rake b/tools/mrbc/mrbc.rake index 74e04bed5..248433cf0 100644 --- a/tools/mrbc/mrbc.rake +++ b/tools/mrbc/mrbc.rake @@ -1,12 +1,12 @@ -dir = File.dirname(__FILE__).sub(%r|^\./|, '') - MRuby.each_target do - if bins.select { |s| s.to_s == 'mrbc' } + dir = File.dirname(__FILE__).relative_path_from(root) + + if bins.find { |s| s.to_s == 'mrbc' } exec = exefile("#{build_dir}/bin/mrbc") - objs = Dir.glob("#{dir}/*.{c}").map { |f| f.pathmap("#{build_dir}/%X.o") } + objs = Dir.glob("#{dir}/*.c").map { |f| objfile(f.pathmap("#{build_dir}/%X")) } - file exec => objs + ["#{build_dir}/lib/libmruby_core.a"] do |t| - link t.name, t.prerequisites + file exec => objs + [libfile("#{build_dir}/lib/libmruby_core")] do |t| + linker.run t.name, t.prerequisites end end end |
