Page 1 of 1

Is there anyway to export workspace in to makefile?

Posted: Tue Jun 01, 2010 12:01 am
by hinewwiner
I have a workspace in Codelite and I want somehow to export it as makefile. (so that others can compile the workspace even without codelite)

Is there any way to do this?

Re: Is there anyway to export workspace in to makefile?

Posted: Tue Jun 01, 2010 8:50 am
by eranif
There is no need to tell codelite to export the workspace to makefile, it always does that.

However, codelite does not uses a single makefile but rather chain of makefiles:

Lets assume that you have the following workspace / projects setup:

MyWSP - P1
- P2
- P3

Codelite will create 4 Makefiles:
MyWSP_wsp.mk, P1.mk, P2.mk, P3.mk

To compile your codelite, codelite runs this command (but not exact):

Code: Select all

make -f MyWSP_wsp.mk
the 'main' makefile is simply a makefile that calls the project makefiles in the correct order


So to conclude: the makefiles are always generated (this is how codelite builds)

Eran