Try codeblocks --help to see all the command line option.
But this won't help you as cb doesn't support compiling makefile projects with a cbp project file.
The best thing you can do is consult the documentation of the library you're trying to build for the exact method you need to use on your operating system.
BTW: Keep in mind that codeblocks is not a compiler/linker, but an IDE!