参考:http://www.gnu.org/software/make/manual/make.html

'$(@D)'
The directory part of the file name of the target, with the trailing slash removed. If the value of '$@' is dir/foo.o then '$(@D)' is dir. This value is . if '$@' does not contain a slash.

'$(@D)' 即是目标文件的 目录部分。如果'$@'是 dir/foo.o,那么'$(@D)' 是 dir。如果'$@' 是foo.o,那么'$(@D)'是 当前目录 '.' 。

'$(@F)'
The file-within-directory part of the file name of the target. If the value of '$@' is dir/foo.o then '$(@F)' is foo.o. '$(@F)' is equivalent to '$(notdir $@)'.

'$(@F)'即是目标文件的 文件部分。如果'$@'是 dir/foo.o,那么'$(@F)'是foo.o。

相关文章:

  • 2022-01-15
  • 2021-06-29
  • 2021-04-05
  • 2022-12-23
  • 2021-09-24
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2022-01-19
  • 2021-09-09
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案