请输入您要查询的百科知识:

 

词条 make
释义

基本意义有制造, 安排, 使成为, 认为, 产生, 获得, 进行, 构成等,使用频繁,另外还有一些特殊用法和固定用法等。

词义

make

[meik]

vt.

制造, 安排, 使成为, 认为, 产生, 获得, 进行, 构成 .制造

vi.

开始, 前进, 增大, 被制造, 被处理

n.

制造, 构造, 性情

程序

定义

当你写一个简单的程序,只有一到两个源文件的时候,输入

% cc file1.c file2.c

就没什么问题,但如果有很多源文件就会很烦人──编译的时间也会很长。

一个方法就是使用目标文件,只在源文件有改变的情况下才重新编译源文件。因此你可以这样做:

% cc file1.o file2.o ... file37.c ...

上次编译后,file37.c 发生了改变,但其他文件没有。这样做可以让编译过程快很多,但是也不能解决累人的输入问题。

或者我们可以使用一个 shell script来解决输入问题,但是也需要重新编译所有文件,在大型项目上很没有效率。

行动

如果有成百上千的源文件的话怎么办?如果我们在与很多人合作写程序,别人对源文件进行了修改,又没有告诉你,该怎么办?

也许我们可以把以上两种方法结合,写一种像 shell script 一样的东西。这种文件包含某种技巧可以决定什么时候该对源文件进行编译。现在所有我们要的就是一个程序可以懂得这种技巧,因为要懂得这种技巧,shell 还没那么大的能耐。

解释

这个程序就叫 make。它读入一个文件,叫 makefile,这个文件决定了源文件之间的依赖关系。而且决定了源文件什么时候该编译什么时候不应该编译。例如,某个规则可以说 “ 如果 fromboz.o 比 fromboz.c 要旧,意思就是有人修改了 fromboz.c,因此我们需要重新编译这个文件。”这个 makefile 还有规则通知 make 该 怎么 重新编译源文件,因此 make 是一个强大得多的工具。

makefile 通常和相关的源文件保存在同一个目录下,可以叫做 makefile,Makefile 或者 MAKEFILE。大多数程序员会使用 Makefile 这个名字,因为这样可以让这个文件被放在目录列 表的顶端,可以很容易得看见。

词例

这是一个非常简单的 make 文件:

foo: foo.c

cc -o foo foo.c

包含两行,一行是依赖关系,一行是执行动作。

依赖关系的那一行包含了程序的名字 (叫做 target),紧跟着一个冒号,然后是空格,最后是源文件的 名字。当 make读入这一行的时候,会检查 foo 是否存在;如果存在,就比较 foo 和 foo.c 最后的修改时间有什 么不同。如果 foo 不存在,或者比 foo.c 要旧,就检查执行动作那一行看看该怎么做。换句话 说,就是 foo.c 需要重新编译的时候该怎么办。

执行动作那一行以一个 tab (按下 tab) 开始,然后是你在命令行下产生 foo 所执行的命令。如果 foo 过期了,或者不存在,make 就会 执行这个命令来产生 foo。换句话说,这就是重新编译 foo.c 的规则。

因此,当你输入 make 时,它会确定 foo 和 foo.c 在修改时间上是否同步。这个原则可以在 Makefile 里扩展到成百上千的目标文件上──实际上,在 FreeBSD 里,你只要在合适的目录下输入 make world 就可以编译整个操作系统!

makefile 另一个有用的特点就是目标文件不一定就是程序。例如,我们可以 有这样的 make 文件。

foo: foo.c

cc -o foo foo.c

install:

cp foo /home/me

我们可以输入如下的命令告诉 make 该执行哪个目标:

% make target

make 会只执行这个目标而忽略其他的目标。例如,如果我们输入 make foo,就只有 foo 被执行,必要的情况下重新编译 foo 而不会继续执行 install 这个目标。

如果我们只是输入 make 这个命令,make 总会寻找第一个目标,并且在执行完以后就不管其他的目标了。例如,如果我们输入 make foo,make 就会转到 foo 这个目标,在必要的情况下重新编译 foo,而不会执行 install 目标, 然后就停止了。

