Page 1 of 1

Top level makefile overhaul

Posted: Wed Oct 24, 2012 4:21 am
by grizzie17
I'm trying to figure out how create a new top level makefile. Right now it appears that CodeLite always creates a top level makefile that is a single project. This entirely defeats the bennefit of having multiple jobs. By experimenting I have found that if you have a decent top-level makefile you can set your job count to at least double your number of cores. I am attaching a sample makefile for what I want to generate. This correctly drives the project makefiles that I have already supplied a patch.

Any recommendations would be greatly appreciated for how to change CodeLite to produce this type of file.

-- humbly John

Re: Top level makefile overhaul

Posted: Thu Oct 25, 2012 4:38 am
by grizzie17
I've updated my "desired" makefile so it will correctly recognize the errors/warnings (the desire would be to load the makefile with the regex build patterns).

-- John

Re: Top level makefile overhaul

Posted: Thu Oct 25, 2012 5:07 am
by eranif
atm, codelite does not support parallel building of projects, however it does support multiple compilation of files.

Note that the new top level makefile you attached is nice, but it probably wont work under Windows ( and I am not sure it will work with older Mac machines as well)

Eran