require 'rubygems' require 'mkrf' dir = File.dirname(__FILE__) Mkrf::Generator.new('string_ext', "#{dir}/*.c")