一定要注意,install 这个目标不依赖任何其他的东西!这意味着我们一旦输入 make install,这个目标下的所有命令都将被执行。这种情况下,foo 将被安装到用户的家目录下。应用程序的 makefile 正是这样写的,以便程序在正确编译后可以被安装到正确的目录。

要尝试解释的话会比较容易让人混淆。如果你不太懂 make 是如何工作的,最好的办法就是先写一个简单的程序例如 “hello world” 以及和上面的例子相同的 make 文件再去实验。然后 再进一步,使用多个源文件,或者让你的源文件包含一个头文件。 touch 命令在这里就非常有用了──它能让在不改变文件内容的情况下改变文件的日期。

词组

1.make up to sb 讨好、巴结某人

2.make up for sth in/with 弥补

3.make towards sth 移动,移向

4.make sth of sb/sth 了解、理解

5.make sb/sth into sth 将......制成(变成)

6.make out 听出,看出,辨认出

7.make off 溜掉,匆忙离开

8.make off with sth 抢走,拿走(他人之物)

9.make for sth 朝......走去,朝......前进

10.make away with sb/sth 偷窃(某物)

11.make the most of 充分利用

12.make a go of sth 尽力以使某事成功

13.make too much of 过分重视

14.make a day/night/evening of it 花整天/整夜/整个晚上的时间做某事

15.make out a cheque/bill etc 开支票/帐单等

16.make sb out to be sth 假称,把......说成

17.make out a case (for) 找到充分的理由证明(解释)

20.make sb. doing sth. 让某人一直做某事

21.make sth. done 指让别人帮助完成某事

22.make sb do sth 让某人做某事

传统词典

make

make

AHD:[m³k]

D.J.[me!k]

K.K.[mek]

v.(动词)

made[m³d] mak.ing,makes

(1)

To cause to exist or happen; bring about; create:

使存在,使发生:导致存在或发生;使发生;创造:

made problems for him; making a commotion.

为他制造问题;引发暴乱

(2)

To bring into existence by shaping, modifying, or putting together material; construct:

制成:用塑造、修改或把材料放在一块的方法导致存在;建造:

make a dress; made a wall of stones.

做衣服;砌石墙

(3)

To form by assembling individuals or constituents:

集成:把个体或成份组合而形成:

make a quorum.

达到法定人数

(4)

To change from one form or function to another:

使功能改变:把一种形式或功能转换成另外一种:

make clay into bricks.

把泥土制成砖块

(5)

To cause to be or become:

使成或变成:

made her position clear; a decision that made him happy.

使她的地位明朗化;此决定令他高兴

(6)

To cause to assume a specified function or role:

当做,当成:使具有一种特定的功能或成为某个角色:

made her treasurer; made Chicago his home.

视她为出纳员;把芝加哥当成他的家

(7)

To cause to act in a specified manner:

造成,导致:以特定的方式引起行动:

Heat makes gases expand.

热使得气体膨胀

(8)

To compel:

促使:

made him leave.

迫使他离开

(9)

To form in the mind:

在头脑中形成:

make an estimate.

做估算

(10)

To compose:

创作:

make verses.

创作诗歌

(11)

To prepare; fix:

准备;安排:

make breakfast.

准备早餐

(12)

To get ready or set in order for use:

准备使用:准备或料理好以便使用:

made the bed.

整理床铺

(13)

To gather and light the materials for (a fire).

生火:收集材料并点燃(生火)

(14)

To engage in:

从事:

make war.

开战

(15)

To carry out; perform:

执行;进行:

make a telephone call; make an incision.

打电话;切开

(16)

To achieve, produce, or attain:

实现,产生,达到:

made peace between the two factions; not making sense; didn't make the quota.

在两个派别之间实现和平;毫无意义;没有达到定额

(17)

To institute or establish; enact:

制订:制定或者建立;颁布:

make laws.

制定法律

(18)

To draw up and execute in a suitable form:

订立:以合适的形式拟定并实施:

make a will.

立遗嘱

(19)

To arrive at; reach:

到达;抵达:

made Washington in two hours.

在两小时内到达华盛顿

(20)

To reach in time:

及时赶上:

just made the plane.

刚好赶上飞机

(21)

To attain the rank or position of:

达到地位:达到某种职位或军衔:

She made lieutenant.

她的军衔为中尉

(22)

To acquire a place in or on:

