From: Biplab K. M. <bk...@gm...> - 2007-09-20 07:06:55
|
NightStrike wrote: > On 9/19/07, Biplab Kumar Modak <bk...@gm...> wrote: >> Christian Buhtz wrote: >>> Is there a way (a tool) to create a makefile without learning the syntax? >>> with a nice and ergonomic UI? >>> >> There are several tools to generate makefiles for multiple compilers. >> Bakefile (http://bakefile.org/), CMake (http://www.cmake.org/), Premake >> (http://premake.sourceforge.net/), etc to name a few. None of them have >> a good gui to use (except CMake, which contains a barebone GUI). >> >> Generally you would have to create a project description file for these >> tools and they will then generate the makefiles. >> >> Personally I use Bakefile. It's been used by wxWidgets team. Though it >> has several limitations. E.g., you can't specify the object file output >> directory of multiple targets. It has good tutorials in it's website and >> you'll be able to pick it up quickly. > > Are these very different from automake? > Yes, they are different. They have their own project formats. Bakefile uses xml files. To give you an example- <?xml version="1.0" ?> <makefile> <exe id="HelloWorld"> <app-type>console</app-type> <sources>HelloWorld.cpp</sources> </exe> </makefile> Save the above contents as Hello.bkl and then at console you type the following- bakefile -f mingw Hello.bkl Now bakefile will generate makefile.gcc file which you can use mingw32-make to execute that makefile. If you type- bakefile -f watcom Hello.bkl a makefile (makefile.wat) for OpenWatcom compiler would be created. It can also generate autotools scripts from the same project file. But I have never tried that. Other projects have their own project file formats. But they also generate makefile for multiple compilers from the same project file. Best Regards, Biplab |