Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
autorake / examples / rbextend / Rakefile
Size: Mime:
#
#  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