makefile 中的 = 如opt = -o2 -DNDEBUG
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/25 12:45:00
![makefile 中的 = 如opt = -o2 -DNDEBUG](/uploads/image/z/7895579-59-9.jpg?t=makefile+%E4%B8%AD%E7%9A%84+%3D+%E5%A6%82opt+%3D+-o2+-DNDEBUG)
makefile 中的 = 如opt = -o2 -DNDEBUG
makefile 中的 =
如opt = -o2 -DNDEBUG
makefile 中的 = 如opt = -o2 -DNDEBUG
=的意思是先检查变量是否赋过值,如果赋过就什么都不做;如果没赋过值就把等号后的值赋给变量.
就是说如果opt未赋值的话,将其设成release选项.