Hi.
I have a Makefile with following definition:
And in my header file, I want to have a macro funtion that determines if the SET_WD is set to ENABLE or DISABLE. How can I do that?Code:CFLAGS += -DSET_WD=ENABLE
And if not ENABLE, i want to undefine SET_WD.
I guess i need something like this:
Is it possible?Code:#define(SET_WD) ((SET_WD) != ("ENABLE")) #undef SET_WD
Thanks
Indy