defining a macros in makefile and using those macros in c file

Hi am new to these makefiles, i have to access a macro defined in makefile to other .c files in my project.
I have tried it by doinf CFLAGS -D option but it is compile time, so i dont want this method.
Please anyone let me know is there any method to use macros defined in makefile to other .c files.

eg: in makefile
CFLAGS += -D ADC_MODULE=1
and using in .c file as #ifdef ADC_MODULE
/* code */
#endif
like this i need other way of doing the same.
Please help me in this.
CFLAGS += -DADC_MODULE=1
Topic archived. No new replies allowed.