当前位置: 技术问答>linux和unix
makefile中的$@ $^是啥意思?
来源: 互联网 发布时间:2016-05-22
本文导语: 如题。。。哪位大侠知道?请指教? | http://zhidao.baidu.com/question/9239229.html | $@ The file name of the target. $^ The names of all the prerequisites, with spaces between them. 比如写 main : 1.o 2.o 3.o ...
如题。。。哪位大侠知道?请指教?
|
http://zhidao.baidu.com/question/9239229.html
|
$@ The file name of the target.
$^ The names of all the prerequisites, with spaces between them.
比如写
main : 1.o 2.o 3.o
那么
$@ == main
$^ == 1.o 2.o 3.o
|
$^依赖目标对中的依赖,$@依赖关系中的目标