AoC2022/Makefile
2022-12-05 10:38:49 +01:00

8 lines
141 B
Makefile

programs := $(patsubst %.c, bin/%, $(wildcard *.c))
all: bin $(programs)
bin:
mkdir bin
bin/% : %.c
gcc -o $@ $<
clean :
rm $(programs)