在Makefile中给本身的代码传递宏定义

在makefile中添加spa CFLAGS += -DXXX编译   程序代码中的条件编译file  #ifdef XXX   printf("XXX is define!\n");  #endif
相关文章
相关标签/搜索