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