blob: bff88312aaf9f2eea3d214c4ff6d77d497c9fec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
dir = File.dirname(__FILE__).sub(%r|^\./|, '')
MRuby.each_target do
if bins.select { |s| s.to_s == 'mrbc' }
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
end
|