X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=e65664202576a40becbc3bd0a64bf5849dab1292;hb=967152a3319e0207e16901ecc0344edaf8c8193e;hp=2f07760e9703cfaa82dee0ccd5ac261ed6964ced;hpb=38822928901ae7d3ea1377fbcbe3d4fc371bc55d;p=advent21.git diff --git a/Makefile b/Makefile index 2f07760..e656642 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,20 @@ CFLAGS:=-Wall -Wextra -O3 LFLAGS:=-f -BINARIES:=01 02a 02b 03a 03b +BINARIES:=$(foreach num,$(shell seq -f '%02.0f' 1 11),$(num)a $(num)b) all: $(BINARIES) clean: $(RM) *.o a.out $(BINARIES) + +05%: CFLAGS+=-DHASH_BLOOM +06b: LDLIBS+=-lgmp + +run: $(addprefix run_,$(BINARIES)) + +run_%a: %a + ./$< < $*.txt + +run_%b: %b + ./$< < $*.txt