组成,得到:获得一个位置:

made the basketball team; made the morning papers.

组成篮球队;收到早报了

(23)

To gain or earn, as by working:

赚到:通过工作赚得或获得:

make money.

赚钱

(24)

To behave so as to acquire:

使成为:为了获取而做某些行为:

make friends.

交朋友

(25)

To score or achieve, as in a sport:

得分:在体育比赛中得分或成功:

made a field goal.

射门得分

(26)

To assure the success of:

确保…的成功:

A favorable review from him can make a play.

他赞赏的评论能使这场戏成功

(27)

To favor the development of:

有利于…的发展:

Practice makes a winning team.

勤加训练必有助于球队获得胜利

(28)

To be suited for:

对…合适:

Oak makes strong furniture.

橡木合适做耐用家具

(29)

To develop into:

发展成为:

She will make a fine doctor.

她将会成为一个好医生

(30)

To draw a conclusion as to the significance or nature of:

下结论:作出对…的意义或本性的结论:

don't know what to make of the decision.

不知道怎样作决定

(31)

To calculate as being; estimate:

估计是;估算:

I make the height 20 feet.

我估计有20英尺高

(32)

To consider as being:

认为是:

wasn't the problem some people made it.

有些人不认为这是一个问题

(33)

To constitute:

构成:

Twenty members make a quorum.

二十个成员构成法定人数

(34)

To add up to:

等于:

Two and two make four.

二加二等于四

(35)

To amount to:

接近,相当于:

makes no difference.

没有什么区别

(36)

To constitute the essence or nature of:

架构:构成…的精华或本质:

Clothes make the man.

由穿着便可了解一个人

(37)

To cause to be especially enjoyable or rewarding:

使有意义:使成为特别有乐趣或值得的:

You made my day.

你使我的生活特别有意义

(38)

To appear to begin (an action):

准备:看上去开始(一个动作):

She made to leave.

她准备离开

(1)

To act or behave in a specified manner:

做:明确地做或行为:

make merry; make free.

快乐地做;自由地做

(2)

To begin or appear to begin an action:

准备做:开始或看上去开始一个动作:

made as if to shake my hand.

好象要和我握手

(3)

To cause something to be as specified:

确认:使某事物变得明确:

make ready; make sure.

准备好;确认

(4)

To proceed in a certain direction:

按某一方向前进:

made for home; made after the thief.

回家;追赶小偷

(5)

Slang To pretend to be; imitate. Used withlike :

【俚语】 假扮;模仿。与like 连用:

made like a ballerina.

模仿芭蕾舞女演员

(6)

To undergo fabrication or manufacture:

生产:经编写或生产成为:

This wool makes up into a warm shawl.

这种羊毛织成了很暖和的围巾

(7)

To rise or accumulate:

上升或积聚:

The tide is making.

正在涨潮

n.(名词)

(1)

The act or process of making; manufacturing.

制造:制作或生产的动作或过程;生产

(2)

The style or manner in which a thing is made:

制作样式:生产某事物的风格或方式:

disliked the make of her coat.

不喜欢她衣服的样式

(3)

The amount produced, especially the output of a factory.

生产量:生产的数量,特别是一座工厂的产量

(4)

A specific line of manufactured goods, identified by the manufacturer's name or the registered trademark:

牌子:产品特定的种类,以生产商的名字或者注册的商标来识别:

a famous make of shirt.

名牌衬衫

(5)

The physical or moral nature of a person; character or disposition:

性格:一个人的身体或精神上的本质;性格或者性情:

found out what make of man he was.

得知他是一个什么样的人

(6)

Slang Identification of a person or thing, often from information in police records:

【俚语】 档案:一个人或事物的身份,经常从警方记录的信息中得出:

Did you get a make on the assailant?

你得知有关攻击者的资料了吗?

常用词组

make for

(1)

To have or cause to have a particular effect or result:

造成,促成:有或促使有某种特定的效果或者结果的:

small details that make for comfort.

令人舒适的小节

(2)

To help promote; further:

帮助提升;推进:

makes for better communication.

促进更好的交流

make off

To depart in haste; run away.

急忙离开;跑走

make out

(1)

To discern or see, especially with difficulty:

辨明:辨明或看清,特别是在有困难的情况下:

