Hacker News new | ask | show | jobs
by Pete_D 2411 days ago
Another way, with target-specific variables (might be a GNUism):

    special.o: CFLAGS += -Wno-blah
    
    %.o: %.c
     echo $(CC) $(CFLAGS) -o $@ $<