基于 Windows 的 make 工具的推荐
有人有什么好的、快速的制作工具推荐吗? SCons? KJam? 还有别的事吗?
跨平台工具也是可以接受的。
Does anyone have any recommendations for a good, fast, make tool? SCons? KJam? Something else?
Cross platform tools would also be acceptable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
你的标题中提到了在PC上,所以我假设你指的是Windows? 如果是这样,我建议安装 Cygwin 环境,如果您安装所有软件包,GNU's make 是交易的一部分。 如果您使用的是 Linux 平台或 Unix 变体之一,那么您可以直接使用 GNU make。
On a PC is said in your title, so I assume you mean Windows? If so, I would recommend installing the Cygwin environment and if you install all the packages along with it, GNU's make is part of the deal. If you are on a Linux platform or one of the Unix variants, then you can just go with the GNU make directly.
您可能对跨平台工具感兴趣,例如 Ant、Rake, Gant 。 这些应该为您提供 GNU make 的大部分(如果不是全部)功能,尽管编译 C 代码可能比其他版本更难。
You may be interested in cross-platform tools like Ant, Rake, Gant. These should give you most, if not all the functionality of GNU make, though compiling C code may be harder in some than other.
我最近开始使用 BJam。 它是跨平台的,并且具有比 make 更清晰的语法。
I've recently started using BJam. It is cross-platform and has a saner syntax than make.
如果您使用的是 Windows 并且拥有 .Net Framework,则可以使用 MSBuild。 它与 nAnt 非常相似,并且也得到了社区的大力支持(有一些非常详细的社区工具包)。 它的学习曲线有些陡峭,但一旦掌握了它的窍门,它就会非常强大。
另一种选择是编写 PowerShell 脚本。 我想这取决于你想做什么。 根据我对 makefile 的有限经验,它们通常是编译某些内容或设置环境条件,您将在 Windows 平台上使用批处理文件。
If you're on Windows and you have the .Net Framework, you can use MSBuild. It's very similar to nAnt, and also has a lot of support from the community (some very detailed community toolkits are out there). It has a somewhat steep learning curve, but it's quite powerful once you get the hang of it.
Also another option could be writing PowerShell scripts. It depends what you want to do I guess. In my limited experience with makefiles, they've usually be to compile something, or set environment conditions, which you would use batch files for on a Windows platform.
如果您需要构建基于 C 语言的项目,请查看 www.routinetools.com 上的 rtEasyMake。 它基于 Windows 并且非常容易设置。
If you need to build C-language based projects, take a look at rtEasyMake at www.routinetools.com. It is windows based and very easy to setup.