打印

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

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

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

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

TOP

CFLAGS += -Dtemp1=1

TOP