Chinaunix首页 | 论坛 | 博客
  • 博客访问: 639349
  • 博文数量: 90
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2018
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-03 13:09
文章分类

全部博文(90)

文章存档

2010年(7)

2009年(23)

2008年(60)

我的朋友

分类: LINUX

2010-11-14 10:51:55


authorLars Hjemli 2010-11-07 15:13:49 (GMT)
committerLars Hjemli 2010-11-07 15:13:49 (GMT)
commit () ()
tree
parent ()
download


Makefile: add -MP option
Work around errors `make` gives when header files are removed without the Makefile being updated. Signed-off-by: Lynn Lin Signed-off-by: Lars Hjemli
 (/ context) ( whitespace changes)
-rw-r--r--2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dda743d..15c7c20 100644
--- a/
+++ b/
@@ -67,7 +67,7 @@ endif
# Define a pattern rule for automatic dependency building
#
%.d: %.c
- $(QUIET_MM)$(CC) $(CFLAGS) -MM $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
+ $(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
#
# Define a pattern rule for silent object building
阅读(693) | 评论(1) | 转发(0) |
0

上一篇:修正了cgit 项目中makefile的一个Bug

下一篇:没有了

给主人留下些什么吧!~~

chinaunix网友2010-11-15 15:30:11

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com