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?
Is there anyway to export workspace in to makefile?
-
- CodeLite Curious
- Posts: 1
- Joined: Mon May 31, 2010 11:51 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Is there anyway to export workspace in to makefile?
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):
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
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
So to conclude: the makefiles are always generated (this is how codelite builds)
Eran
Make sure you have read the HOW TO POST thread