Another way, with target-specific variables (might be a GNUism):
special.o: CFLAGS += -Wno-blah
%.o: %.c
echo $(CC) $(CFLAGS) -o $@ $< special.o: CFLAGS += -Wno-blah
%.o: %.c
echo $(CC) $(CFLAGS) -o $@ $<No comments yet.