MUSIC_FILES := $(basename $(wildcard f*.c)) TMP_FILES := $(wildcard *~) $(wildcard *.o) CFLAGS += LDFLAGS += -static -s all: $(MUSIC_FILES) audio.o: audio.c audio.h %: %.c audio.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ clean: rm -rf $(MUSIC_FILES) $(TMP_FILES)