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