rake/extensiontask.rb
# Defines C and C++ source-to-object rules, using the source extensions from env.
Defines C and C++ source-to-object rules, using the source extensions from env.
Defines C and C ++ source - to - object rules using the source extensions from env .
def define_rules
      for ext in env[:c_exts]
        Rake::Task.create_rule '.'+env[:objext] => '.'+ext do |r|
          sh_cmd :cc, :cflags, :cppflags, {'-D' => :defines}, {'-I' => :includedirs}, {'-I' => :topdir},
                '-c', '-o', r.name, r.sources
        end
      end
      for ext in env[:cpp_exts]
        Rake::Task.create_rule '.'+env[:objext] => '.'+ext do |r|
          sh_cmd :cxx, :cxxflags, :cppflags, {'-D' => :defines}, {'-I' => :includedirs}, {'-I' => :topdir},
                '-o', r.name, '-c', r.sources
        end
      end
    end
def define_rules for ext in env [ :c_exts ] Rake :: Task . create_rule '.' + env [ :objext ] => '.' + ext do | r | sh_cmd :cc , :cflags , :cppflags , { '-D' => :defines } , { '-I' => :includedirs } , { '-I' => :topdir } , '-c' , '-o' , r . name , r . sources end end for ext in env [ :cpp_exts ] Rake :: Task . create_rule '.' + env [ :objext ] => '.' + ext do | r | sh_cmd :cxx , :cxxflags , :cppflags , { '-D' => :defines } , { '-I' => :includedirs } , { '-I' => :topdir } , '-o' , r . name , '-c' , r . sources end end end
Defines C and C++ source-to-object rules, using the source extensions from env.
Defines C and C ++ source - to - object rules using the source extensions from env .