all. Let\'s say I have a program that contains a long list of C source files, A.c, B.c, ...., Z.c, now I want to compile A.c, B.c with certain CFLAGS, and compile the rest p
The approach taken by linux kernel build system:
CFLAGS += $(CFLAGS-$@)
And then,
CFLAGS-A.o += -DEXTRA CFLAGS-B.o += -DEXTRA