solve target dependencies and link binary