Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: alu on July 22, 2005, 05:57:57 am
-
Hi guys, I can't figure out how to do this:
I want to see all of the commands that are run when I press the "compile" version. I can see all kinds of options which allow me to suppress/unsupress error messages, but how can I see *what* is actually being called.
Also, is there anyway to generate a makefile from project? I'm trying to create a template and I can't really see how things fit in.
Thanks
-
For the first 'question' go to Settings -> Compiler. Click the "Other" tab. In "Compiler logging:" select "Full command line".
I've never tried to create makefiles with Code::Blocks, but just in the same place ("Other" tab) you find "Build method:" and there is "Work with Makefiles (GNU "make" is required)".
-
thanks bro, exactly what I wanted :)
-
I've never tried to create makefiles with Code::Blocks, but just in the same place ("Other" tab) you find "Build method:" and there is "Work with Makefiles (GNU "make" is required)".
Actually this will change the build method.
If you want to just create a Makefile so your app can be compiled without C::B, click on "Compile->Export Makefile".
Yiannis.
-
Just to confirm, this exported Makefile is will allow me to see exactly how C::B is compiling my app, how it handles dependencies, etc...?
-
Just to confirm, this exported Makefile is will allow me to see exactly how C::B is compiling my app, how it handles dependencies, etc...?
Yes, it generates a complete makefile with dependencies and all.
I suggest you try it with small projects to be able to understand how it works...
Yiannis.