I have a Visual Studio project that uses a solution file to build it. I want to generate a makefile so that I can build it using the makefile instead of the solution file. (The reason I need to do this in case you are wondering is that I am incorporating my project into a larger software system that uses makefiles to build, and I want to be able to build the whole thing using the makefiles.)
Is there a way to automatically get the information from the Visual Studio solution and convert it into a makefile format, or do I need to do that manually?
This used to be possible in VC6, it had an option to generate a makefile from a .dsp project file. No more, the build process has changed too much to make this achievable.
Not a real problem, you can have the makefile invoke the vcbuild.exe tool, it builds a .vcproj project. Important switches you’ll want to use in your makefile:
For example:
Note that the build system got a major revision in VS2010, you’ll use msbuild.exe instead to build the .vcxproj project.