Repository URL to install this package:
|
Version:
2.4.3 ▾
|
#
# Rakefile -- build the library
#
require "autorake"
c = compiler "-O2", "-fPIC"
l = linker "-shared"
rule ".o" => ".c" do |t|
c.cc t.name, t.source
end
file "hello.so" => "hello.o" do |t|
l.cc t.name, t.prerequisites
end
task :default => "hello.so"
task :clean do
FileList[ "*.o", "*.so"].each { |f| rm_f f }
end