Got it to compile and link; attached project below; no idea if safe to upload it to hardware.
Edit: My path to kit is "C:\GreenApps\devkitPro" this is hardcoded in the project search path; will need changed to the proper prefix.
Note: I put stuff in the project file that should be in the compiler setting because it was easier to test and not sure which stuff should be where.
This is just a educated guess on how to do it.
Steps
1. Copy the "GNU GCC Compiler for PowerPC" Compiler
2. Modify the new "GNU GCC Compiler for PPC for Wii" Compiler
2A. Change Compiler Installation Directory
2B. Change Program file prefix for "ppc-" to "powerpc-gekko-"
Example change ppc-gcc.exe to powerpc-gekko-gcc.exe
Tim S.
PS: You might read this and see if it gives you an idea
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_systemChanged "Compile single file to object like below"; not sure if this change is needed if you do not want the .d file to be created.
$compiler $options -MMD -MP -MF $objects_output_dir/$file_name.d $includes -c $file -o $object
Attached wii project file with sample template code.
[attachment deleted by admin]