随笔分类 -  Makefile

makefile 编写
摘要:参考: https://seisman.github.io/how-to-write-makefile/overview.html 阅读全文
posted @ 2020-11-28 23:10 火热的茶独独 阅读(115) 评论(0) 推荐(0)
摘要:Makefile中赋值 ?= 若变量未定义,则定义 += 在变量后面追加 := 和 = 均为赋值符号,其区别可通过下面的例子看出: $vim makefile a=1 b=2 c=$(a)+$(b) c: @echo $(c) a=56 $make -f makefile c 56+2 再看另一个例 阅读全文
posted @ 2020-10-20 10:10 火热的茶独独 阅读(128) 评论(0) 推荐(0)