Repository URL to install this package:
|
Version:
2.4.3 ▾
|
#
# Rakefile -- build executable
#
require "autorake"
c = compiler "-O2"
l = linker
rule ".o" => ".c" do |t|
c.cc t.name, t.source
end
file "hello" => "hello.o" do |t|
l.cc t.name, t.prerequisites
end
task :default => "hello"
task :clean do
FileList[ "*.o", "hello"].each { |f| rm_f f }
end
task :foo do
puts "Parameter foo is: %s." % parm[ :foo]
end