# File lib/phusion_passenger/common_library.rb, line 103
        def define_tasks(extra_compiler_flags = nil)
                flags =  "-Iext -Iext/common #{LIBEV_CFLAGS} #{extra_compiler_flags} "
                flags << EXTRA_CXXFLAGS
                flags.strip!

                group_all_components_by_category.each_pair do |category, object_names|
                        define_category_tasks(category, object_names, flags)
                end

                task("#{@namespace}:clean") do
                        sh "rm -rf #{@output_dir}"
                end

                return self
        end