Add recursive dependencies and .S extention support