User forums > Help

How to export a makefile

(1/3) > >>

kelo81:
Hello fellows, I've been using Codeblocks to create my project under Windows and Linux, by using multiple targets. The problem is that I want to get a makefile from the linux project, because I need codeblocks to edit the project, but not to compile. I mean, if I want to redistribute my project (the sources), I don't want to force the users to use codeblocks to compile it. Is there any way to export a makefile from a project?, this is not an executable, but a shared lib (*.so) and I don't know how to make it; and also, I want to avoid writting a big file by including all hte project sources  :? .
Thanks in advance, this is a really great project!!

kelo81:
If codeblocks doesn't have the posibility to do dat, it might be a tool or something else that allows to automatically create makefiles with predefined targets right? Like shared *.so libs, or dinamic DLL for windows, or *.exe ; all from the *.cpp sources. Do anyone know any method to do something like that?

DoMeN:
As far as I know C::B doesn't support that (I think that someone else asked this question on forum a while ago).

Check out Autotools but I'm not vrey familiar with them so I'm not shore if this is what you are looking for.

r. Domen

kelo81:
Thanks, I'll check it.
However, I think it's an intresting feature to be added, a plugin that generates makefiles from codeblocks projects... unfortunately I have not enought knowledge to program that :( .

jazz:
I think it's interesting that there is a menu option under 'Build' on the menu bar that says 'Export Makefile' but it is grayed out.  :?  (I'm using SVN 3703)

I too would like to supply a Makefile with my source instead of forcing people to use codeblocks when they don't need to.

Navigation

[0] Message Index

[#] Next page

Go to full version