It depends on the strategic positioning of the T-Rex army.
If it was as a war between nations, nukes could be used to destroy the dinosaur operations base before an offensive was launched, providing Man acted in time.
But if the T-Rexes were to appear amongst us suddenly as an invasion force, then there would be nothing we could do.