# puzzles from http://www.gowrikumar.com/c/ ALL_BIN := $(patsubst %.c,$(BINDIR)/%,$(wildcard *.c)) $(BINDIR)/%: %.c $(CC) -o $@ $< all: $(ALL_BIN) .PHONY: all