找回密码
 注册
搜索
查看: 1140|回复: 3

GNU_make_zh_CN

[复制链接]
发表于 2007-12-27 18:00:20 | 显示全部楼层 |阅读模式
GNU_make_zh_CN
【文件名】:071227@52RD_GNU_make_zh_CN.zip
【格 式】:zip
【大 小】:907K
【简 介】:
【目 录】:GNU make中文手册.....................................................................................................................1
ver - 3.8......................................................................................................................................1
第一章:概述...............................................................................................................................7
1.1 概述................................................................................................................................7
1.2 准备知识..........................................................................................................................8
第二章 GNU make 介绍.............................................................................................................9
2 GNU make 介绍....................................................................................................................9
2.1 Makefile简介..................................................................................................................10
2.2 Makefile规则介绍...........................................................................................................11
2.3 简单的示例.....................................................................................................................12
2.4 make如何工作...............................................................................................................13
2.5 指定变量........................................................................................................................15
2.6 自动推导规则.................................................................................................................16
2.7 另类风格的makefile.......................................................................................................17
2.8 清除工作目录过程文件...................................................................................................18
第三章:Makefile 总述..............................................................................................................20
3 Makefile总述........................................................................................................................20
3.1 Makefile的内容...............................................................................................................20
3.2 makefile文件的命名.......................................................................................................21
3.3 包含其它makefile文件....................................................................................................22
3.4 变量 MAKEFILES..........................................................................................................24
3.5 变量 MAKEFILE_LIST..................................................................................................26
3.6 其他特殊变量.................................................................................................................26
3.7 makefile文件的重建.......................................................................................................27
3.8 重载另外一个makefile....................................................................................................28
3.9 make如何解析makefile文件...........................................................................................30
3.9.1 变量取值..................................................................................................................30
3.9.2 条件语句..................................................................................................................31
3.9.3 规则的定义...............................................................................................................31
3.10 总结...............................................................................................................................31
第四章:Makefile的规则............................................................................................................33
4 Makefile规则........................................................................................................................33
4.1 一个例子........................................................................................................................33
4.2 规则语法........................................................................................................................34
4.3 依赖的类型.....................................................................................................................35
4.4 文件名使用通配符..........................................................................................................36
4.4.1 统配符使用举例........................................................................................................37
4.4.2 通配符存在的缺陷....................................................................................................38
4.4.3 函数wildcard............................................................................................................38
4.5 目录搜寻........................................................................................................................39
4.5.1 一般搜索(变量VPATH)........................................................................................39
4.5.2 选择性搜索(关键字vpath)....................................................................................40
4.5.3 目录搜索的机制........................................................................................................41
4.5.4 命令行和搜索目录....................................................................................................44
4.5.5 隐含规则和搜索目录.................................................................................................44
4.5.6 库文件和搜索目录....................................................................................................45 2004年9月11日 2
GNU make中文手册
4.6 Makefile伪目标...............................................................................................................46
4.7 强制目标(没有命令或依赖的规则).............................................................................50
4.8 空目标文件.....................................................................................................................50
4.9 Makefile的特殊目标.......................................................................................................51
4.10 多目标............................................................................................................................54
4.11 多规则目标.....................................................................................................................55
4.12 静态模式........................................................................................................................56
4.12.1 静态模式规则的语法.......................................................................................56
4.12.2 静态模式和隐含规则.......................................................................................58
4.13 双冒号规则.....................................................................................................................59
4.14 自动产生依赖.................................................................................................................60
第五章:规则的命令..................................................................................................................63
5 为规则书写命令...................................................................................................................63
5.1 命令回显........................................................................................................................63
5.2 命令的执行.....................................................................................................................64
5.3 并发执行命令.................................................................................................................65
5.4 命令执行的错误..............................................................................................................67
5.5 中断make的执行............................................................................................................68
5.6 make的递归执行............................................................................................................69
5.6.1 变量MAKE...............................................................................................................70
5.6.2 变量和递归...............................................................................................................71
5.6.3 命令行选项和递归....................................................................................................75
5.6.4 -w选项......................................................................................................................77
5.7 定义命令包.....................................................................................................................78
5.8 空命令............................................................................................................................80
第六章:Makefile中的变量.........................................................................................................81
6 使用变量..............................................................................................................................81
6.1 变量的引用.....................................................................................................................82
6.2 两种变量定义(赋值)...................................................................................................83
6.2.1 递归展开式变量........................................................................................................83
6.2.2 直接展开式变量........................................................................................................85
6.2.3 定义一个空格...........................................................................................................86
6.2.4 “?=”操作符.............................................................................................................87
6.3 变量的高级用法..............................................................................................................88
6.3.1 变量的替换引用........................................................................................................88
6.3.2 变量的套嵌引用........................................................................................................88
6.4 变量取值........................................................................................................................92
6.5 如何设置变量.................................................................................................................93
6.6 追加变量值.....................................................................................................................94
6.7 override 指示符.............................................................................................................96
6.8 多行定义........................................................................................................................98
6.9 系统环境变量.................................................................................................................99
6.10 目标指定变量...............................................................................................................101
6.11 模式指定变量...............................................................................................................103
第七章:Makefile的条件执行...................................................................................................104
7 Makefile的条件判断...........................................................................................................104
7.1 一个例子......................................................................................................................104
7.2 条件判断的基本语法....................................................................................................105
7.3 标记测试的条件语句....................................................................................................108
第八章:make的内嵌函数........................................................................................................109
8 make的函数.......................................................................................................................109


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2007-12-28 16:51:04 | 显示全部楼层
好好啊哈
点评回复

使用道具 举报

发表于 2008-1-8 14:20:22 | 显示全部楼层
顶一下
点评回复

使用道具 举报

发表于 2008-1-16 16:41:54 | 显示全部楼层
呵呵,这个比较便宜,不过我好像有 ,Make学起来还是比较 难的
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-23 06:48 , Processed in 0.046687 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表