.PHONY: clean, mrproper, run CC = gcc CFLAGS = -g -Wall all: d3 %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< d3: d3.o $(CC) $(CFLAGS) -o $@ $+ clean: rm -f *.o core.* mrproper: clean rm -f d3 run: d3 ./$<