CC = gcc exe = housic src = $(wildcard *.c) obj = $(src:.c=.o) LDFLAGS = $(exe): $(obj) $(CC) -o $@ $^ $(LDFLAGS) .PHONY: clean clean: rm -f $(obj) $(exe)