makefile及其用途 [英] makefile and its uses

查看:143
本文介绍了makefile及其用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是makefile,我如何使用它?

What is a makefile and how do I use it?

推荐答案

Makefile的主要目的是存储每一个需要在一个地方构建您的项目。它包含编译代码,链接编译代码,打包可执行文件,提取第三方工具和许多其他有用的事情的说明。几乎任何命令都可以在命令行中用于makefile。

The main purpose of a Makefile is to store every you need to build your project in one place. It contains the instructions for compiling your code, linking your compiled code, packaging the executables, extracting third party tools, and many other useful things. Pretty much any command you entire at the command line can be used in a makefile.

使用makefile的优点至少在正确地完成后,任何人都可以轻松地构建整个项目。它很容易输入 make

The advantage to using a makefile, when done correctly at least, is that anyone can easily build your entire project. It's as easy as typing make

Windows项目的Makefile示例 http://www.opussoftware.com/tutorial/TutMakefile.htm

An example of a Makefile for a windows project http://www.opussoftware.com/tutorial/TutMakefile.htm

这篇关于makefile及其用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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