Check the connections of the cables and make sure they are solid. Make sure the cables themselves are in good condition. They could be full of corrosion. Lastly, make sure the connection to the starter relay is good. It sounds like the relay is just clicking due to lack of adequate current.