Just send the federal 1040 to the IRS. Send the California 540 to California. Calif might want a copy of the 1040 too. When you print it out there might be an extra 1040 after California to send with CA. There should be a cover sheet for federal and CA saying what to file and where. Unless you efiled, then you don't mail anything to anyone.