want_king 发表于 2007-4-5 17:43:36

makefile中能不能加入程序变量初始值?

我想在程序中加入选择类的程序,
类似
#if temp1=1
......................
#endif

我希望能在makefile中对temp1进行赋值,不知道行不行?
或者提供其它方法

AnthonyLee 发表于 2007-4-6 09:13:17

CFLAGS += -Dtemp1=1
页: [1]
查看完整版本: makefile中能不能加入程序变量初始值?