在Makefile中給本身的代碼傳遞宏定義

在makefile中添加spa CFLAGS += -DXXX編譯   程序代碼中的條件編譯file  #ifdef XXX   printf("XXX is define!\n");  #endif
相關文章
相關標籤/搜索