I could barely make out the traffic signs through the rain.

在雨中我几乎看不清交通标志

(2)

To understand:

理解:

could not make out what she was saying.

不能理解她在说些什么

(3)

To write out; draw up:

写下来;列出:

made out the invoices.

开具发票

(4)

To fill in (a form, for example).

填写(如表格)

(5)

Informal To imply or suggest:

【非正式用语】 暗示,建议:

You make me not to be a liar.

你暗示我不要说谎

(6)

Informal To try to establish or prove:

【非正式用语】 试图建立或者证明:

He made out that he was innocent.

他试图证明自己是无辜的

(7)

To get along in a given way; fare:

进展:在给定的道路上前进;进展:

made out well in business.

在生意上进展顺利

(8)

Slang

【俚语】

(9)

To neck; pet.

相互亲吻;抚爱

(10)

To have sexual intercourse.

发生性关系

make over

(1)

To redo; renovate.

改装;革新

(2)

To change or transfer the ownership of, usually by means of a legal document:

转让:改变或者转移所有权,通常是通过法律文件的方式:

made over the property to her son.

把财产转到她儿子名下

make up

(1)

To put together; construct or compose:

整理;建立或捏造:

make up a prescription.

开一个药方

(2)

To constitute; form:

构成;组成:

One hundred years make up a century.

一百年构成一个世纪

(3)

To alter one's appearance for a role on the stage, as with a costume and cosmetics.

化妆:为在舞台上的角色而改变某人的外表,例如用服装或化妆品

(4)

To apply cosmetics.

用化妆品化妆

(5)

To devise as a fiction or falsehood; invent:

捏造,编造:杜撰小说或谎话;捏造:

made up an excuse.

编造借口

(6)

To make good (a deficit or lack):

弥补:弥补(赤字或不足):

made up the difference in the bill.

弥补了帐单上的差额

(7)

To compensate for:

补偿:

make up the lost time.

补足失去的时间

(8)

To resolve a quarrel:

和好:平息一场争吵:

kissed and made up.

亲吻和好

(9)

To make ingratiating or fawning overtures. Used withto :

献殷勤,巴结:提出献殷勤或讨好的建议。和to 连用:

made up to his friend's boss.

向他朋友的老板献殷勤

(10)

To take (an examination or a course) again or at a later time because of previous absence or failure.

补考,补课:因为以前缺席或不及格在一段时间后再考或再上课

(11)

To set in order:

整理,收拾:

make up a room.

把房间收拾好

(12)

Printing To select and arrange material for:

【印刷术】 排版,整版:

made up the front page.

为封面排版

make with 【俚语】

(1)

To bring into use:

使用:

a flirt making with the eyes.

用眼睛调情

(2)

To put forth; produce:

长出;制造:

always making with the jokes.

总是谈笑风生

习惯用语

make a clean breast of

To confess fully.

坦白交待

make a face

To distort the features of the face; grimace.

改变脸部的容貌;扮鬼脸

make a go of

To achieve success in:

在…获得成功:

have made a go of the business.

生意上获得了成功

make away with

(1)

To carry off; steal.

处理;偷

(2)

To use up or consume.

用光或消费

(3)

To kill or destroy.

杀死或破坏

make believe

To pretend.

假装

make bold

To venture:

冒险:

I will not make so bold as to criticize such a distinguished scholar.

我不会冒险去批评这么杰出的一位学者

make book【游戏】

To accept bets on a race, game, or contest.

在赛马、比赛或竞赛中接受赌注

make do

To manage to get along with the means available:

用手头拥有的钱去勉强应付:

had to make do on less income.

不得不用较少的收入来应付

make ends meet

To manage so that one's means are sufficient for one's needs.

收支平衡:设法使某人的财产和花费相抵

make eyes

To ogle.

向…送秋波

make fun of

To mock; ridicule.

嘲笑;嘲讽

make good

(1)

To carry out successfully:

成功地实施:

He made good his escape.

他成功地逃脱了

(2)

To fulfill:

实现:

She made good her promise.

她实现了诺言

(3)

To make compensation for; make up for:

补偿;弥补:

made good the loss.

弥补损失

(4)

To succeed:

成功:

made good as a writer.

成为一个成功的作家

make hay

To turn to one's advantage:

