什么是Makefile以及它是如何工作的? [英] What is a Makefile and how it works..?
本文介绍了什么是Makefile以及它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试理解并在makefile上做一个简单的项目。
我无法理解make文件是什么以及它是如何执行的,任何人都可以帮助我理解它。
我需要使用C编程创建一个示例。
I'm trying to understand and do a simple project on makefile.
I couldn't understand what a make file is and how it executes, can anyone help me to understand it.
I need to create a sample using C programming.
推荐答案
你可能会开始阅读教程,例如:按示例制作文件 [ ^ ]。
You might start reading a tutorial, see, for instance: "Makefiles by examples"[^].
你可以使用这些链接了解makefile:
1- http://oucsace.cs .ohiou.edu /~bhumphre / makefile.html [ ^ ]
2- http:// www .cs.swarthmore.edu /〜纽霍尔/ unixhelp / howt o_makefiles.html [ ^ ]
3- http://www.cs。 duke.edu/courses/cps108/doc/makefileinfo/sample.html [ ^ ]
Hi,
You can use these link to learn about makefiles:
1- http://oucsace.cs.ohiou.edu/~bhumphre/makefile.html[^]
2- http://www.cs.swarthmore.edu/~newhall/unixhelp/howto_makefiles.html[^]
3- http://www.cs.duke.edu/courses/cps108/doc/makefileinfo/sample.html[^]
这里是一个很好的Makefile示例及其逐行说明。
您可以从CLI执行makefile(主要是在类Unix系统中,如我知道)使用make
命令,它们通常用于在程序编译时自动执行任务。
Here is a nice example of a Makefile and its explanation line by line.
You execute makefiles from the CLI (mostly in Unix-like systems, as far I know) using themake
command, and they are normally written for automating tasks during a program's compilation-time.
这篇关于什么是Makefile以及它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文