These rules are already in gmake builtins.
Unified · Split
| @@ -24,12 +24,6 @@ OBJS=$(addsuffix .o,$(EXAMPLES)) · 23 unmodified lines | ||
| 24 | 24 | decoding_encoding: LDLIBS += -lm |
| 25 | 25 | muxing: LDLIBS += -lm |
| 26 | 26 | |
| 27 | −%: %.o | |
| 28 | − $(CC) $< $(LDLIBS) -o $@ | |
| 29 | − | |
| 30 | −%.o: %.c | |
| 31 | − $(CC) $< $(CFLAGS) -c -o $@ | |
| 32 | − | |
| 33 | 27 | .phony: all clean |
| 34 | 28 | |
| 35 | 29 | all: $(OBJS) $(EXAMPLES) |