如何在Windows中运行Makefile? [英] How to run a makefile in Windows?
问题描述
我下载了一些演示,它们带有Makefile.win和Makefile.sgi.如何在Windows中运行这些文件以编译演示?
I have some demos that I downloaded and they come with a Makefile.win and a Makefile.sgi. How can I run these in Windows to compile the demos?
推荐答案
如果具有Visual Studio,请从开始"菜单运行Visual Studio命令提示符,切换到包含Makefile.win
的目录,然后键入以下内容:
If you have Visual Studio, run the Visual Studio Command prompt from the Start menu, change to the directory containing Makefile.win
and type this:
nmake -f Makefile.win
您还可以使用常规命令提示符并运行vsvars32.bat(VS2008的c:\ Program Files(x86)\ Microsoft Visual Studio 9.0 \ Common7 \ Tools).这将设置运行nmake的环境并找到编译器工具.
You can also use the normal command prompt and run vsvars32.bat (c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools for VS2008). This will set up the environment to run nmake and find the compiler tools.
这篇关于如何在Windows中运行Makefile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!