Is it possible for a makefile to be aware of what is defined in the source code? For example, in a header file I have:
I'd like the makefile to recognize the definition and build differently based on that:
$(CC) $(CCOPT) $(CFLAGS) -o $(OUTDIR)CH_Manager_T5 $^
This doesn't work.
I'd like to change the name of the resulting executable based on what's defined. Is it possible? If not is there another way to do it?