makefile:special macro

原文: http://zebozhuang.blog.163.com/blog/static/1714798042012981194731/


$@

The file name of the target. $< The name of the first dependency. $* The part of a filename which matched a suffix rule. $? The names of all the dependencies newer than the target separated by spaces. $^ The names of all the dependencies separated by spaces, but with duplicate names removed. $+ The names of all the dependencies separated by spaces with duplicate names included and in the same order as in the rule. A Simple Makefile Tutorial http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/ GNU Make http://www.gnu.org/software/make/manual/make.html
相关文章
<