Ni Hao dear Zhuang.
I don't know if this is what you want, but anyway here is a small CodeWarrior 11.1 version project that transmits and receives a byte over the 9S08DZ60 SPI as a MASTER device, at 1MHz clock frequency.
Just copy the folder inside the compressed .ZIP file to the desired CodeWarrior Workspace folder. Then, drag and drop the folder from the Workspace to the left (project panel window) in the CodeWarrior IDE C/C++ screen.
You need to do a Project -> Clean just once to correctly compile the project that will bring the information of MY computer disk unit letter and project path. The Clean corrects that so it fits right in your computer. Don't skip this step or you will receive an error message on your console window.
The project is divided in a couple of modules for your convenience. Feel free to modify and adapt to your needs.
Just let me know if this is what you wanted, I hope yes. Attached is the complete working project.
This is how the SPI initialization should look in your hardware perspective.
Processor Expert initialization