views:

785

answers:

3

I know about CMake and bakefile already, but that is not what I am looking for.

Is there a tool that will generate a makefile given a VC project? (or at least a first attempt at one) so I don't have to do all the work by hand?

Alternatively, is there a tool that makes CMake files?


Edit:

Following the link below leads me to this:

http://www.winehq.org/docs/winemaker

That is a great help. I have not tried it yet.

+1  A: 

I am not aware of such a converter. There is however mpc that can create both makefiles and VC projects from the same mpc DSL.

supports multiple versions of make (GNU, Microsoft, Borland, Automake), Visual C++ 6.0 and Visual Studio 2003, 2005 and 2008.

lothar
out of votes for today. I'll +1 tomorrow.
Tim
+3  A: 

As of version 1.1.19, Wine (http://www.winehq.com/) allows you to do something like that. It includes a tool called "winemaker" which originally was intended to aid in porting Windows C/C++ sourcecode to Unix platforms. So, originally, it was mostly concerned with converting line endings, fixing lower/uppercase issues and forward/backward slashes. But as of version 1.1.19 it can also take a Visual Studio project (dsp,dsw,vcproj or sln) file as its input and create a Makefile.

Takis
+1  A: 

http://www.codeproject.com/KB/cross-platform/sln2mak.aspx

Raindog
thanks for the link
Tim
Unfortunately that project won't build under vs2008 for me and the binaries don't seem to work at all either. Perhaps someone will chime in here if they have experience with it.
Tim
Try something like mono?
Raindog