Are you kidding? An interplanetary war would unite the earth and get every economy churning into high gear! And since we're destroying automatons, there's no pesky moral issues to worry about!
Frankly, we can't afford not to declare war on the hypothetical Martian robots!