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