makefile 打印变量的值
2017-10-10 10:54
330 查看
$(warning $(XXX)) 打印变量的值
1,使用info/warning/error增加调试信息
方法1: $(info, "here add the debug info")
但是此不能打印出.mk的行号
方法2: $(warning "here add the debug info")
方法3: $(error "error: this will stop the compile")
这个可以停止当前makefile的编译
方法4: 打印变量的值
$(info $(TARGET_DEVICE) )
[图片]
2,使用echo增加调试信息(echo只能在target:后面的语句中使用,且前面是个TAB)
方法1: @echo "start the compilexxxxxxxxxxxxxxxxxxxxxxx"
方法2: @echo $(files)
[图片]
$(warning $(XXX)) 打印变量的值
1,使用info/warning/error增加调试信息
方法1: $(info, "here add the debug info")
但是此不能打印出.mk的行号
方法2: $(warning "here add the debug info")
方法3: $(error "error: this will stop the compile")
这个可以停止当前makefile的编译
方法4: 打印变量的值
$(info $(TARGET_DEVICE) )
[图片]
2,使用echo增加调试信息(echo只能在target:后面的语句中使用,且前面是个TAB)
方法1: @echo "start the compilexxxxxxxxxxxxxxxxxxxxxxx"
方法2: @echo $(files)
[图片]
相关文章推荐
- Makefile打印变量
- Makefile第二讲:打印出内容和使用变量
- Makefile文件中如何输出打印变量
- Makefile文件中如何输出打印变量
- makefile(Android.mk)打印变量方法
- [Makefile]Android.mk中打印变量
- Makefile第二讲:打印出内容和使用变量
- shell,makefile打印变量的不同
- Makefile中的变量
- 打印lua中的全局变量表_G
- shell脚本及makefile中的特殊变量
- Makefile有三个非常有用的变量。分别是$@,$^,$<代表的意义
- MAKEFILE --变量
- Makefile中预定义变量
- c语言中printf函数打印char型变量0xFF,输出为0xFFFFFFFF的解决方法
- makefile详解 多行变量 环境变量 目标变量 模式变量 十九
- Makefile 中的变量和规则
- makefile中自动化变量
- Makefile中的默认变量
- windows命令行方式下打印和设置PATH变量