Chinaunix首页 | 论坛 | 博客
  • 博客访问: 157584
  • 博文数量: 66
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2016-06-23 15:21
文章分类

全部博文(66)

文章存档

2016年(66)

我的朋友

发布时间:2016-05-13 09:18:26

$(filter <pattern...>,<text> )名称:过滤函数——filter。 功能:以<pattern>模式过滤<text>字符串中的单词,保留符合模式<pattern>的单词。可以有多个模式。 返回:返回符合模式<pattern>的字串。 示例:sources := foo.c bar.c baz.s ugh.h foo: $(sources) cc $(filter %.c %.s,$(so.........【阅读全文】

阅读(6441) | 评论(0) | 转发(0)

发布时间:2016-05-12 19:10:22

1:[liuwx@linux-81 rec]$ ls1  1.c  2.c  core.9015  makefile  profile2:[XX@linux-81 rec]$ cat makefile clear:        ls $(patsubst %.c,%.o,$(wildcard *.c))       3:[liuwx@linux-81 rec]$ make  ls ls 1.o 2.o &n.........【阅读全文】

阅读(1752) | 评论(0) | 转发(0)

发布时间:2016-05-12 18:46:46

1:[XX@linux-81 rec]$ cat makefile clear:        ls $(wildcard *.c)2:[XX@linux-81 rec]$ ls1  1.c  2.c  core.9015  makefile  profile3:[XX@linux-81 rec]$ makels 1.c 2.c1.c  2.c结论:在Makefile规则中,通配符会被自动展开。但在变量的.........【阅读全文】

阅读(1255) | 评论(0) | 转发(0)

发布时间:2016-04-14 23:22:24

工程中的代码分别存放在add/add_int.c、add/add_float.c、add/add.h、sub/sub_int.c、sub/sub_float.c、sub/sub.h、main.c中。 文件main.c#include <stdio.h>#include "add.h"            #include "sub.h"int main(void){       int input = 0; .........【阅读全文】

阅读(2660) | 评论(0) | 转发(0)

发布时间:2016-04-14 22:48:11

=== makefile 开始 ===              helloworld:file1.o file2.o                     gcc file1.o file2.o -o helloworld &nbs.........【阅读全文】

阅读(1473) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册