makefile学习
来源:互联网 发布:mac怎么登陆两个qq 编辑:程序博客网 时间:2024/06/18 17:17
[1]define的用法
makefile文件:
foo.c:foo.y
define run-yacc
yacc $(firstword $^)
mv y.tab.c $@
endef
.PHONY all:
all:
$(run-yacc)
foo.y文件:
%{void yyerror(const char *s);
%}
%%
program:
;
%%
void yyerror(const char *s){}
int main()
{
yyparse();
return 0;
}
[2]$1,$2
reverse=$2$1
foo=$(call reverse,a,b)
helloworld:
@echo =========================
@echo "foo is:$(foo)"
@echo =========================
clean:
rm -rf *.o helloworld
make以后显示:
=========================
foo is:ba
=========================
0 0
- makefile学习
- makefile 学习
- 学习makefile
- makefile学习
- Makefile学习
- makefile学习
- Makefile学习
- 学习makefile
- makefile学习
- makefile学习
- 学习makefile
- 学习Makefile
- Makefile学习
- makefile学习
- makefile学习
- Makefile学习
- Makefile学习
- makefile学习
- 约数和公式 及其 证明 。。小学奥数啊 摔~
- 《Mastering Opencv ...读书笔记系列》车牌识别(I)
- 遍历圆和直线上的点
- Android Octa源码编译和下载过程详细记录
- pageContext+ibatis+foreach 在分页查询中出现的问题
- makefile学习
- 天津工业大学软件园 ubuntu电信网设置。
- popen_pclose实现
- C语言数组赋值一例
- Git忽略某些文件
- C++:获取类成员的偏移量
- Ajax与JSON的一些总结
- QT中的tr()
- CareerCup calculate (x^y)%z without pow();