gpt4 book ai didi

c - makefile中 "include"和 "-include"的区别

转载 作者:太空狗 更新时间:2023-10-29 16:40:48 33 4
gpt4 key购买 nike

在makefile中,include-include有什么区别?

例子:

-include $(APPINCLUDES)

include $(CONTIKI)/platform/$(TARGET)/Makefile.$(TARGET)

最佳答案

不同之处在于,如果包含文件不存在,-include 不会产生错误。

- 前缀可以在 Makefile 中的许多地方使用,以执行您不介意失败的操作。

关于c - makefile中 "include"和 "-include"的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16981464/

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