There is a sort of, dodgy way to do it, if you just want to use Code::Blocks as an IDE and not use its integrated (fake) makefile generator.
If you go Project -> Properties -> Project Settings, and from there you can select a Makefile to use. If you do this, make sure to select this as being a custom makefile (otherwise it will be overwriten by Code::Blocks).
There might be a better way, but that is what I know.