Building with Rake

Rules

  rule '.o' => ['.c'] do |t|
    sh %{cc #{t.source} -c -o #{t.name}}
  end
 file "xyz.o" => ["xyz.c"] do |t|
    sh %{cc #{t.source} -c -o #{t.name}}
 end