Deformed Hartree-Fock calculation of proton-rich nuclei