On 2 February 2017 at 19:54, Markus Wichmann <nullp...@gmx.net> wrote: > GNU make style patsubst rules, i.e. > > %.o: %.c > $(CC) $(CFLAGS) -o $@ $< > > Those are really useful.
While GNU's syntax can be more general, that rule can be done in POSIX make: > .c.o: > $(CC) $(CFLAGS) -c $< Likewise, > .o: > $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< cls