dependency(); if (!$deps) return false; foreach ($deps as $dep) { if (has_extension($dep, ".o")) continue; if (has_extension($dep, ".a")) continue; return false; } return true; } /** * The dependent recipe */ protected function recipe($project, $file) { $deps = $file->dependency(); $args = implode(" ", $deps); $name = $file->name(); if (has_extension($name, ".a")) return "ar rcs $name $args"; return "g++ -static -o $name $args"; } } ?>