https://github.com/netpipe/CBP2MAKEFILE just had this freelanced
Nice work!
This does not work if your project search paths include Code::Blocks global variables.
It would be useful if global variable definitions could be exported to the makefile so that the include paths etc. would work.