Code::Blocks Forums
User forums => Help => Topic started by: RhysBJ on June 24, 2006, 10:23:13 pm
-
I can't find how to get Code::Blocks to automatically generate a makefile. I've looked at the faq and it has a section about using custom make files. I tried to follow the first part of this, without enabling custom makefiles but the Build Method combo box is locked in the compiler settings.
I've also searched the forum for similar topics, and the only one that seemed relevent said to use Build->Export makefile. I do not have this option.
I'm using the June 15 build from this year.
-
Hello,
AFAIK, there will not be automatic makefile generation.
Try to search in the forum. I am sure you will find some useful posts.
[EDIT]Also look under: Project-->Properties-->Project
Best wishes,
Michael
-
There was a function "export makefile" a long time ago, but it was sacked for being utterly broken and making more problems that it was good for.
There are currently no plans to reimplement this feature (although that does not mean we will never possibly do so).
If you can live with a makefile that has all its paths hardcoded, you can pretty much make your own makefile exporter rather easily, since you can query everything you need from the compiler plugin. The build process does not do things a lot differently, it asks for all files first, and then asks for a valid set of compiler options for each file.
If you get all files belonging to one target and get the compiler options for one of them, then you should only need to stream all of that to a text file, and you're done (more or less).
However, be warned that the compiler system is being worked over, so the API may change in the future.