利用:使对某人有利:

The candidate's opponents made hay of the scandal.

候选人的竞争对手利用这次丑闻做了手脚

make it

(1)

Informal To be successful:

【非正式用语】 成功:

finally made it as an actor.

最后成了一名成功的演员

(2)

Slang To have sexual intercourse.

【俚语】 发生性关系

make light of

To treat as unimportant:

轻视;忽略:

He made light of his illness.

他忽视了自己的疾病

make love

(1)

To engage in amorous caressing.

做爱抚的动作

(2)

To engage in sexual intercourse.

发生性关系

make much of

To treat as of great importance.

重视对待

make no bones about

To be forthright and candid about; acknowledge freely:

对…坦白或直爽;公开承认:

They make no bones about their dislike for each other.

他们毫不隐瞒彼此间的厌恶

make off with

To snatch or steal:

夺走或偷走:

made off with the profits.

夺走了利润

make sail【航海】

(1)

To begin a voyage.

开始航行

(2)

To set sail.

张帆

make the grade

To measure up to a given standard.

达到给定的标准

make the most of

To use to the greatest advantage.

最大限度地利用

make the scene【俚语】

(1)

To put in an appearance:

出现:

made the scene at the party.

出现在聚会上

(2)

To participate in a specified activity:

参与具体的活动:

made the drug scene.

参与毒品活动

make time

(1)

To move or travel fast, as in an attempt to compensate for lost time.

弥补时间:运动或走得更快以便弥补失去的时间

(2)

Slang To make progress toward attracting:

【俚语】 更加有吸引力:

He tried to make time with the new neighbor.

他试图获取新邻居的好感

make tracks【俚语】

To move or leave in a hurry.

匆忙走开或离去

