Codeblocks is probably the easy part ..
./configure CC=arm-linux-gcc CXX=arm-linux-c++
The real hard? work is :
1) Codeblock depends on wxGTK2.8 : Must be cross compiled.
2) But to build wxGTK2.8 ( wx widgets ), all wxGTK2.8's
twenty dependencies must be present as cross compiled
libraries.
Example dependency list, libwxgtk2.8-0 :
http://packages.debian.org/lenny/libwxgtk2.8-0
As you can see, libwxgtk2.8-0 is available for 'arm'.
And may be the most libs too. Check it yourself, please.
libwxgtk2.8-dev :
http://packages.debian.org/lenny/libwxgtk2.8-dev
.....
Good luck .. ..
..
.....