Makefile
qiaoliang328
这个作者很懒,什么都没留下…
展开
-
让编译器立即显示错误信息并且停止编译
#err "You must define model for project!" // 你必须为工程的设备定义一个型号原创 2021-04-10 18:20:19 · 279 阅读 · 0 评论 -
让gcc 编译器在编译的过程中指令宏的逻辑处理
举例: 在c 文件代码中有如下源码: #if defined JQ_JQ001 #define AAA 4 #define BBB 5 #elif defined JQ_JQ002 #define CCC 6 #define DDD 7 #else #err "You must defin model" #endif 解析:上面代码的意思就是告诉编译器, 如果没有定义JQ_JQ001 , 也没有定义 JQ_JQ...原创 2020-12-31 16:42:42 · 125 阅读 · 0 评论 -
makefile中如何判断一个文件是否存在
makefile判断文件存在如下的两种方法: 1. 调用shell的函数进行判断 exist = $(shell if [ -f $(FILE) ]; then echo "exist"; else echo "notexist"; fi;) ifeq (exist, "exist") #do something here endif当然,这个方法很土,但是能够工作!! 2. 使用m转载 2012-05-15 12:03:29 · 29876 阅读 · 0 评论 -
sqlite3.3.5移植-arm-hisiv200-linux
1. 当然就是解压啥的,然后cd sqlite-3.3.5; 2. ./configure --host=arm-hisiv200-linux,出错: configure: error: unable to find a compiler for building build tools 二话不说,直接baidu了,居然说要看configure.ac 或者configure,拿来主义,解原创 2017-02-16 15:22:11 · 662 阅读 · 0 评论