gpt4 book ai didi

makefile - $ +在makefile中

转载 作者:行者123 更新时间:2023-12-02 05:39:38 24 4
gpt4 key购买 nike

GNU makefile中的$ +是什么意思?
另外,请给我一些用于编写makefile的良好查找手册。

最佳答案

make manual:

$^    The names of all the prerequisites, with spaces between them. For prerequisites which are archive members, only the member named is used (see Archives). A target has only one prerequisite on each other file it depends on, no matter how many times each file is listed as a prerequisite. So if you list a prerequisite more than once for a target, the value of $^ contains just one copy of the name. This list does not contain any of the order-only prerequisites; for those see the `$|' variable, below.

$+    This is like `$^', but prerequisites listed more than once are duplicated in the order they were listed in the makefile. This is primarily useful for use in linking commands where it is meaningful to repeat library file names in a particular order.

关于makefile - $ +在makefile中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1083366/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com