X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=75a0a9d972a2edf5fe36726077c96046cd4c3eef;hb=636e959b30cdf95ecf4c09529821a26c890e8ecb;hp=b275854c68f5dcdf0fdbebe3f34b80a524aed7f1;hpb=eb6a506ac6721153c0013aaf506e4ed60b34bc6d;p=advent21.git diff --git a/Makefile b/Makefile index b275854..75a0a9d 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,20 @@ -CFLAGS=-Wall -Wextra +CFLAGS:=-Wall -Wextra -O3 +LFLAGS:=-f -BINARIES:=01 02a 02b +BINARIES:=$(foreach num,$(shell seq -f '%02.0f' 1 10),$(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