Modify link equence in makefiles