Complete source code to a simple CS2 plugin is available
here (Subversion repository), including a Makefile to build with gcc in the new Mach-O format. This project could also be converted to work with CodeWarrior. Contact
me with any questions/issues.