Mars has useful quantities of ice and an atmosphere that's 96% CO2. We wouldn't need to export any oxygen to Mars and probably wouldn't need to export much or any water either. Really, the biggest doubt is about the quantity of readily-available nitrogen.
On the grandest scale, we could take CO2 from Venus and hydrogen from Saturn or Jupiter. The logistics aren't exactly straightforward, but the quantities available are immense.