Unix Makefile on Windows Visual Studio 2008

I did a decent search, but I can’t find a way to get Visual Studio 2008 to use the Unix Makefile or even create some kind of MSVC compatible equivalent from the Makefile. Anyone have any ideas or similar issues?

Note. I already know the advantages / disadvantages of using the Makefile or not, and I do not want to hear your opinion. All I’m interested in right now is creating a Windows library from some kind of initially unix code that only has a Makefile and gets something functional from it.

TIA.

+4
source share
4 answers

cccl .

cccl - Microsoft Visual ++ cl.exe link.exe. Unix , cl link.

+4

, . Visual ++ make .

MinGW make .

http://www.mingw.org/

+2

nmake. , , GNU Make, Makefile, , , .

+1

As a rule, I see that people use them in the opposite order: use make as the main build system and ask Visual Studio to create their files in batch mode.

I don't have for 2008, but w / VisualStudio2005 you can build a solution with a rule something like this

release = "Win32 Debug"
progname.exe : progname.sln
    devenv $< /Rebuild /"$(release)/"

(Note: I had to use spaces in this example, since the tab just brings me to the next field.)

0
source

All Articles