diff --git a/Rakefile.rb b/Rakefile.rb index db8e8ba..097918c 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -1,20 +1,20 @@ -require "rscons" - -task :default do - Rscons::Environment.new do |env| - if RUBY_PLATFORM =~ /cygwin/ - env["CC"] = "i686-pc-mingw32-gcc" - env["CPPPATH"] += [ - "C:/Ruby193/include/ruby-1.9.1", - "C:/Ruby193/include/ruby-1.9.1/i386-mingw32", - ] - env["LIBS"] += ["msvcrt-ruby191"] - env["LDFLAGS"] += ["-LC:/Ruby193/lib"] - else - env.parse_flags!("!pkg-config --cflags --libs ruby-1.9") - end - env["CFLAGS"] += ["-Wall"] - sources = Dir["*.c"] - env.Program("main", sources) - end -end +require "rscons" + +task :default do + Rscons::Environment.new do |env| + if RUBY_PLATFORM =~ /cygwin/ + env["CC"] = "i686-pc-mingw32-gcc" + env["CPPPATH"] += [ + "C:/Ruby193/include/ruby-1.9.1", + "C:/Ruby193/include/ruby-1.9.1/i386-mingw32", + ] + env["LIBS"] += ["msvcrt-ruby191"] + env["LDFLAGS"] += ["-LC:/Ruby193/lib"] + else + env.parse_flags!("!pkg-config --cflags --libs ruby-1.9") + end + env["CFLAGS"] += ["-Wall"] + sources = Dir["*.c"] + env.Program("main", sources) + end +end