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