News for hackers. Stuff that matters.
Re:The Language Agnostic, All-Purpose, Incredible, Makefile by jacwah on Tuesday November 19, 2019 @04:42AM (#21571699)
> It would be wonderful for say 10 c files compiling one way, and the 11th having a different option.

You can do this by combining implicit and explicit rules:

  target: $(OBJ)
  
  # default rule
  %.o: %.c
      cc -o $@ $^
  
  # special case
  special.o: special.c
      specialc -o $@ $^
Re:The Language Agnostic, All-Purpose, Incredible, Makefile by Pete_D on Tuesday November 19, 2019 @01:11PM (#21576119)
Another way, with target-specific variables (might be a GNUism):

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