Author Topic: export as makefile  (Read 22499 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
export as makefile
« on: September 20, 2007, 09:11:56 pm »
Is there a point on the TODO list to implement a export functionality for C::B projects?

e.g. Export such a project as a bakefile. Then everybody can create its own specifik makefiles from it.

What do you think about that?

alex.neundorf

  • Guest
Re: export as makefile
« Reply #1 on: September 20, 2007, 09:42:36 pm »
Do it the other way round: use cmake and let cmake create a CodeBlocks project or makefile or XCode/MSVC/Eclipse/KDevelop project for Linux/*BSD/Windows/Apple/Sun/HPUX/...

The current codeblocks generator in cmake cvs HEAD (for Windows users there is now a nightly build available at http://www.cmake.org/files/vCVS/ ) generates a makefile based codeblocks project.
A native CB project would also be possible, but that requires a lot more work and somebody to do it.

Alex

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: export as makefile
« Reply #2 on: September 20, 2007, 09:46:14 pm »
Quote
Do it the other way round
Right.
Quote
Is there a point on the TODO list...
There is presently no item on the to-do list for that. This doesn't mean it might not implemented one day, just it's not on the schedule.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: export as makefile
« Reply #3 on: September 20, 2007, 09:55:04 pm »
Do it the other way round: use cmake and let cmake create a CodeBlocks project or makefile or XCode/MSVC/Eclipse/KDevelop project for Linux/*BSD/Windows/Apple/Sun/HPUX/...

Sorry, but I think I understand nothing of what you sayed. ;)

cmake is just a other buildsystem beside gnumake, nmake, etc?
cmake can create CodeBlocks projects from its own cmake-makefile-format?

Quote
The current codeblocks generator in cmake cvs HEAD (for Windows users there is now a nightly build available at http://www.cmake.org/files/vCVS/ ) generates a makefile based codeblocks project.
A native CB project would also be possible, but that requires a lot more work and somebody to do it.

cmake generate "a makefile based codeblocks project"
"native CB project would also be possible"
What is the difference? cmake generate CB project files AND "native" CB project files? It confusing me.

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: export as makefile
« Reply #4 on: September 21, 2007, 08:20:55 am »
Is there a point on the TODO list to implement a export functionality for C::B projects?

e.g. Export such a project as a bakefile. Then everybody can create its own specifik makefiles from it.

What do you think about that?
Try my plugin. cbMakefileGen being created a simple makefile for exists C::B project.
cbMakefileGen sources available (see below). Binary Win32 only now. My plugin tested on Linux too (Ubuntu).
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Mathieu

  • Guest
Re: export as makefile
« Reply #5 on: March 02, 2008, 10:00:59 am »
Do it the other way round: use cmake and let cmake create a CodeBlocks project or makefile or XCode/MSVC/Eclipse/KDevelop project for Linux/*BSD/Windows/Apple/Sun/HPUX/...

Sorry, but I think I understand nothing of what you sayed. ;)

cmake is just a other buildsystem beside gnumake, nmake, etc?
cmake can create CodeBlocks projects from its own cmake-makefile-format?

Quote
The current codeblocks generator in cmake cvs HEAD (for Windows users there is now a nightly build available at http://www.cmake.org/files/vCVS/ ) generates a makefile based codeblocks project.
A native CB project would also be possible, but that requires a lot more work and somebody to do it.

cmake generate "a makefile based codeblocks project"
"native CB project would also be possible"
What is the difference? cmake generate CB project files AND "native" CB project files? It confusing me.

This is a very late answer to this thread, but for future readers it might be good to not leave this question hanging there...

CMake (http://www.cmake.org) is to considered as build system generator. You write your project description using the CMake syntax and the CMake tool (command line or graphical) will generate the files for the build system targeted. The build system targets available depend on the OS you use and the available compilers or IDE's you have. For example under windows you might use minGW makefiles, MSVC 6/7/8 solutions or NMake makefiles, under Linux you have gnu Makefiles, KDevelop projects,  under MacOSX you have gnu makefiles but also XCode projects. Recently the Eclipse CDT project target has been added.

What alex.neundorf was trying to say is that Code::Blocks could just be another build system target and that using CMake it would be very (very) easy to switch to another build system/IDE.

HTH
Mathieu

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: export as makefile
« Reply #6 on: March 02, 2008, 10:42:44 am »
According to the Cmake documentation, it will have a Code::Blocks project file generator soon:
http://www.cmake.org/Wiki/CMake_Generator_Specific_Information#Code::Blocks_Generator

Quote
Starting with version 2.6.0 CMake also comes with a project file generator for the [CodeBlocks IDE].
This support is still in beta and needs feedback in order to mature.


Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: export as makefile
« Reply #7 on: March 03, 2008, 07:32:26 pm »
Another alternative for Makefile generation is Premake. We use Premake to generate both Makefiles and Code::Blocks projects for wxFormBuilder, and it has been working very well for the past year.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: export as makefile
« Reply #8 on: March 03, 2008, 08:08:38 pm »
Another alternative for Makefile generation is Premake. We use Premake to generate both Makefiles and Code::Blocks projects for wxFormBuilder, and it has been working very well for the past year.

QFT. Premake works very nicely with Code::Blocks.
Be patient!
This bug will be fixed soon...

Offline jsibarani

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: export as makefile
« Reply #9 on: March 04, 2008, 12:02:46 pm »
Another alternative for Makefile generation is Premake. We use Premake to generate both Makefiles and Code::Blocks projects for wxFormBuilder, and it has been working very well for the past year.

QFT. Premake works very nicely with Code::Blocks.

Yeah, i succesfully compiled  wxJavaScript Code::Blocks project files generated by premake.
It just work great