require 'mkmf' if(PLATFORM=~/mingw/) puts "Building for MinGW" $libs = append_library($libs, "stdc++") $CFLAGS= " -I/mingw/include/taglib" else puts "Building for other architecture" $CFLAGS= " -I/usr/include/taglib" end $libs = append_library($libs, "supc++") if have_header("taglib/taglib_export.h") and have_library("tag") create_makefile("TagLib") end