
makefile
s_k_yliu
这个作者很懒,什么都没留下…
展开
-
make时,将错误定向到一个文件中
make 2> error.txt 就可以将错误信息重定向到文件了。注意:2和>一定要写在一起! make > /dev/null原创 2011-07-26 15:12:35 · 614 阅读 · 0 评论 -
makefile 中的 shell
1.如果是make的命令,如ifeq必须顶格 2.如果是shell命令,前面必须是tab http://www.google.com.hk/url?sa=t&rct=j&q=makefile++for+dir+in+do+done&source=web&cd=4&ved=0CEEQFjAD&url=http%3A%2F%2Fblog.youkuaiyun.com%2Fabc19842008%2Fartic转载 2011-11-22 07:57:49 · 1068 阅读 · 0 评论 -
make视频
http://v.youku.com/v_show/id_XODgzMjIyNzY=.html原创 2011-11-21 16:44:37 · 464 阅读 · 0 评论 -
GNU make中文手册
http://www.linuxsir.org/main/doc/gnumake/GNUmake_v3.80-zh_CN_html/index.html#content原创 2011-11-16 22:07:28 · 398 阅读 · 0 评论 -
Makefile 语法简介
http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=185 有稍稍在Linux下碰过程式设计的开发者应该会知道, make是用来将程式码、函式库、标头档及其它资源档build成最终成果(即:最终的应用程式)的超强力辅助工具。 当然了,并不是非得动用到make才能build程式,或许有什么程式设计魔人喜欢什么都自己手转载 2011-11-17 10:19:39 · 1308 阅读 · 0 评论 -
跟我一起写 Makefile(九)
http://blog.youkuaiyun.com/haoel/article/details/2894 使用函数 ———— 在Makefile中可以使用函数来处理变量,从而让我们的命令或是规则更为的灵活和具有智能。make所支持的函数也不算很多,不过已经足够我们的操作了。函数调用后,函数的返回值可以当做变量来使用。 一、函数的调用语法 函数调用,很像变量的使用,也是以“$”来标识的,其语法如转载 2011-11-16 13:32:11 · 409 阅读 · 0 评论 -
makefile 文件中得wildcard
http://blog.youkuaiyun.com/maojudong/article/details/2245966 1、wildcard : 扩展通配符 2、notdir : 去除路径 3、patsubst :替换通配符 例子: 建立一个测试目录,在测试目录下建立一个名为sub的子目录 $ mkdir test $ cd test $ mkdir sub 在test下,建立a.c和b.转载 2011-11-15 17:45:22 · 773 阅读 · 0 评论 -
make foreach 函数
http://www.cppblog.com/ivenher/articles/22107.html foreach函数和别的函数非常的不一样。因为这个函数是用来做循环用的,Makefile中的foreach函数几乎是仿照于Unix标准Shell(/bin/sh)中的for语句,或是C-Shell(/bin/csh)中的foreach语句而构建的。它的语法是: $(转载 2011-11-15 18:15:04 · 3272 阅读 · 0 评论 -
Makefile的详细资料
http://www.linuxsir.org/main/doc/gnumake/GNUmake_v3.80-zh_CN_html/make-04.html原创 2011-11-15 18:13:54 · 463 阅读 · 0 评论 -
makefile及条件编译
//getword.cc #include #include using namespace std; int main() { string word; #ifdef LINE while(getline(cin,word)) cout #else while(cin>>word) cout #endif return 0; } 上面是源文件,此程转载 2011-11-08 07:35:34 · 9933 阅读 · 0 评论