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