-DMACRO 的意思是 -D 后面必需是 Macro,不是用来导入 .c 文件的。
-DMACRO
-D
keil 工程应该可以导出 makefile 或者编译命令,在此基础上生成 compile_commands.json。