AoC2022/Makefile

9 lines
141 B
Makefile
Raw Normal View History

2022-12-05 09:38:49 +00:00
programs := $(patsubst %.c, bin/%, $(wildcard *.c))
all: bin $(programs)
bin:
mkdir bin
bin/% : %.c
gcc -o $@ $<
clean :
rm $(programs)