iPhone开发环境中的makefile是什么?
我已经开发 iPhone 应用程序几个月了,我已经浏览了一些 iPhone 开源应用程序的一些示例,其中包含“makeFile”文件。就像cydia已经来到这里一样 Cydia 源代码
我用谷歌搜索了它,但找不到任何令人满意的解释。所有的解释都有些复杂。
有人可以用简单的语言解释一下这个 makefile 是什么吗?
i have been developing iPhone apps for a few months now, i have gone through some examples of some iphone open source apps which have "makeFile" file in them. Just like cydia has got here
Cydia Source Code
i googled for it but couldnt get any satisfactory explanation of it. All explanations are somewhat complex.
Can somebody please explain me in simple language what this makefile is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Xcode 中,您从菜单中选择“Build”,它会编译您的项目。 Makefile 执行相同的操作,但命令行除外。 Makefile 包含有关在更改某个文件时需要重建哪些文件的信息。
请参阅 http://en.wikipedia.org/wiki/Makefile
Makefile 很好,因为它们可以工作在各种各样的系统上。
In Xcode, you select "Build" from the menu and it compiles your project. A Makefile does the same thing, except from the command line. A Makefile contains information about which files need to be rebuilt if you change a certain file.
See http://en.wikipedia.org/wiki/Makefile
Makefiles are nice because they work on a very wide variety of systems.
make 文件就像 Windows 中的可执行文件。它有一个预设的命令列表来运行,以便“使”您的应用程序工作,并且它可以管理您的依赖项,因此您不必不断地重新指定它们。 make 文件的替代方法是在控制台中运行应用程序。
在命令行中运行应用程序的问题是,每当您想要运行应用程序时,您可能需要重复指定所有项目参数。从命令行运行应用程序的另一个缺点是您必须打开终端/dos 才能运行应用程序。应用程序的大多数最终用户都不想这样做。拥有 makefile 使得启动应用程序就像单击 makefile 一样简单。
makefile 和 .exe 等其他文件之间的主要区别是它们与平台无关并且可以在多个操作系统中运行。
A make file is like an executable in windows. It has a preset list of commands to run in order to "make" your application work and it can manage your dependencies so you don't have to constantly respecify them. The alternative to a make file is running the application in a console.
The problem with running applications in a command line is that you may need to repeatedly specify all the project parameters whenever you want to run an application. Another downside to running an application from the command line is that you have to open the terminal/dos in order to run your application. Most end users of you application are not going to want to have to do this. Having a makefile makes starting up your application as easy as clicking on a makefile.
The main difference between a makefile and other files like .exe is they are platform independant and can be run in multiple operating systems.