4 def initialize(name, prefix, dir, lib = name)
12 s = "#{ENV["LDFLAGS"]} -L #{@prefix}/lib -L " +
13 Config::CONFIG["libdir"] + " " +
14 Config::CONFIG["LIBRUBYARG_SHARED"] +
16 s << " -l#{@lib}" unless @lib.nil?
21 "#{ENV["CFLAGS"]} -I #{@prefix}/include " +
22 "-I #{Config::CONFIG['archdir']} " +
23 "-I #{Config::CONFIG['sitearchdir']} -fPIC"
31 Dir["#{@dir}/*.c"].map { |f| f.sub(/\.[^.]+$/, ".o") }