如何在Windows中运行Makefile? [英] How to run a makefile in Windows?

查看:144
本文介绍了如何在Windows中运行Makefile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了一些演示,它们带有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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