AoC2022/Makefile

9 lines
144 B
Makefile
Raw Permalink 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
2022-12-07 13:40:21 +00:00
gcc -g -o $@ $<
2022-12-05 09:38:49 +00:00
clean :
rm $(programs)