implement day 5 with hashmaps to gain a 20x speed increase
[advent21.git] / Makefile
1 CFLAGS:=-Wall -Wextra -O3
2 LFLAGS:=-f
3
4 BINARIES:=$(foreach num,$(shell seq -f '%02.0f' 1 5),$(num)a $(num)b)
5
6 all: $(BINARIES)
7
8 clean:
9 $(RM) *.o a.out $(BINARIES)
10
11 run: $(addprefix run_,$(BINARIES))
12
13 run_%a: %a
14 ./$< < $*.txt
15
16 run_%b: %b
17 ./$< < $*.txt