Routes to heavy-fermion superconductivity