Hi,
If it's a gcc based compiler you can just use the standard gcc compiler driver, but just change the location of the compiler.
Obviously you need to set options etc...
GDB is supported by codeblocks. But you need to use OpenOCD to control your LPC device. When debugging, launch OpenOCD with appropriate script, set GDB to i.e "target remote localhost:2000" so GDB connects to OpenOCD.
Cheers,
Martin.