make up (one's) mind

To decide between alternatives; come to a definite decision or opinion.

作出选择;作出决定或提出意见

make waves【俚语】

To cause a disturbance or controversy.

引起混乱或争论

make way

(1)

To give room for passage; move aside.

让路;走到一边

(2)

To make progress.

取得进步

on the make【俚语】

(1)

Aggressively striving for financial or social improvement:

拼命追求经济上或社会地位上的提高:

a young executive on the make.

追求进步的年轻经理

(2)

Eagerly seeking a sexual partner.

急切地追求伴侣

语源介绍

(1)

Middle English maken

中古英语maken

(2)

from Old English macian * see mag-

源自 古英语 macian *参见 mag-

继承用法

mak“able

adj.(形容词)

词性变化

make

vi.

(1)

前进, 向...去(for)

They were making towards the river.

他们正向河边走去。②开始(do sth.); 行动得(象...); 似乎要

He made to go.

他要走了。

She made to reply and then stopped.

她似乎要回答又止住了。

(2)

(潮汐等)涨起; 增加, 增高

The tide is making now.

现在正在涨潮。

(3)

被处理; 被制造

Toys are making in the shop.

这个车间正在制造玩具。

(4)

[后接形容词, 表示某种状态、方式]

make sure

查明

make ready

准备好

make merry

寻欢作乐

(5)

(纸牌中)洗牌; (一张牌)吃掉旁人的牌

n.

(1)

制造(法); 构造; 样式; (产生)来源

(2)

(矿井等某一时期的)产量

(3)

性情; 品质; 体格

(4)

【电】闭合

(5)

(纸牌中)(轮流)洗牌

a man of this make

这种性格的人

at make

在接通的位置上

Is this your ownmake?

这是你自己制造的吗?

特殊用法

double make

双闭合

percent make

脉冲占空系数

quick make

快速闭合[接通]

short make

抄造量短缺

slow make

缓慢接通

参考词汇

make shape fashion construct manufacture

都含“做"、“造"、“做成或制造成某种东西"的意思。

(1)

make 系常用词, 指“任何生产、形成或组成", 如:

This machine is made in China .

这台机器是中国制造的。

(2)

shape 指“由塑造、铸造、切割、敲打而形成", 如:

The child shaped clay into balls.

那小孩把泥捏成球。

(3)

fashion 指“用手、某些工具或原料做成具有一定形状的东西, 但通常暗示发明者的才华", 如:

They discovered that they could shear sheep, take the wool, weave it and fashion the material into warm coats and suits,.

他们发现他们能够剪羊毛、纺绒线、织成毛料, 然后把毛料做成暖和的衣服。

(4)

construct 指“按设计把许多部分组成一个整体", 如:

They constructed a big bridge.

他们建成了一座大桥。

(5)

manufacture 指“用机器生产或制造", 尤指“使用机器大规模生产与制造", 如:

We can manufacture high-precision machine tools.

我们能造精密机床。

Make、include-文件

C 源码的开头经常有一系列被包含的头文件,例如 stdio.h。有一些是系统级的头文件,有一些是你正在写的项目的头文件:

#include <stdio.h>

#include "foo.h"

int main(....

要确定在你的 foo.h 被改变之后,这个文件也会被重新编译,就要在你的 Makefile 这样写:

foo: foo.c foo.h

当你的项目变得越来越大,你自己的头文件越来越多的时候,要追踪所有这些头文件和所有依赖它的文件会是一件痛苦的事情。如果你改变了其中一个头文件,却忘了重新编译所有依赖它的源文件,结果会是很失望的。gcc 有一个选项可以分析你的源文件然后产生一个头文件的列表和它的依赖关系: -MM。

如果你把下面的内容加到你的 Makefile 里面:

depend:

gcc -E -MM *.c > .depend

然后运行 make depend,就会产生一个 .depend,里面包含了目标文件,C 文件和头文件的列表:

foo.o: foo.c foo.h

如果你改变了 foo.h,下一次运行 make 的时候,所有依赖 foo.h 的文件就会被重新编译。

每一次你增加一个头文件的时候,别忘了运行一次 make depend。

现代英汉综合大辞典

make

[meik]

vt.

(made[meid])

(1)

做, 制造, 造成; 创造, 起草, 制定, 设置, 征收, 准备

make a coat

制做上衣

make cloth

织布

make enemies

树敌

make a self criticism

作自我批评

Don't make noise.

不要喧哗。

You make too much fuss about trifles.

你太小题大做了。

(2)

布置, 整理, 训练

make a fire

生火

make the bed

铺床

make tea

泡茶

Make hay while the sun shines.

[谚]趁晴晒草; 勿失良机。

(3)

构成, 组成

Oxygen and hydrogen make water.

氧和氢构成水。

One tree does not make a wood.

独木不成林。

(4)

迫使; 促使

Can you make the horse go?

你能赶走这匹马吗?

His father wants to make him a doctor [to make a doctor of him].

他父亲想让他作一个医生。

He soon made himself understood.

他立刻把自已的意思讲明白了。

(5)

成为, 变成

If you work hard, you will make a good athlete.

如果你肯努力, 你将成为一个好运动员。

(6)

得; 赚, 挣

make a reputation

博得名声

The picture makes a good price.

这张画可卖个好价钱。

She made good marks at school.

她在学校的成绩很好。

(7)

实行, 进行

make social investigation

进行社会调查

make war

开战

(8)

等于; 相等

Twelve inches make one foot.

十二英寸等于一英尺。

(9)

猜想; 计算, 认为

What do you make the time?

你看(现在)几点钟了?

He is not an ass [a goose] as they make him.

他不象大家猜想的那样笨。

(10)

到达; 抵

We made the airport in an hour.

不到一小时我们就到了机场。

(11)

走; 行进; [俚]赶上

The train makes 70 kilometres an hour.

这火车的时速为70公里。

I don't think he will make the morning train.

我看他赶不上早班火车。

(12)

【电】(电流)接通

(13)

实行; 签订, 缔结

make a bow

鞠躬

make a contract

定契约

(14)

发表, 说, 提出

make a speech

[美]演说

(15)

发生; 使发生; 成为...的原因

(16)

make a good dinner [meal]

美餐一顿

(17)

行动得象...

make a fool of oneself

丢丑; 使自已成为笑柄

(18)

成为; 成为...会员, 在...里得到一地位

He made the college basket-ball team.

他成为大学篮球队队员。

(19)

【航海】开始看见

We made a cruiser in the distance.

我们看见远处有一艘巡洋舰。⑵⑽(纸牌中)洗(牌); 打满(叫牌数); 出(牌)胜一圈; 胜(一圈) ⑵

(20)

[俚]使与之性交, 引诱。

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/12/23 23:05:27